Rahul Agarwal wrote:
If I use <xforms:itemset> the way Orbeon example says, it works fine. The "ref" attribute of <xforms:label> and <xforms:copy> within <xforms:itemset> refer to an attribute. But if I've to refer to a node to get the code and description of dropdown items, then it doesn't work. I tried the following way -
I was unable to reproduce this. In the XForms Selection example, which sits in the examples/xforms/xforms-selection directory, I modified form.xml to use elements instead of attributes for "payments":
<payments>
<payment>
<value>cash</value>
<label>Cash</label>
</payment>
<payment>
<value>credit</value>
<label>Credit</label>
</payment>
</payments>And then in the view I referenced the elements (removed the "@"):
<xforms:itemset nodeset="/form/data/payments/payment">
<xforms:label ref="label"/>
<xforms:copy ref="value"/>
</xforms:itemset>This works just fine. Please let me know if you can reproduce this problem in this example, or if you can share with me resources that exhibit the problem you are observing.
Alex
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user
