[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Select Deepest Node only in Iteration
I suspect you want something like this: <xsl:for-each select="//*[matches(., concat('\W', $term, '\W'), 'im')]"> <xsl:sort select="count(ancestor::node())" order="descending"/> <xsl:if test="position()=1"> <path>/<xsl:value-of select="saxon:path()"/></path> </xsl:if> </xsl:for-each> Michael Kay http://www.saxonica.com/
|
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
|