Subject: Re: [xsl] unsuspected output From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 1 Mar 2004 14:02:09 GMT |
This XSL should not produce any output except the Heading because the template which is applied by the apply-templates element is not present (not included jet). But it produces output, Try a stylesheet which just has an empty xsl:stylesheet element and no templates on any xml file. It does not produce no output, it copies all teh character data from the source. There is always a template for every node, if one isn't supplied a default one is used, the default for elements is to produce no element node but to recursively apply templates to child nodes, and the default for text nodes is to copy the text, so the end result is all teh text data being copied through, with no elements. Add <xsl:template match="*"/> if you want the default behaviour on element nodes to be to do nothing. David -- http://www.dcarlisle.demon.co.uk/matthew ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: AW: [xsl] unsuspected output, G. Ken Holman | Thread | Re: [xsl] unsuspected output, Andrew Curry |
Re: [xsl] unsuspected output, G. Ken Holman | Date | Re: [xsl] unsuspected output, Andrew Curry |
Month |