Hi,

I have a basic document section:

<vs:coverage>
  <vs:spatial>
    <vs:region/>
  </vs:spatial>
</vs:coverage>

Now vs:region can take three different values:

<vs:region xsi:type="vs:AllSky"/>
<vs:region xsi:type="vs:CircleRegion">...</vs:region>
<vs:region xsi:type="vs:RectangularRegion">...</vs:region>

So I assume that what I should do is:

- Construct my model with:
<vs:coverage>
  <vs:spatial>
    <vs:region xsi:type="vs:AllSky"/>
    <vs:region xsi:type="vs:CircleRegion">...</vs:region>
    <vbs:region xsi:type="vs:RectangularRegion">...</vs:region>
  </vs:spatial>
</vs:coverage>

- Construct my view with:
<xforms:select1 ref="vs:coverage/vs;spatial/vs:region/@xsi:type" appearance="full">
<xforms:item>
<xforms:label>AllSky</xforms:label>
<xforms:value>vs:AllSky</xforms:value>
</xforms:item>
<xforms:item>
<xforms:label>AllSky</xforms:label>
<xforms:value>vs:CircleRegion</xforms:value>
</xforms:item>
<xforms:item>
<xforms:label>AllSky</xforms:label>
<xforms:value>vs:RectangularRegion</xforms:value>
</xforms:item>
</xforms:select1>


This means that the radio button on the form will select the correct value of xsi:type in the native XML.

The other issue is that vs:CircleRegion and vs:RectangularRegion have extra components include repeat/delete ones - where do I put these in the select1 statement and to what should they refer, i.e. can I put attibute values in the nodeset arguments, like:

<xforms:repeat nodeset="/form/document/vr:Resource/vs:coverage/vs:spatial/vs: [EMAIL PROTECTED]:type = 'vs:CircleRegion']" id="regionRequest"/>

        Cheers,

        Matthew



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to