You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "hua lei (JIRA)" <xe...@xml.apache.org> on 2006/08/16 04:28:14 UTC

[jira] Commented: (XERCESJ-1177) SAXXMLStreamReader doesn't always report namespace bindings correctly

    [ 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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org