Subject: Re: [xsl] load-xquery-module(): Request for working code example of calling this standard XPath 3.1 function From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sat, 7 Sep 2019 06:57:33 -0000 |
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@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> 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 <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? > > > -- > Cheers, > 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 <>)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] PASSING> Michael Beddow (, Charles Muller acmul | Thread | Re: [xsl] load-xquery-module(): Req, Dimitre Novatchev dn |
[xsl] PASSING> Michael Beddow (-201, Charles Muller acmul | Date | Re: [xsl] PASSING> Michael Beddow (, Dave Pawson dave.paw |
Month |