RE: [xsl] descendant-or-self XSLT 1.0

Subject: RE: [xsl] descendant-or-self XSLT 1.0
From: Terry Ofner <tofner@xxxxxxxxxxx>
Date: Mon, 20 Mar 2006 08:57:05 -0500
Or you could try this approach:

     <xsl:template match="node">
         <xsl:apply-templates select="descendant-or-self::result"/>
     </xsl:template>

If you want to add space or a return between each result, you might try something like this:

<xsl:template match="node">
         <xsl:for-each select="descendant-or-self::result">
             <xsl:text>&#10;</xsl:text>
             <xsl:apply-templates select="."/>
         </xsl:for-each>
</xsl:template>

t.o.
--
Terry Ofner
1541 Northbrook Drive
Indianapolis, IN 46260
317-870-1992
tofner@xxxxxxxxxxx

Current Thread