validate-in-place can break other update primitives
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
High
|
Federico Cavalieri |
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://
import schema namespace d="http://
import module namespace file = "http://
declare revalidation lax;
variable $doc:=<item xmlns:xsi="http://
xmlns="http://
<a>old</a>
</item>;
(
schema:
replace value of node $doc//*:a with "new"
);
variable $res1:=
(
replace value of node $doc//*:a with "new"
);
($res1,
Changed in zorba: | |
status: | New → Fix Released |
Changed in zorba: | |
status: | Fix Released → Fix Committed |
milestone: | none → 2.1 |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
The schema www.w3. org/2001/ XMLSchema" www.zorba- xquery. org/schema" xmlns="http:// www.zorba- xquery. org/schema" Default= "qualified" >
<xs:schema xmlns:xs="http://
targetNamespace="http://
elementForm
<xs:element name="item"> complexType>
<xs:element name="a" type="xs:string"/>
< /xs:sequence> complexType>
<xs:
<xs:sequence>
</xs:
</xs:element>
</xs:schema>