xsl-list
[Top] [All Lists]

Re: problems with position() and following-sibling

2005-08-15 06:47:29
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



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--