xsl-list
[Top] [All Lists]

Re: seriously trivial question about processing the root element

2003-03-19 15:43:34

  at least in the above example, it seems to be little
more than aesthetics.  is this accurate?

as always in xslt, it depends on what the other templates are.
Usually it's just a matter of style, I usually use a match of /
on a template that's generating the top level output as it's
just easier to find later. but it can make a difference
if there are for example templates copying comments from the input to
the result and you don't want top level comments copied matching on /
and directing apply templates to the element node and ignoring top level
comments and pis is one way to achieve that.

David

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