T
thomas
Hello all
Im having problems with selecting subelements from a dynamic created RTF
converted to a node-set:
i have hardcodet this example:
the xml structure:
<xsl:variable name="test">
<theelement>
<xsl:value-of select="'1'"></xsl:value-of>
</theelement>
<thesubelement>
<theelement2>
<xsl:value-of select="'1-1'"></xsl:value-of>
</theelement2>
<theelement2>
<xsl:value-of select="'1-2'"></xsl:value-of>
</theelement2>
</thesubelement>
<theelement>
<xsl:value-of select="'2'"></xsl:value-of>
</theelement>
<theelement>
<xsl:value-of select="'3'"></xsl:value-of>
</theelement>
</xsl:variable>
<xsl:variable name="XAxsisNodeSet1" select="msxsl:node-set($test)"/>
<xsl:for-each select="$XAxsisNodeSet1/theelement">
<xsl:value-of select="." /><br/>
<xsl:for-each select="thesubelement/theelement2">
<xsl:value-of select="." /><br/>
</xsl:for-each>
</xsl:for-each>
i would expect the result to be:
1
1-1
1-2
2
3
but my result is
1
2
3
I never interates the subelements ??? does anyone know why?? i have
tried different ways of doint this but no success?
Please help
Thomas
Im having problems with selecting subelements from a dynamic created RTF
converted to a node-set:
i have hardcodet this example:
the xml structure:
<xsl:variable name="test">
<theelement>
<xsl:value-of select="'1'"></xsl:value-of>
</theelement>
<thesubelement>
<theelement2>
<xsl:value-of select="'1-1'"></xsl:value-of>
</theelement2>
<theelement2>
<xsl:value-of select="'1-2'"></xsl:value-of>
</theelement2>
</thesubelement>
<theelement>
<xsl:value-of select="'2'"></xsl:value-of>
</theelement>
<theelement>
<xsl:value-of select="'3'"></xsl:value-of>
</theelement>
</xsl:variable>
<xsl:variable name="XAxsisNodeSet1" select="msxsl:node-set($test)"/>
<xsl:for-each select="$XAxsisNodeSet1/theelement">
<xsl:value-of select="." /><br/>
<xsl:for-each select="thesubelement/theelement2">
<xsl:value-of select="." /><br/>
</xsl:for-each>
</xsl:for-each>
i would expect the result to be:
1
1-1
1-2
2
3
but my result is
1
2
3
I never interates the subelements ??? does anyone know why?? i have
tried different ways of doint this but no success?
Please help
Thomas