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

Re: element minimisation (again)

Subject: Re: element minimisation (again)
From: Mukul Gandhi <mukulw3@xxxxxxxxx>
Date: Tue, 12 Aug 2003 06:31:14 -0700 (PDT)
simon the sourcer aga
i agree with David. its not a bug. <node></node> and
<node/> are same according to the spec. 

Regards,
Mukul

--- Andrew Welch <AWelch@xxxxxxxxxxxxxxx> wrote:
> 
> Someone just asked me why <node/> was coming out of
> the transform as
> <node></node>.  After trying out some of the
> processors, it seems msxml
> x when used with an identity transform doesn't
> minimise.
> 
> So, this stylesheet:
> 
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:template match="@*|node()">
>   <xsl:copy>
>     <xsl:apply-templates select="@*|node()"/>
>   </xsl:copy>
> </xsl:template>
> </xsl:stylesheet>
> 
> On this source:
> 
> <node/>
> 
> Produced:
> 
> Msxml3 	<node></node>
> Msxml4 	<node></node>
> Saxon 	<node/>
> Xalan		<node/>
> 
> Now the reason this has particularly annoyed me is
> because I've always
> wanted the ability to tell a processor 'don't
> minimise the elements'.
> After a few long dicussions on the list it seemed
> that it wasn't really
> feasible (or there wasn't enough momentum behind it)
> to have a feature
> like this, but obviously that's just down to
> interpretation.  Lots of
> people have had the same issue, and lots of people
> are adding &_#160;'s
> to their output to prevent it. 
> 
> This just appears to be an MSXML bug, but it
> would've been nice to the
> option.
> 
> Andrew. 
> 
> 
>  XSL-List info and archive: 
> http://www.mulberrytech.com/xsl/xsl-list
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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


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.