|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: [Xpath] Finding the *first* preceding sibling
I tried > '/para/node()[preceding-sibling::blink[1]]' but it gives > exactly the same set of nodes. > > What did I miss in the Xpath specification? > If a node has a preceding sibling called "blink", then one of these will be the first, so the two conditions are equivalent. You want to test whether the first preceding sibling is called "blink": [preceding-sibling::*[1][self::blink]] Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx 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
|

Cart








