Re: [xsl] position()

Subject: Re: [xsl] position()
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 2 Apr 2001 18:08:33 +0100 (BST)
me>      <xsl:copy-of select="preceding::*[1][self::comment()]"/>
Wendell> <xsl:copy-of select="preceding-sibling::node()[1][self::comment()]"/> 

As I'd mentioned in my message, * matches elements and not comments so
my answer which filters those elements  are comments is economical with
the truth, whereas Wendell's answer which selects those nodes which are
comments is longer but has the advantage of working.

David

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


Current Thread