zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #02785
[Bug 903797] [NEW] XQXQ feature request: custom schema uri resolver
Public bug reported:
It should be possible to validate xdm instances against schemas which
are stored in collections or dynamically created. Therefore, a mechanism
is needed to tell the resolver before compiling and XQXQ module how to
find these schemas.
This could be implemented using HOFs.
Example:
declare function schema-uri-resolver($namespace as xs:string, $at-hints as xs:string*) as element(xs:schema)? {
(: create/fetch xml schema :)
xqddf:collection(...)//xs:schema[@targetNamespace=$namespace]
};
let $module := xqxq:prepare-main-module("import schema namespace test = 'http://test'; validate { <test:test /> }", schema-uri-resolver#2 )
return
xqxq:evaluate($module)
** Affects: zorba
Importance: Undecided
Assignee: Juan Zacarias (juan457)
Status: New
** Tags: schema-uri-resolver validation xqxq
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/903797
Title:
XQXQ feature request: custom schema uri resolver
Status in Zorba - The XQuery Processor:
New
Bug description:
It should be possible to validate xdm instances against schemas which
are stored in collections or dynamically created. Therefore, a
mechanism is needed to tell the resolver before compiling and XQXQ
module how to find these schemas.
This could be implemented using HOFs.
Example:
declare function schema-uri-resolver($namespace as xs:string, $at-hints as xs:string*) as element(xs:schema)? {
(: create/fetch xml schema :)
xqddf:collection(...)//xs:schema[@targetNamespace=$namespace]
};
let $module := xqxq:prepare-main-module("import schema namespace test = 'http://test'; validate { <test:test /> }", schema-uri-resolver#2 )
return
xqxq:evaluate($module)
To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/903797/+subscriptions
Follow ups
References