Details
-
Bug
-
Status: Resolved
-
Resolution: Duplicate
-
2.5Dx
-
None
-
Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
-
None
-
Operating System: Windows XP
Platform: PC
-
25466
Description
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.
Attachments
Attachments
Issue Links
- duplicates
-
XALANJ-762 "Default identity" transform not generating namespace declarations
- Open
- is related to
-
XALANJ-2091 Namespace attributes not added as attributes when using TransformerIdentityImpl
- Resolved