Comments (7)
I have pushed a commit to implement the proposed change, and a simple test modules-30 that exemplifies it. Comments still welcome....
from qt3tests.
I propose to add an optional locatiion
attribute to the module
element in the test metadata, with the semantics:
The location
attribute should be used only for XQuery 3.0 or later.
If the import module
declaration has no location hints, the location
attribute in the test metadata is ignored.
If the import module
declaration has a location hint then the test driver attempts to identify a module
element in the environment that matches both the module namespace URI and the location
attribute (where the location match uses URIs after absolutization). If a match is found then the library module referenced by the file
attribute is loaded. If no match is found then a "module not found" error occurs. If there are several location hints, then each one is matched independently, and all the corresponding modules are loaded.
from qt3tests.
For reference the commit @michaelhkay mentions is: 9aaa368
from qt3tests.
OMG. Who would possibly need that?
The XQuery 1 way was perfect, load the module from the first location that is available. An user could download the module, save it to a file as local cache, and then put the file url and the original http url in the locations, and when the file was there it could always load the file efficiently and ignore the http url.
from qt3tests.
from qt3tests.
@benibela This came about due to code I found in the wild designed for different processors. @joewiz also just reminded me that this had been opened as an issue with eXist-db in the past too eXist-db/exist#1174
from qt3tests.
As there have been no alternative suggestions for over a year, I am closing the issue.
from qt3tests.
Related Issues (20)
- re00984: \w and ⌈,⌉
- fn-round K-RoundFunc-2 HOT 5
- A spec needed for test case fn-replace-58 HOT 1
- A spec required for test cases predicates-33 and predicates-35 HOT 2
- Question about test-case `fn-transform-20` HOT 1
- Question about test-case uri-collection-901 and uri-collection-903
- fn-transform-68 test should use a test method valid in all versions of Saxon HOT 3
- Question about test case `K2-OrderbyExprWithout-26` and `K2-OrderbyExprWithout-27` HOT 2
- K2-ConText-18 dependency HOT 3
- Decimal digit precision and op-numeric-dividedec2args-4 HOT 1
- Incorporating qt3tests to qt4tests HOT 2
- map-merge-027 is dependent on implementation dependent order of keys
- fn-subsequence-mix-args-025 depends on XQuery but doesn't specify it HOT 1
- Confusion about fn-function-lookup-761 in relation to fn-function-lookup-759
- fn:matches surprisingly returns false for `fn:matches("AB", "^(.*)+B")` HOT 4
- IsCombiningMarksforSymbols is not a unicode block anymore HOT 4
- IsHighSurrogates and IsLowSurrogates HOT 2
- matches.re.xml re00984 considers 8968 and 8969 as word but they are punctuation HOT 1
- MapConstructor-025. What is a token? What is a terminal symbol? HOT 5
- Shouldn't <assert-deep-eq> contains only expressions which are valid to all dependency specs? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qt3tests.