Unable to run saxon from commandline in OxygenXML 11
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 97
- Joined: Tue Apr 22, 2008 9:31 am
Unable to run saxon from commandline in OxygenXML 11
Hi
We have been using OxygenXML 10.3 in a Windows environment and, for one of our publishing processes, we have been using the following script from the Windows command line:
This worked well until we installed OxygenXML 11. The problem is that Oxygen 11 does not ship with the jar file 'saxon9sa.jar' but instead with the jar file 'saxon9ee.jar'.
We have a floating Professional license as follows:
If we change the script to use OxygenXML 11 and 'saxon9ee.jar' instead of OxygenXML 10 and 'saxon9sa.jar', we get the error message:
Error: License file saxon-license.lic not found.
This is not unexpected as we are not licensed for the enterprise version.
What do you suggest from here?
We have been using OxygenXML 10.3 in a Windows environment and, for one of our publishing processes, we have been using the following script from the Windows command line:
Code: Select all
@echo off
setlocal
REM Saxon from OxygenXML
set oxygenXmlPath=C:\Program Files\Oxygen XML Editor 10
del /q %outputFile% >nul 2>&1
REM Services and documents extract interim
set outputFile="D:\Develop\Documentation\Extract Files\services_and_documents_extract_interim.xml"
set cmd=java -cp "%oxygenXmlPath%\lib/saxon9sa.jar" net.sf.saxon.Transform -s:"D:\Develop\Documentation\Extract Files\ServiceRegistryDetailsXMLExtract.xml" -xsl:"D:\Develop\Tools\Publishing\XSLT\services_and_documents_extract.xsl" -o:%outputFile%
REM echo %cmd%
%cmd%
We have a floating Professional license as follows:
Code: Select all
Registration_Name=
Company=
Category=Professional-Floating
Component=XML-Editor, XSLT-Debugger, Saxon-SA
Version=10
Number_of_Licenses=20
Date=09-30-2009
Maintenance=374
SGN=
Error: License file saxon-license.lic not found.
This is not unexpected as we are not licensed for the enterprise version.
What do you suggest from here?
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Unable to run saxon from commandline in OxygenXML 11
Post by sorin_ristache »
Hello,
Saxon 9 from Oxygen 10 (saxon9sa.jar) could be used from command line only in Basic mode (not Schema Aware mode) because Saxon 9.1 SA allowed that. Oxygen 11 comes with Saxon 9.2 Enterprise Edition which does not allow a Basic mode from command line without an explicit license key from Saxonica (in Oxygen 11 you can use Saxon 9.2 Enterprise because Oxygen 11 comes with an embedded license key). That means if you want to use Saxon 9.2 from command line you should download Saxon 9.2 Home Edition from Saxonica and use that.
Regards,
Sorin
Saxon 9 from Oxygen 10 (saxon9sa.jar) could be used from command line only in Basic mode (not Schema Aware mode) because Saxon 9.1 SA allowed that. Oxygen 11 comes with Saxon 9.2 Enterprise Edition which does not allow a Basic mode from command line without an explicit license key from Saxonica (in Oxygen 11 you can use Saxon 9.2 Enterprise because Oxygen 11 comes with an embedded license key). That means if you want to use Saxon 9.2 from command line you should download Saxon 9.2 Home Edition from Saxonica and use that.
Regards,
Sorin
-
- Posts: 97
- Joined: Tue Apr 22, 2008 9:31 am
Re: Unable to run saxon from commandline in OxygenXML 11
Thanks Sorin
I will look to use Saxon 9.2 Home Edition from Saxonica. We developed and debugged the XSL script using OxygenXML (using the interactive debugging). We run this script once every time we publish our intranet website - which is typically a few times each week.
I will look to use Saxon 9.2 Home Edition from Saxonica. We developed and debugged the XSL script using OxygenXML (using the interactive debugging). We run this script once every time we publish our intranet website - which is typically a few times each week.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service