[
https://issues.apache.org/jira/browse/XMLBEANS-598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
PJ Fanning closed XMLBEANS-598.
-------------------------------
Resolution: Invalid
The Locale SaxLoader is just creating an XObj so it appears it doesn't need to
worry about the endPrefixMapping.
> 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
> Priority: Major
>
> 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]