xsl-list
[Top] [All Lists]

Re: recursion with xsl:apply-templates

2003-08-27 03:01:48
           <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.
Sorry, was a cut/copy/paste error. It is
        <xsl:apply-templates>

   <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.
No, seems to be another problem. I just wanted to make sure, that only children of IRF are processed from the generic node-processing template. Thanks for the hint, I changed it to
        <xsl:apply-templates/>

Anyway, my primary problem remains. Any ideas?
Volker.




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