Ran a search on forum & FAQs here for 'for-each' - would you believe actually NO results!
Anyway, my problem is this:
(example XML)
<root>
<node id="1" nodeid="100">
<node id="2" nodeid="103">
</node>
</node>
<text name="Rating1">Poor</text>
<text name="Rating2">Unsatisfactory</text>
<text name="Rating3">Average</text>
<text name="Rating4">Good</text>
<text name="Rating5">Excellent</text>
</root>
Now say I'm within a template for <node> within an XSL document, and I run something like:
<xsl:for-each select="/root/text[substring(@name, 1, 6) = 'Rating']">
...
I need to be able to from within the for-each, refer to the @nodeid of the <node> I was in when I called for-each. I tried and as expected could not feed the for-each a parameter. How to solve?
codestorm
Newbie Life Member.
Fire bad. Tree pretty. - Buffy
<insert witticism here>
Anyway, my problem is this:
(example XML)
<root>
<node id="1" nodeid="100">
<node id="2" nodeid="103">
</node>
</node>
<text name="Rating1">Poor</text>
<text name="Rating2">Unsatisfactory</text>
<text name="Rating3">Average</text>
<text name="Rating4">Good</text>
<text name="Rating5">Excellent</text>
</root>
Now say I'm within a template for <node> within an XSL document, and I run something like:
<xsl:for-each select="/root/text[substring(@name, 1, 6) = 'Rating']">
...
I need to be able to from within the for-each, refer to the @nodeid of the <node> I was in when I called for-each. I tried and as expected could not feed the for-each a parameter. How to solve?
codestorm
Newbie Life Member.
Fire bad. Tree pretty. - Buffy
<insert witticism here>