** Changed in: zorba
       Status: Fix Committed => Fix Released

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

Title:
  Nested element constructors cause loss of namespace bindings

Status in Zorba - The XQuery Processor:
  Fix Released

Bug description:
  Consider this query:
  element {QName("http://outer","bind";)}
  {
      element {QName("","b")}
      {
          "inner"
      }
  }
  In zorba and all other libraries it creates as expected:
  <?xml version="1.0" encoding="UTF-8"?>
  <bind xmlns="http://outer";><b xmlns="">inner</b></bind>
  Notice that b contains xmlns=""

  
  Consider this query now:
  element {QName("http://outer","bind";)}
  {
    element {QName("http://named","named:middle";)}
    {
      element {QName("","b")}
      {
        "inner"
      }
    }
  }

  This one in zorba creates:
  <?xml version="1.0" encoding="UTF-8"?>
  <bind xmlns="http://outer";><named:middle 
xmlns:named="http://named";><b>inner</b></named:middle></bind>
  Notice that b inherits xmlns="http://outer";

  I would expect the result that is given by Saxon and BaseX:
  <?xml version="1.0" encoding="UTF-8"?>
  <bind xmlns="http://outer";>
     <named:middle xmlns:named="http://named";>
        <b xmlns="">inner</b>
     </named:middle>
  </bind>
  Notice that b contains xmlns=""

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/867221/+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