[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: FW: xpath expression needed
At 03:25 PM 10/2/01, you wrote:
I want to match all nodes whose following-sibling::level1 has the same value for @type. So in this case, only the first 'level1' node would be matched. Yes, except for the small but very important detail that this will give you every level1 that have *any* following-sibling::level1 with a matching @type. To check just the directly following sibling level1, amend to: level1[@type = following-sibling::level1[1]/@type] The rule for node-set equality is in the XPath spec, 3.4. That's what you have inside the predicate (comparing the node-set consisting of @type to the node-set consisting of following-sibling::level1/@type). Cheers, Wendell
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
|