[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: position()
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|