|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: unsuspected output
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








