Subject: Re: [xsl] end-tag minimization problem? From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 16 May 2005 16:00:54 +0100 |
--tth: 1184 It seems highly implausible that any stylesheet will produce different results for <a></a> and for <a/>, because mainstream XML parsers report both these things to the "application" (in this case, the XSLT processor) in exactly the same way. So you'll need to provide some convincing evidence. Michael Kay http://www.saxonica.com/ There's the real world, and then there's Seattle.... <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output encoding="utf-8"/> <xsl:template match="/"> <a/> <a></a> </xsl:template> </xsl:stylesheet> $ msxsl.exe empty.xsl empty.xsl <?xml version="1.0" encoding="utf-8"?><a /><a></a> msxsl preserves (sometimes, if it feels like it) the style of empty element used in the source. David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. 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 ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] end-tag minimization prob, Michael Kay | Thread | [xsl] Junit-type Framework for XSLT, Eliot Kimber |
RE: [xsl] end-tag minimization prob, Michael Kay | Date | Re: [xsl] flat XML to normal XML, Borut Bolčina |
Month |