Subject: RE: [xsl] Get parent's node position - Urgent From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Wed, 26 Sep 2001 16:37:01 +0100 |
> > To get the name of parent node I know: > <xsl:value-of select="name(parent::*)"/> > But I need the position. > What do you mean by "position"? If you mean the number of preceding sibling elements, use count(parent::*/preceding-sibling::*) or use xsl:number The position() function is about the position of the context node in the sequence of nodes currently being processed, it has nothing to do with the position of a node in the source tree. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Get parent's node position - , Paulo Henrique S. Be | Thread | Re: [xsl] Get parent's node positio, Paulo Henrique S. Be |
RE: [xsl] Node list question, Michael Kay | Date | [xsl] Need 'new line' in list, Linda Zammit |
Month |