Subject: Re: [xsl] How to Get Nested Nodes From: Andrew Welch <andrew.j.welch@xxxxxxxxx> Date: Thu, 22 Dec 2011 15:08:57 +0000 |
On 22 December 2011 13:42, Scott Trenda <Scott.Trenda@xxxxxxxx> wrote: > Small comment... > > <xsl:template match="*"> > <xsl:apply-templates select="*"/> > </xsl:template> > > This template is unnecessary as written, the built-in templates cover this exact behavior. The only benefit I'd see to it would be that you'd have a placeholder in case you want to add more functionality to the handling of each element later, but in that case I would just wait and add a new template at that point. > There is a difference, the default template would apply templates to child nodes and not just elements... -- Andrew Welch http://andrewjwelch.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] How to Get Nested Nodes, Scott Trenda | Thread | [xsl] From filepaths to XML hierarc, Jesper Tverskov |
Re: [xsl] Schema-aware pretty-print, Michael Kay | Date | Re: [xsl] Schema-aware pretty-print, Murray McDonald |
Month |