ONLY_LOCAL_NAMESPACES seems not to work

Bug #938574 reported by Chris Hillery
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Committed
Medium
Markos Zaharioudakis

Bug Description

If you call ElementNode::getNamespaceBindings() on a store::Item, and pass the NsScoping value ONLY_LOCAL_NAMESPACES, you will still get namespace bindings declared by parent elements. For instance, if you have the query

 <foo:Employee xmlns:foo="http://www.opencsx.org/schema"><foo:Name>Luis</foo:Name><foo:Salary>10000000</foo:Salary></foo:Employee>

and you get the store::Item for <foo:Name>, you will get the binding for xmlns:foo.

This results in redundant information being stored when serializing to CSX, and also prevents certain CSX format optimizations.

Tags: cpp-api
Changed in zorba:
status: New → Fix Committed
milestone: none → 3.0
tags: added: cpp-api
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.