Re: [xsl] Re: [saxon] How to make a simple running example using packages?

Subject: Re: [xsl] Re: [saxon] How to make a simple running example using packages?
From: "John Lumley john@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 20 Oct 2014 10:00:16 -0000
On 19/10/2014 01:37, Dimitre Novatchev dnovatchev@xxxxxxxxx wrote:
C:\xml\XSLT3.0>"C:\Program Files\Java\jre7\bin\java.exe" -Xms1024M
-Xmx1024M  -jar C:\xml\Parsers\Saxon\Ver.9.6\saxon9ee.jar  -t
-repeat:1  t.xml  using-package.xsl;complex-arithmetic.xsl
Dimitre,

This is now resolved. See https://saxonica.plan.io/issues/2190. Basically the steps are:

1. add |package-version=".*"| to any |xsl:use-package| lacking that
   attribute.
2. make the principal stylesheet the *last* in the semicolon-separated
   list of stylesheet/packages, rather than the first as given in
   current documentation. This ensures the principal stylesheet is
   compiled last after all possible packages.

For your example the order of the packages doesn't matter (I've checked it running with either order), but in cases where there may be packages that are unused, placing the principal stylesheet last will help for the moment. Note the next maintenance release will support default package version requests, as well as comforming to the package-version syntax of the specification, though complex dependency orders may not be supported.

Thanks for raising this, even if it's in the 'experimental wing'

John



--
*John Lumley* MA PhD CEng FIEE
john@xxxxxxxxxxxx <mailto:john@xxxxxxxxxxxx>
on behalf of Saxonica Ltd

Current Thread