xsl-list
[Top] [All Lists]

Re: [xsl] How to Get Nested Nodes

2011-12-22 09:09:12
On 22 December 2011 13:42, Scott Trenda 
<Scott(_dot_)Trenda(_at_)oati(_dot_)net> 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>