← Back to team overview

zorba-coders team mailing list archive

[Bug 872796] Re: validate-in-place can break other update primitives

 

** 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/872796

Title:
  validate-in-place can break other update primitives

Status in Zorba - The XQuery Processor:
  Fix Released

Bug description:
  The validate-in-place function can make other update primitives
  uneffective.

  The following query should return new new but it returns old new.

  import module namespace schema = "http://www.zorba-xquery.com/modules/schema";;
  import schema namespace d="http://www.example.com/doc"; at "test24.xsd";
  import module namespace file = "http://expath.org/ns/file";;
  declare revalidation lax;

  variable $doc:=<item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xmlns="http://www.zorba-xquery.org/schema";>
      <a>old</a>
  </item>;

  (
    schema:validate-in-place($doc),
    replace value of node $doc//*:a with "new"
  );

  variable $res1:=string($doc//*:a);

  (
    replace value of node $doc//*:a with "new"
  );

  ($res1,string($doc//*:a))

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


References