Rahul Agarwal wrote:

I did not get explanation on any of xxforms's attributes or elements on http://www.orbeon.com/ois/doc/reference-xforms. Is there any other way?

The xxforms namespace is used in XForms controls to provide additional "hints" on how to render an XForms control on HTML. For instance the XForms submit control is rendered by default as button. However, you can have the control rendered as a link or an image by adding an attribute xxforms:appearance="link" or xxforms:appearance="image". Search for "xxforms" in the XForms reference documentation and you will see where the namespace can be used.


http://www.orbeon.com/ois/doc/reference-xforms

<xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"; xmlns:xi="http://www.w3.org/2003/XInclude";>
<xforms:instance>
<Root>
<TAddress>
<State/>
</TAddress>
<xi:include href="InstanceData.xml"/> <!-- instance data received from external data source during run-time -->
</Root>
</xforms:instance>
<xforms:bind id="state" nodeset="/Root/TAddress/State" relevant="count(/Root/Address/State)>0">
</xforms:model>

This is a clever way to solve the problem. The only problem is that you are binding your control to /Root/TAddress/State, which is always empty. So even when you have something under /Root/Address/State, /Root/TAddress/State will be empty. To solve this you can add a second bind:


<xforms:bind nodeset="/Root/TAddress/State" calculate="string(/Root/Address/State)">

Alex



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to