Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 0.9.3.21
-
Fix Version/s: None
-
Component/s: XML
-
Labels:None
-
Environment:Operating System: All
Platform: PC
-
Bugzilla Id:1056
-
Number of attachments :
Description
XML Environment: Xerces 1.4.4, Xalan-J 2.4
Occurs when marshalling a Castor object to a DOM Document via the Marshaller class.
The resulting DOM document has elements with local names such as
"prefix:element". This causes a DOM003 namespace error whenever using the DOM
document for any processing, such as XSLT transforms. This occurs because the
transfomer is not expecting a ":" to be in the local name. However, serializing
the DOM document works OK.
Note that SAX2DOMHandler always calls createElement rather than calling
createElementNS if the element has a namespace.
SAX2DOMHandler was created primarily for DOM1, it needs to handle the namespaces
properly or be upgraded to a newer DOM version. Assigning to Arnaud!