← Back to team overview

zorba-coders team mailing list archive

[Bug 938574] [NEW] ONLY_LOCAL_NAMESPACES seems not to work

 

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


Follow ups

References