[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Retrieving the position of an ancestor in nested <xsl
Hi,
how can I retrieve the position of an ancestor in a nested <xsl:for-each>-loop? My xml: <?xml version="1.0" encoding="UTF-8"?> <superNode> <Node> <SubNode>bla</SubNode> <SubNode>bla</SubNode> <SubNode>bla</SubNode> </Node> <Node> <SubNode>bla</SubNode> </Node> <Node> <SubNode>bla</SubNode> <SubNode>bla</SubNode> </Node> <Node> <SubNode>bla</SubNode> </Node> </superNode> The nested <xsl:for-each>: <xsl:for-each select="Node"> ... <xsl:for-each select="SubNode"> Position of Node: <xsl:value-of select="??????????"/> <!-- How will I get the position of the anchestor --> Position of SubNode: <xsl:value-of select="position()"/> </xsl:for-each> </xsl:for-each>
_________________________________________________________________ E-Mails sind zu unpersvnlich? Mit einer Webcam wird der MSN Messenger zum Bildtelefon! http://www.msn.de/messenger Jetzt kostenlos downloaden und mitmachen!
|
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
|