[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: [position node] I to get it.

Subject: RE: [position node] I to get it.
From: "Sergiu Ignat" <sergiu@xxxxxxxxxx>
Date: Wed, 1 Oct 2003 13:13:57 +0300
position node xml
if you match the child document from the parent document you can define a parameterized template and call it like this:

<xsl:apply-templates select="dmidref">
		<xsl:with-param name="parentposition" select="position()"/>
</xsl:apply-templates>

and the template for the child must look like this:

<xsl:template match="dmidref">
<xsl:param name="parentposition"/>
	<!-- something -->
	<xsl:value-of select="$parentposition"/>
	<!-- something -->		
</xsl:template>

Sergiu
> -----Original Message-----
> From: Lionel Crine [mailto:crine@xxxxxxxxxxxx]
> Sent: 1 octombrie 2003 11:35
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  [position node] I to get it.
> 
> 
> Hello,
> 
> Id' like to get the position of the parent node of the context node :
> 
> For example :
> 
> <dmref>
> <dmidref> --> from here I need the position of dmref
> <dmidref>
> 
> Is it possible ?
> 
> Lionel
> 
> Lionel CRINE
> Ingénieur Systèmes documentaires
> Société : 4DConcept
> 22 rue Etienne de Jouy 78353 JOUY EN JOSAS
> Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.