| Subject: RE: [xsl] Select Deepest Node only in Iteration From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Fri, 13 Jul 2007 13:04:27 +0100 | 
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/
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] Select Deepest Node only , J. Zhang | Thread | Re: [xsl] Select Deepest Node only , J. Zhang | 
| Re: [xsl] Select Deepest Node only , J. Zhang | Date | Re: [xsl] > replaced by ">", <, Jethro Borsje | 
| Month |