[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: problem with position() function
Subject: Re: problem with position() function From: Gary L Peskin <garyp@xxxxxxxxxxxx> Date: Thu, 13 Jul 2000 23:22:44 -0700 |
Andre -- Your problem is in this select: <xsl:value-of select="//*[(name() = $elname) and (parent::node()[position() = $n])]"/> Each element has one parent. Therefore, the size of the node-set created by parent::node() will always be one since you can't have multiple parents for an element. Therefore, parent::node()[position() = $n] will only be true when n is 1 which is why you're only getting answers for the first row. Try: <xsl:value-of select="(//*[name() = $elname])[position() = $n]"/> Gary XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
problem with position() function, andreg | Thread | escaping '&', Antonio Sánchez |
RE: MS and XSL, Joshua Allen | Date | RE: MSXML and XSLT, Pawson, David |
Month |