Re: for-each loop issue in xforms.
Posted by
fl.schmitt(ops-users) on
URL: https://discuss.orbeon.com/for-each-loop-issue-in-xforms-tp1472983p1473067.html
Hi Laxmi,
> By defalut *xsl:for-each* taking data from *main-instance* in my
> xforms.I want to take data from *template-instance*.
>
> If i write for-each loop like below, it thorws a exception.
>
> <xsl:for-each select="*instance('template-instance')//*records/record">
> <xsl:for-each>
>
> How to write for-each which gets data from template-instance?
> Pl help me.
i think you can't access the model using instance() because xslt is
processed before the xforms engine takes over the document. If this is
correct, you still have different options:
- preprocess your template-instance as needed;
- aggregate your instances to a single instance so xslt can access it;
- keep your template-instance and use xforms and repeat to iterate over
the nodeset.
HTH
florian
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws