[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: load-xquery-module(): Request for working code ex

Subject: Re: load-xquery-module(): Request for working code example of calling this standard XPath 3.1 function
From: "Dimitre Novatchev dnovatchev@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 7 Sep 2019 17:13:29 -0000
Re:  load-xquery-module(): Request for working code  ex
Thanks Dr. Kay.

On Fri, Sep 6, 2019 at 11:57 PM Michael Kay mike@xxxxxxxxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> 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@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 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?

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.