[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: end-tag minimization problem?

Subject: Re: [xsl] end-tag minimization problem?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 16 May 2005 16:00:54 +0100
xslt tag minimization
--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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.