[ 
http://issues.apache.org/jira/browse/XERCESJ-1177?page=comments#action_12428299 
] 
            
hua lei commented on XERCESJ-1177:
----------------------------------

If feature http://xml.org/sax/features/namespace-prefixes is set to false, 
namespace events will trigger startPrefixMapping and endPrefixMapping methods 
of the ContentHandler. So we just need to do namespace binding in the 
startPrefixMapping method when the feature is set to false.

> SAXXMLStreamReader doesn't always report namespace bindings correctly
> ---------------------------------------------------------------------
>
>                 Key: XERCESJ-1177
>                 URL: http://issues.apache.org/jira/browse/XERCESJ-1177
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: StAX
>            Reporter: Lucian Holland
>
> The code seems to assume that xmlns attributes will be in the attributes 
> passed into the startElement method on the ContentHandler; AFACIT this is 
> only the case if http://xml.org/sax/features/namespace-prefixes is set to 
> true (false by default)[1] The result is that namespace bindings don't get 
> noticed properly unless this feature is set to true.
> [1] http://java.sun.com/j2se/1.5.0/docs/api/org/xml/sax/Attributes.html 

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