Public bug reported:

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.

** Affects: zorba
     Importance: Medium
     Assignee: Markos Zaharioudakis (markos-za)
         Status: New

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/938574

Title:
  ONLY_LOCAL_NAMESPACES seems not to work

Status in Zorba - The XQuery Processor:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/938574/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to