Open ebruchez opened 4 years ago
Scenario: checkboxes for the choice of workflow operations, which looks like this:
<accessTo type="array">
<_ type="NewPage">
<initialStage type="object">
<name>initial</name>
</initialStage>
</_>
<_ type="SummaryPage"/>
<_ type="ViewPage"/>
</accessTo>
What would it take?
Itemset
evaluateExternalValue
/translateExternalValue
Question: can it make sense to mix and match xf:value
and xf:copy
for a same selection control?
xf:select1
: could make sense since the content of the element is entirely replacedxf:select
: hard to make sense, suggesting we prohibit itXForms 2 says " It can only be used within itemset elements" but that's not a requirement and supporting xf:item
would make sense too. In any case, you could have multiple xf:itemset
elements so the problem is the same.
XForms 1.1 said that xf:copy
must return a single element()
. This makes sense. But it could be relaxed.
xf:select1
xf:select
In a first implementation:
xf:value
and xf:copy
for xf:select
element()
XFormsItemUtilsevaluateItemset
is not great currently:
Item.value
can be null
xf:itemset
is non-relevant because it returns an empty sequencexf:item
?pruneNonRelevantChildren()
removes thosexf:choice
is represented with an Item
and its value is set to ""
Item
s can contain other items in the case of hierarchical itemsets
And I think there is more. The bottom line is that it's hard to understand.
SelectionControlTrait.evaluateStaticItemset
and XFormsItemUtils.evaluateItemset
should reduce duplicationevaluateItemset
: what's the semantic?xf:copy
; do we have a place for that?xf:select1/(xf:itemset|xf:item)/xf:copy
xf:select/(xf:itemset|xf:item)/xf:copy
xf:select1
xf:select
xf:select
Some documentation
This would be useful for the workflow UI (#3463).