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 2002/09/14 19:35:52 UTC
DO NOT REPLY [Bug 12646] New: -
AttList fails to convert namespace URIs
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=12646>.
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=12646
AttList fails to convert namespace URIs
Summary: AttList fails to convert namespace URIs
Product: XalanJ2
Version: 2.4
Platform: All
OS/Version: All
Status: NEW
Severity: Major
Priority: Other
Component: org.apache.xml.utils
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: hsato@jmail.plala.or.jp
org.apache.xml.utils.AttList fails to convert namespace URIs when they represent
"No namespaces".
For example, suppose AttList.getValue(String, String) method is invoked as
attList.getValue("", "some-local-name").
Then AttList is expected to invoke NamedNodeMap.getNamedItemNS(String, String)
as m_attrs.getNamedItemNS(null, "some-local-name"),
while in current implementation it invokes m_attrs.getNamedItemNS("",
"some-local-names") and results no suitable attribute nodes.
No conversion of "" into null is performed, but it is required.
This problem casts a blight upon codes like below:
TransformerFactory.newInstance().newTransformer().transform(domSource, saxResult);
where saxResult's ContentHandler receives instances of AttList as arguments of
invocation of startElement.