Sorry, Peter, I focused on you running XSLT 1.0 and missed that you
were invoking Saxon 9he.
Saxon 9he does not support extension functions. You need a
commercial version of Saxon to get extension functions. When I run
XSLT 1.0 I use Saxon 6.5.5.
I hope this helps.
. . . . . . . . . . . . . Ken
At 2010-02-28 15:27 -0500, I wrote:
At 2010-02-28 20:20 +0000, Peter Flynn wrote:
I think I have lost the plot here a little.
I need to use Saxon 9he from the command line under Ubuntu 9.10 for
an XSLT 1.0 application which requires exsl:node-set. Saxon itself
is working fine, but it's so long since I used it with exslt
extensions that I can't remember where I got the code last time --
I looked at http://www.exslt.org but all the downloads seem to be
samples and tests: no actual implementation of any functions. What
am I missing here?
That EXSLT defines an interface ... the processor itself implements
the interface.
T:\ftemp>type peter.xsl
<?xml version="1.0" encoding="US-ASCII"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exslt="http://exslt.org/common"
exclude-result-prefixes="exslt"
version="1.0">
<xsl:template match="/">
<xsl:variable name="x"><a><b/><c/></a></xsl:variable>
<xsl:copy-of select="exslt:node-set($x)/*/*"/>
</xsl:template>
</xsl:stylesheet>
T:\ftemp>java -jar saxon.jar peter.xsl peter.xsl
<?xml version="1.0" encoding="utf-8"?><b/><c/>
T:\ftemp>
I'm only running the Saxon 6.5.5 jar file ... nothing else is needed.
I hope this helps.
. . . . . . . . . . Ken
--
XSLT/XQuery training: after http://XMLPrague.cz 2010-03-15/19
XSLT/XQuery training: San Carlos, California 2010-04-26/30
Principles of XSLT for XQuery Writers: San Francisco,CA 2010-05-03
XSLT/XQuery training: Ottawa, Canada 2010-05-10/14
XSLT/XQuery/UBL/Code List training: Trondheim,Norway 2010-06-02/11
Vote for your XML training: http://www.CraneSoftwrights.com/s/i/
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
G. Ken Holman mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers: http://www.CraneSoftwrights.com/legal
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--