Coder Social home page Coder Social logo

Comments (7)

michaelhkay avatar michaelhkay commented on August 16, 2024 1

I have pushed a commit to implement the proposed change, and a simple test modules-30 that exemplifies it. Comments still welcome....

from qt3tests.

michaelhkay avatar michaelhkay commented on August 16, 2024

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.

adamretter avatar adamretter commented on August 16, 2024

For reference the commit @michaelhkay mentions is: 9aaa368

from qt3tests.

benibela avatar benibela commented on August 16, 2024

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.

michaelhkay avatar michaelhkay commented on August 16, 2024

from qt3tests.

adamretter avatar adamretter commented on August 16, 2024

@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.

michaelhkay avatar michaelhkay commented on August 16, 2024

As there have been no alternative suggestions for over a year, I am closing the issue.

from qt3tests.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.