[Top] [All Lists]

Re: [xsl] load-xquery-module(): Request for working code example of calling this standard XPath 3.1 function

2019-09-07 01:57:39
The XSLT3 and QT3 test suites are now on GitHub: w3c/xslt30-test and 
w3c/qt3tests. The schema tests are there too at w3c/xsdtests.

Tests for load-xquery-module can be found at


Most of the tests were written before the "?" syntax was introduced, so they 
tend to use $module("functions") where I would now write $module?functions

For example to call a stddev function defined in a query library module: 

let $NS := ....
load-query-module($NS)?functions(QName($NS, "stddev"))((12, 34, 45))

The mechanism for locating a query module given its namespace is 
implementation-defined, but you can supply a location hint in the options 
argument to the function.

Michael Kay

On 7 Sep 2019, at 03:00, Dimitre Novatchev dnovatchev(_at_)gmail(_dot_)com 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:

Could someone please, provide a working code example of calling the standard 
XPath 3.1 function  load-xquery-module() ?

The official specification at:  
<https://www.w3.org/TR/xpath-functions-31/#func-load-xquery-module> doesn't 
provide any examples.

Also, do any official and public-available test suites for F&O 3.1 exist and 
how to reach these?

Dimitre Novatchev
Truly great madness cannot be achieved without significant intelligence.
To invent, you need a good imagination and a pile of junk
Never fight an inanimate object
To avoid situations in which you might make mistakes may be the
biggest mistake of all
Quality means doing it right when no one is looking.
You've achieved success in your field when you don't know whether what you're 
doing is work or play
To achieve the impossible dream, try going to sleep.
Facts do not cease to exist because they are ignored.
Typing monkeys will write all Shakespeare's works in 200yrs.Will they write 
all patents, too? :)
Sanity is madness put to good use.
I finally figured out the only reason to be alive is to enjoy it.
XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/293509> (by 
email <>)
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
<Prev in Thread] Current Thread [Next in Thread>