Hi,

I have the following in my page-flow.xml:

<action when="/form/action = 'edit'" action="publish/find-resource.xpl">

This returns:

<result>
  <resourceType>
  <document>
</result>

resourceType can presently have 10 values but this will expand and each resourceType has a different XForm to it so at the moment I have:

<result page="Type1" when "/result/resourceType = 'Type1'">
  <xu:update select="/form/document">
    <xu:copy-of select="document('oxf:action')/result/document/*"/>
  </xu:update>
</result>

and similarly for each possible value of resourceType. This seems needless repetition, however, and I was wondering how I could just do something like to handle all possibilities:

<result page="[value of /result/resourceType]">
  <xu:update select="/form/document">
    <xu:copy-of select="document('oxf:action')/result/document/*"/>
  </xu:update>
</result>

        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