Subject: Re: problems with position() and following-sibling
From: Georges Schmitz <georges.schmitz@xxxxxxxxx>
Date: Mon, 15 Aug 2005 15:47:29 +0200
|
Michael and Nick,
many thanks for these hints. It were actually text nodes, that
disorganized my use of position().
Regards,
Georges
Michael Kay wrote:
Yes. Another solution is to use
<xsl:strip-space elements="*"/>
to remove the whitespace text nodes.
Nick Fitzsimons wrote:
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
| Current Thread |
|
omprakash . v - 12 Aug 2005 10:16:26 -0000
Georges Schmitz - 15 Aug 2005 13:48:24 -0000 <=
|
|