[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: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 7 Sep 2019 11:37:43 -0000
Re:  load-xquery-module(): Request for working code  ex
Am 07.09.2019 um 04:00 schrieb Dimitre Novatchev dnovatchev@xxxxxxxxx:
Could someone please, provide a working code example of calling the
standard XPath 3.1 functionB B load-xquery-module() ?


<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" B B B xmlns:xs="http://www.w3.org/2001/XMLSchema" B B B xmlns:math="http://www.w3.org/2005/xpath-functions/math" B B B xmlns:functx="http://www.functx.com" B B B exclude-result-prefixes="xs math functx" B B B version="3.0">

B B B  <xsl:variable name="functx-module"
select="load-xquery-module('http://www.functx.com', map {
'location-hints' :
'http://www.xqueryfunctions.com/xq/functx-1.0-doc-2007-01.xq' })"/>

B B B  <xsl:template name="xsl:initial-template" match="/">
B B B B B B B  <xsl:sequence
select="$functx-module?functions(xs:QName('functx:word-count'))?1('This
is a test.')"/>
B B B  </xsl:template>

</xsl:stylesheet>


is one of the first I tried. Requires Saxon EE.


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.