xsl-list
[Top] [All Lists]

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

2006-03-20 06:57:30
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(_at_)comcast(_dot_)net

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--