[oXygen-user] Success with Scenario, failure in bat file
Tue May 5 09:08:31 CDT 2009
Worked like a charm. Thanks.
Oddly enough, doing what you suggested exposed two syntax errors in the
style sheet that the bat file run did not seem to care about.
From: "Sorin Ristache" <>
Sent: Tuesday, May 05, 2009 12:32 AM
Subject: Re: [oXygen-user] Success with Scenario, failure in bat file
> fop.bat adds Xalan to the classpath which is an XSLT 1.0 transformer.
> You have to edit fop.bat and replace Xalan with Saxon 9. For example you
> can copy saxon9.jar from the Saxon 9 distribution from Saxonica to
> [FOP-install-folder]/lib or you can copy saxon9sa.jar from
> [Oxygen-install-folder]/lib to [FOP-install-folder]/lib. Replace in
> fop.bat the line
> set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.7.0.jar
> with the line:
> set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\saxon9sa.jar
> If you use saxon9sa.jar without a license for Saxon SA (schema aware)
> the transformer of saxon9sa.jar will display a warning and run in basic
> mode (Saxon B, like saxon9.jar) but it runs your XSLT 2.0 transformation
> without problems if the transformation is not schema aware. If your XSLT
> 2.0 transformation is schema aware you need a license for Saxon SA from
> Saxonica for using it from command line.
> Mark Wilson wrote:
>> I get proper output when running the XML and XSLT-FO style sheet as an
>> Oxygen 10.1 Scenario. However, it fails when run as a batch file with the
>> SystemId Unknown; Line #206; Column #78; Could not find function:
>> I am assuming that the Scenario's built-in FOP deals with my XSLT Version
>> style sheet and the bat file calls my local copy of FOP and does not. I
>> unsure as how to proceed. Is there a new FOP that handles XSLT-Version 2?
>> so, what should my bat file look like? Or, is there a way for my bat file
>> call the built-in FOP?
>> My bat file:
>> fop -d -c fopConfiguration.xml -xml work\21Grouped.xml -xsl
>> XSLT\22HeadingPdf.xsl -pdf work\headings.pdf
>> I would send you the Scenario, but I do not know how to print it. The
>> Scenario specifies the built-in FOP.
> oXygen-user mailing list
More information about the oXygen-user