Re: [xsl] recursion with xsl:apply-templates

Subject: Re: [xsl] recursion with xsl:apply-templates
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 27 Aug 2003 10:38:27 +0100

           <xsl:apply-templates select>

that isn't well formed XML so you should get an XML parse error and XSLT
should not start and so not produce any result.

   <xsl:template match="IRF">
     <xsl:copy>
       <xsl:copy-of select="@*"/>
       <xsl:apply-templates select="descendant::*"/>

are you _sure_ you want to apply templates on the descendent axis
This is _very_ unusual. This will mean that for example most
grandchildren will be processed twice, once here, as a descendent of
IRF and again when the templates handling the children of IRF apply
templates to their children.


David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread