This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
embedded <xsl-for-each>
- From: "Sébastien Tisserant" <stisserant at europarl dot eu dot int>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 21 Feb 2002 14:24:04 +0100
- Subject: [xsl] embedded <xsl-for-each>
- Reply-to: xsl-list at lists dot mulberrytech dot com
hello
i have this template:
<xsl:template match="FLOW-MENU-GRP"> <xsl:for-each select="/FLOW-MENU-GRP/FAMILY"> <DIV> <xsl:attribute name="ID"><xsl:value-of select="position()"/></xsl:attribute> <xsl:value-of select="text()"/> </DIV> <xsl:for-each select="/FLOW-MENU-GRP/SERVICE"> <DIV> <xsl:attribute name="ID">here i'd like to get the value of position() given above in line 4</xsl:attribute> <xsl:value-of select="text()"/>
</DIV> </xsl:for-each> </xsl:for-each></xsl:template>
is this possible using and ancestor path? how should i write it?
is this possible using <xsl:variable>? how should i use it?
thanks
sébastien
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list