[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
ms.exe
I have the following XML sample.
<test>
<test1 attr1="kkk"/>
<test2 attr2=""/>
</test>

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"/>
<test2>

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. 

thanks,
Fengrui 


 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.