[ http://issues.apache.org/jira/browse/XALANJ-1828?page=all ]
Brian Minchau updated XALANJ-1828:
----------------------------------
Version: 2.6
(was: Latest Development Code)
> DTM does not parse attribute namespaces properly
> ------------------------------------------------
>
> Key: XALANJ-1828
> URL: http://issues.apache.org/jira/browse/XALANJ-1828
> Project: XalanJ2
> Type: Bug
> Components: DTM
> Versions: 2.6
> Environment: Operating System: All
> Platform: All
> Reporter: Morten Jorgensen
> Assignee: Xalan Developers Mailing List
> Attachments: test.xml, test.xsl
>
> The org.apache.xml.dtm.ref.DTMDocumentImpl class does not seem to handle
> attribute namespaces properly. This small XML document can be used to
> reproduce the bug:
> <?xml version="1.0" encoding="utf-8"?>
> <!-- Initial declaration mapping 'a' to 'www.aaa.com' -->
> <a:foo xmlns:a="www.aaa.com">
> <!--
> New declaration mapping 'a' to 'www.bbb.com'.
> This declaration applies to the whole element
> and all its attributes!
> -->
> <a:bar a:attr1="one" xmlns:a="www.bbb.com" a:attr2="two"/>
> </a:foo>
> The DTM will be created with the attribute 'a:attr1' on the namespace
> 'www.aaa.com' while it should be in namespace 'www.bbb.com'. Two things need
> to be done in the DTMDocumentImpl class to correct this problem. Firstly the
> startPrefixMapping() method should be implemented to support SAX parsers that
> properly implement the SAX interface (namespace declarations are not really
> attributes). Then, the startElement() method should be changed to traverse
> the 'Attributes' parameter twice; first for all namespace declarations and
> then for all real attributes.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]