RE: : Finding the deepest node(s)
> -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > TSchutzerWeissmann@xxxxxxxxxxxxxxxx > Sent: 18 June 2002 11:56 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: : Finding the deepest node(s) > > > Is there an XPath to find the deepest node(s) in some xml, ie > the node(s) with more parents than any others? Not in a single XPath expression, because existential quantification is only available when comparing nodes according to their string-value. Try the higher-order Saxon extension functions: saxon:highest(//node(), saxon:expr('count(ancestor::*)') or check Dimitre's dynamic templates. 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