Project

Profile

Help

Bug #2249

StylesheetPackager missing in SaxonEE9-6-0-3N-setup.exe?

Added by Geert Bormans over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Build and release
Sprint/Milestone:
Start date:
2014-12-08
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.6
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:

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

History

#1 Updated by Michael Kay over 6 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.

#2 Updated by O'Neil Delpratt over 6 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

#3 Updated by O'Neil Delpratt over 6 years ago

The workaround requires Saxon-EE to create the zip file.

#4 Updated by O'Neil Delpratt over 6 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.

#5 Updated by Geert Bormans over 6 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

#6 Updated by O'Neil Delpratt over 6 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.

#7 Updated by O'Neil Delpratt over 6 years ago

  • Status changed from Resolved to Closed

#8 Updated by O'Neil Delpratt over 5 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

#9 Updated by O'Neil Delpratt over 5 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)

#10 Updated by O'Neil Delpratt over 5 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

Also available in: Atom PDF