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

Different behavior between Xalan & MSXSL.exe

Subject: Different behavior between Xalan & MSXSL.exe
From: "Fengrui Gu" <gfr@xxxxxxxxxx>
Date: Sat, 30 Nov 2002 14:43:01 -0500
I have the following XML sample.
<test1 attr1="kkk"/>
<test2 attr2=""/>

When I tried to copy the content of node test
through <xsl:copy-of select="test"/>, I got
different results from Xalan and MSXSL.exe.
>From Xalan, 
I got 
<test1 attr1="kkk"/>

But from msxsl.exe
I have
<test1 attr1="kkk"/>
<test2 attr2=""/>

Obviously, Xalan ignored the attributes have null value. 
Did anybody know how to disable this feature in Xalan? 
I suppose msxsl.exe does the right thing. <test2> and
<test2 attr2=""/> have different semantic meanings. 


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

Current Thread


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.
First Name
Last Name
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.