- From: <bugzilla@jessica.w3.org>
- Date: Thu, 21 Jul 2011 08:41:29 +0000
- To: public-qt-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13300
--- Comment #3 from Tim Mills <tim@cbcl.co.uk> 2011-07-21 08:41:27 UTC ---
Here's an example.
(: library module atomic.xqm :)
module namespace example = "http://www.example.org/";
declare revalidation lax;
declare copy-namespaces preserve, no-inherit;
import schema namespace atomic="http://www.w3.org/XQueryTest" at "atomic.xsd";
declare updating function example:update()
{
let $validated := validate strict { doc('atomic.xml') }
return
insert node
<atomic:integer>1</atomic:integer>
into $validated
};
(: main module atomic.xq :)
declare revalidation strict;
declare copy-namespaces preserve, inherit;
import module namespace example="http://www.example.org/" at "atomic.xqm";
example:update()
If I'm not mistaken, applyUpdates is called with arguments $revalidation-mode
"strict" and $inherit-namespaces true.
The query may (will? should?) fail, because revalidation would use the in-scope
schemas of the main module (which doesn't import the 'atomic.xsd').
--
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Thursday, 21 July 2011 08:41:35 UTC