[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: xsl:package use question
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 10 Feb 2026 08:58:03 -0000
On 10/02/2026 07:02, Mukul Gandhi mukulg@xxxxxxxxxxxxxxxxx wrote:
When I run, an XSL stylesheet test1.xsl using XML document test1.xml
as an input, I get following results with Saxon,

XTSE3000 B Cannot find package http://package2 (version 1.0.0)
Cannot find package http://package2 (version 1.0.0)

Can anyone, please find an error and let us know, with how I'm using
XSLT and Saxon XSL processor?


Mukul, do you know about (for Saxon 10 EE) -lib:filenames command line
option? See
https://www.saxonica.com/html/documentation10/using-xsl/commandline/index.htm
l

-lib:filenames

A list of filenames containing library packages. The filenames are
separated by ";" on Windows systems, or ":" on Linux and Mac. Each
filename must identify either (a) a top-level module in a source XSLT
package, or (b) a SEF file containing an exported library package. There
is no constraint on the order of the packages.


Thus if you run Saxon 10 EE from the command line then with e.g.


-xsl:test1.xsl -s:test1.xml -lib:test2.xsl

I don't think you should need <xsl:include href="test2.xsl"/>

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member