Thanks Dr. Kay.
On Fri, Sep 6, 2019 at 11:57 PM Michael Kay mike(_at_)saxonica(_dot_)com <
xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
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
https://github.com/w3c/qt3tests/blob/master/fn/load-xquery-module.xml
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?
--~----------------------------------------------------------------
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
--~--