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 "Lucian Holland (JIRA)" <xe...@xml.apache.org> on 2006/08/15 14:22:14 UTC

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

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


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

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESJ-1177?page=all ]

Michael Glavassevich resolved XERCESJ-1177.
-------------------------------------------

    Resolution: Fixed

Should be fixed by Hua's patch on XERCESJ-1178.

> 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


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

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XERCESJ-1177?page=comments#action_12429338 ] 
            
Michael Glavassevich commented on XERCESJ-1177:
-----------------------------------------------

Hua's patch on XERCESJ-1178 which I just commited should fix this problem.

> 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


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

Posted by "Lucian Holland (JIRA)" <xe...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XERCESJ-1177?page=comments#action_12438577 ] 
            
Lucian Holland commented on XERCESJ-1177:
-----------------------------------------

Seems to work fine for me now. Thanks!

> 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


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

Posted by "hua lei (JIRA)" <xe...@xml.apache.org>.
    [ 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