[ 
http://issues.apache.org/jira/browse/XERCESJ-1178?page=comments#action_12428316 
] 
            
Michael Glavassevich commented on XERCESJ-1178:
-----------------------------------------------

The default namespace never applies to attributes.  The case that I'm referring 
to occurs when an attribute (which has a local name and namespace) is added to 
the infoset by some processing step after parsing like schema validation or 
XInclude.  These attributes have no prefix and there may not even be any 
prefixes bound to the attribute's namespace in the current scope.

> Error getting prefix for an attribute with no namespace
> -------------------------------------------------------
>
>                 Key: XERCESJ-1178
>                 URL: http://issues.apache.org/jira/browse/XERCESJ-1178
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: StAX
>    Affects Versions: 2.8.0
>            Reporter: Lucian Holland
>
> The initialElementAttrs()  method of SAXXMLStreamReader sets the prefix of 
> attributes to null if it finds no colon in the attribute name; the problem 
> with this is that getAttributeNamespace() uses this prefix when looking up 
> the namespace uri with a call to getNamespaceURI on the NamespaceContextImpl, 
> and this method throws an IllegalArgumentException if null is passed in. 

-- 
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]

Reply via email to