You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2003/12/12 11:15:11 UTC
DO NOT REPLY [Bug 25466] New: -
DOM serialization omits attribute namespace declarations
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25466>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25466
DOM serialization omits attribute namespace declarations
Summary: DOM serialization omits attribute namespace declarations
Product: XalanJ2
Version: 2.5Dx
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Major
Priority: Other
Component: org.apache.xalan.serialize
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: mihobson@hotmail.com
When serializing a DOM using the identity transform, Xalan omits all attribute
namespace declarations resulting in invalid XML. See the attached code for an
example.
XalanJ 2.5.2 produces:
<?xml version="1.0" encoding="UTF-8"?>
<element ns:attr="value"/>
Whereas the correct output should be:
<?xml version="1.0" encoding="UTF-8"?>
<element xmlns:ns="http://www.namespaceuri.com/" ns:attr="value"/>
As produced by SAXON et al.