xsl-list
[Top] [All Lists]

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

2014-10-20 09:10:50
Thank you John,

Now the example works!

Cheers,
Dimitre

On Mon, Oct 20, 2014 at 2:59 AM, John Lumley <john(_at_)saxonica(_dot_)com> 
wrote:
On 19/10/2014 01:37, Dimitre Novatchev dnovatchev(_at_)gmail(_dot_)com 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(_at_)saxonica(_dot_)com <mailto:john(_at_)saxonica(_dot_)com>
on behalf of Saxonica Ltd

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help(_at_)lists(_dot_)sourceforge(_dot_)net
https://lists.sourceforge.net/lists/listinfo/saxon-help
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>