Bug #2249
closedStylesheetPackager missing in SaxonEE9-6-0-3N-setup.exe?
100%
Description
At this page
http://www.saxonica.com/documentation/html/using-xsl/packaged-xslt.html
I read "From Saxon 9.6 this facility is also available on .NET."
And here is the command for packaging on .NET,
"StylesheetPackager stylesheet.xsl package.zip"
It seems that StylesheetPackager is missing from the installer.
Am I missing something?
Thanks
Updated by Michael Kay almost 10 years ago
- Tracker changed from Support to Bug
- Category set to Build and release
- Status changed from New to In Progress
- Found in version set to 9.6
Reclassified as a bug.
Updated by O'Neil Delpratt almost 10 years ago
- Assignee set to O'Neil Delpratt
- Priority changed from Low to Normal
The StylesheetPackager seems to be missing from the Saxon 9.6 ant build script for .NET. This will be fixed in the next maintenance release. A possible programmable workaround is to do the following in a C# code program:
====================
using Saxon.Api;
class Program{
static void Main(string[] args)
{
Program prog = new Program();
prog.Package(@"C:\work\test\test.xsl", @"C:\work\test\package.zip");
}
public void Package(string xsl, string zip) {
try
{
com.saxonica.ptree.StylesheetPackager packager = new com.saxonica.ptree.StylesheetPackager();
packager.archive(xsl, zip);
}
catch (net.sf.saxon.trans.XPathException e)
{
}
}
}
======================
You can run your packaged zip file similar to the Java version fro mthe commandline as follows:
Transform -xsl:package.zip -s:source.xml -r:com.saxonica.ptree.PackageURIResolver -u:on
Updated by O'Neil Delpratt almost 10 years ago
The workaround requires Saxon-EE to create the zip file.
Updated by O'Neil Delpratt almost 10 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
The build script has now been fixed to include the Package Stylesheet for both Saxon-EE and Saxon-PE. The StylesheePackager executable has been tested in Saxon-EE.
Available in the next maintenance release.
Updated by Geert Bormans almost 10 years ago
- Assignee deleted (
O'Neil Delpratt) - % Done changed from 100 to 0
O'Neil Delpratt wrote:
The build script has now been fixed to include the Package Stylesheet for both Saxon-EE and Saxon-PE. The StylesheePackager executable has been tested in Saxon-EE.
Available in the next maintenance release.
Thanks O'Neil for fixing this so fast.
Thanks as well for the workaround. That one works for me.
For those that like me are not C# developers, I would like to add that all it takes to compile the workaround code,
is the csc.exe found in the installation directory of the dot.net framework
Compiling however requires a reference to some assemblies
like this...
csc test.cs /reference:saxon9ee.dll /reference:saxon9ee-api.dll /reference:IKVM.OpenJDK.Core.dll /reference:IKVM.OpenJDK.XML.API.dll
(note you need to add the paths of course)
that will generate an exe that does the stuff
Anyway, thanks for your excellent help
Geert
Updated by O'Neil Delpratt almost 10 years ago
- % Done changed from 0 to 100
- Fixed in version set to 9.6.0.4
Bug fix applied in the Saxon 9.6.0.4 maintenance release.
Updated by O'Neil Delpratt almost 10 years ago
- Status changed from Resolved to Closed
Updated by O'Neil Delpratt almost 9 years ago
- Sprint/Milestone set to 9.6.0.4
- Applies to branch 9.6 added
- Fix Committed on Branch 9.6 added
- Fixed in Maintenance Release 9.6.0.4 added
Updated by O'Neil Delpratt almost 9 years ago
- Sprint/Milestone changed from 9.6.0.4 to 9.6.0.3
- Fixed in Maintenance Release 9.6.0.3 added
- Fixed in Maintenance Release deleted (
9.6.0.4)
Updated by O'Neil Delpratt almost 9 years ago
- Sprint/Milestone changed from 9.6.0.3 to 9.6.0.4
- Fixed in Maintenance Release 9.6.0.4 added
- Fixed in Maintenance Release deleted (
9.6.0.3)
Please register to edit this issue