PJ Fanning created XMLBEANS-598:
-----------------------------------

             Summary: Locale SAX code does not end the scope of namespace 
mappings when endElement occurs
                 Key: XMLBEANS-598
                 URL: https://issues.apache.org/jira/browse/XMLBEANS-598
             Project: XMLBeans
          Issue Type: Improvement
            Reporter: PJ Fanning


startElement adds ns mappings (prefix -> uri) but endElement (or 
endPrefixMapping) should end their scope.

This is not as simple as it sounds. The scope should be treated as a Stack and 
mappings pushed and popped as appropriate. It is possible that an element has a 
mapping for 'ns1' and that a child element overrides the 'ns1' mapping but the 
original 'ns1' should return to scope when the child element is ended.

We should be able to find a NamespaceContext class that has these semantics.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to