TIBCOSoftware / genxdm

GenXDM: XQuery/XPath Data Model API, bridges, and processors for tree-model neutral access to XML.
http://www.genxdm.org/
9 stars 4 forks source link

AbstractNamespaceFixupFilter.inScope method should stop looking after matching prefix, even if namespace does not match #166

Closed jbaysdon closed 8 years ago

jbaysdon commented 8 years ago

For this xml...

some text /ns:c /ns:b ns:a When reconciling the namespaces for element c, the call to inScope will return true for the "ns" to "foo" namespace mapping.
jbaysdon commented 8 years ago

For inScope method, we now return after matching the prefix, even if the namsepace doesn't match. That way, we limit our search to what's actually in scope.