[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] position()


Subject: Re: [xsl] position()
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 2 Apr 2001 14:26:39 +0100

> What's the best thing to change it
> to then so that the comments are not included?

don't select the comments.

If you go use apply-templates with no argument then the current node
list will include all nodes including comments and white space text
nodes.

If you don't want that, then use select="*" just to select elements.

Or use xsl:number rather than position()

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread