This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Position of a Child


> I reference the child by its name (stored in a variable), like this:
> 
> <xsl:value-of select="*[name()=$NodeName]"/>
> 
> What I would like to get is the position of that child inside 
> the context
> node.
> I don't seem to find the correct syntax for this.
> 
count(preceding-sibling::*)+1

Mike Kay

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]