|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XSL Parent loop access?
Hello!
I really need to access the parent loop in an inner xsl:for-each loop this is my xml: <root>
<item>
<text>Some text</testtext>
<subitem>
<text>Some text</text>
</subitem>
<subitem>
<text>Some text2</text>
</subitem>
</item>
<item>
<testtext>Some text2</testtext>
<subitem>
<text>Some text2</text>
</subitem>
<subitem>
<text>Some text3</text>
</subitem>
</item>
</root>and my xsl: <xsl:for-each select="item">
Itemtext: <xsl:value-of select="text" />
<xsl:for-each select="subitem">
<xsl:if test="text=item/text">
Match found: <xsl:value-of select="text" />
</xsl:if>
</xsl:for-each>
</xsl:for-each>So how do i make this if clause compare the text of the current subitem with the text of the current item? <xsl:if test="text=item/text"> does not work Thanks alot in advance!!
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








