[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: filtering by ancestor
> I'm writing a breadth-first parser but I want to restrict the > parse to /resultset/result[1] So at any given node I need the > subset of following::* that has /resultset/result[1] as an ancestor. > Some processors have an xx:intersect() extension function: xx:intersect(/resultset/result[1]//*, following::*) In XPath 2.0 you can do /resultset/result[1]//*[. follows current()] which might be rather more efficient if the subtree is small compared with the full document. 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
|