XQXQ feature request: custom schema uri resolver
Bug #903797 reported by
Dennis Knochenwefel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
Critical
|
Juan Zacarias |
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-
(: create/fetch xml schema :)
xqddf:
};
let $module := xqxq:prepare-
return
xqxq:
Related branches
lp:~zorba-coders/zorba/zorba-xqxq-url-resolver
- Chris Hillery: Disapprove
- Matthias Brantner: Needs Information
- Sorin Marian Nasoi: Approve
-
Diff: 34 lines (+16/-3)1 file modifiedsrc/runtime/core/fncall_iterator.cpp (+16/-3)
lp:~zorba-coders/zorba/xqxq-url-resolver
- Sorin Marian Nasoi: Approve
- Matthias Brantner: Approve
- Chris Hillery: Approve
-
Diff: 585 lines (+438/-4)14 files modifiedsrc/xqxq.xq (+115/-1)
src/xqxq.xq.src/xqxq.cpp (+145/-2)
src/xqxq.xq.src/xqxq.h (+39/-1)
test/ExpQueryResults/xqxq/uri-mapper.xml.res (+2/-0)
test/ExpQueryResults/xqxq/uri-mapper2.xml.res (+2/-0)
test/ExpQueryResults/xqxq/url-module-resolver.xml.res (+2/-0)
test/ExpQueryResults/xqxq/url-schema-resolver.xml.res (+2/-0)
test/ExpQueryResults/xqxq/url-schema-resolver2.xml.res (+2/-0)
test/Queries/xqxq/test.xsd (+14/-0)
test/Queries/xqxq/uri-mapper.xq (+27/-0)
test/Queries/xqxq/uri-mapper2.xq (+22/-0)
test/Queries/xqxq/url-module-resolver.xq (+17/-0)
test/Queries/xqxq/url-schema-resolver.xq (+20/-0)
test/Queries/xqxq/url-schema-resolver2.xq (+29/-0)
Changed in zorba: | |
milestone: | 2.2 → 2.5 |
Changed in zorba: | |
importance: | Undecided → Medium |
importance: | Medium → High |
Changed in zorba: | |
milestone: | 2.5 → 2.7 |
Changed in zorba: | |
milestone: | 2.7 → 2.8 |
importance: | High → Critical |
Changed in zorba: | |
status: | New → Fix Committed |
Changed in zorba: | |
milestone: | 2.8 → 2.9 |
tags: | removed: schema-uri-resolver |
tags: | removed: validation |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.