zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #00975
[Bug 872796] [NEW] validate-in-place can break other update primitives
Public bug reported:
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))
** Affects: zorba
Importance: High
Assignee: Federico Cavalieri (fcavalieri)
Status: New
** Changed in: zorba
Assignee: (unassigned) => Federico Cavalieri (fcavalieri)
** Changed in: zorba
Importance: Undecided => High
--
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:
New
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
Follow ups
References