xsl-list
[Top] [All Lists]

Re: recursion with xsl:apply-templates

2003-08-27 02:38:27


           <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