[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: recursion with xsl:apply-templates

Subject: Re: recursion with xsl:apply-templates
From: Volker Witzel <volker.witzel@xxxxxxxxxxxx>
Date: Wed, 27 Aug 2003 12:01:48 +0200
xsl templates recursion
<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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.