[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

Subject: Retrieving the position of an ancestor in nested <xsl:for-each>
From: "Jonny Pony" <jonnypony666@xxxxxxxxxxx>
Date: Tue, 04 May 2004 10:54:38 +0000
xsl ancestor position
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>



Thanks Jonny

_________________________________________________________________
E-Mails sind zu unpersvnlich? Mit einer Webcam wird der MSN Messenger zum Bildtelefon! http://www.msn.de/messenger Jetzt kostenlos downloaden und mitmachen!


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.