Subject: RE: Re: Introducing a comma.
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 18 Nov 2003 21:51:56 GMT
|
<xsl:if test="not(position() = last())">
you are relying on the position in the current node list for these
templates, and since that is the default selection for apply-templates
it includes text nodes, so your last node is the white spece text.
If you use xsl:apply-templates select="*" you'll only have elements and
it'll work.
David
--
http://www.dcarlisle.demon.co.uk/matthew
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- RE: Introducing a comma., (continued)
- kakridge - Tue, 18 Nov 2003 12:50:27 -0500 (EST)
- cknell - Tue, 18 Nov 2003 13:07:04 -0500 (EST)
- cknell - Tue, 18 Nov 2003 13:08:47 -0500 (EST)
- Paul DuBois - Tue, 18 Nov 2003 13:49:17 -0500 (EST)
- David Carlisle - Tue, 18 Nov 2003 16:52:21 -0500 (EST) <=
- cknell - Tue, 18 Nov 2003 13:21:20 -0500 (EST)
- cknell - Tue, 18 Nov 2003 14:46:18 -0500 (EST)
|
|