[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: comment() node test
Evan Lenz wrote: > "preceding-sibling::node()[not(self::text())][1][self::comment()]" > > This worked just as well. Here you are getting the set of non-text preceding siblings, taking the first node in that set, and testing it to see if it's a comment. If the first non-text preceding sibling is not a comment, this would fail, I believe. Isn't "preceding-sibling::comment()[1]" what you want? i.e. from among the preceding siblings that are comments, the ones (one) for which the context position is 1? - Mike ____________________________________________________________________ Mike J. Brown, software engineer at My XML/XSL resources: webb.net in Denver, Colorado, USA http://www.skew.org/xml/ 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
|