Subject: Re: [xsl] problems with position() and following-sibling From: "Nick Fitzsimons" <nick@xxxxxxxxxxxxxx> Date: Mon, 15 Aug 2005 11:21:00 +0100 (BST) |
> But that isn't reflecting my real problem. If I walk through the a set > of Cell nodes, position() returnes a doubled value, starting with 2 and > ending with 14. I will post that in an extra thread. > > Thanks, > Georges > It sounds like you've been caught by something that bit me recently. What's probably happening is that your <xsl:apply-templates /> is matching all nodes, _including_ whitespace text nodes between the elements; thus you get: 1. whitespace 2. Cell 3. whitespace 4. Cell ...and so on. If you use <xsl:apply-templates select="Cell" /> you should get the correct value for position(). HTH, Nick. -- Nick Fitzsimons http://www.nickfitz.co.uk/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] problems with position() , Georges Schmitz | Thread | RE: [xsl] problems with position() , Michael Kay |
Re: [xsl] problems with position() , Georges Schmitz | Date | RE: [xsl] problems with position() , Michael Kay |
Month |