Re: [xsl] Installing exslt for Saxon

Subject: Re: [xsl] Installing exslt for Saxon
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 28 Feb 2010 15:53:14 -0500
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 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="";

<xsl:template match="/">
  <xsl:variable name="x"><a><b/><c/></a></xsl:variable>

  <xsl:copy-of select="exslt:node-set($x)/*/*"/>

T:\ftemp>java -jar saxon.jar peter.xsl peter.xsl
<?xml version="1.0" encoding="utf-8"?><b/><c/>

I'm only running the Saxon 6.5.5 jar file ... nothing else is needed.

I hope this helps.

. . . . . . . . . . Ken

XSLT/XQuery training:      after 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:
Crane Softwrights Ltd.
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Male Cancer Awareness Nov'07
Legal business disclaimers:

Current Thread