Page 1 of 1

Using Saxon extensions in oXygen?

Posted: Wed Mar 15, 2006 2:49 am
by scotty
I need to pass the following parameter to Saxon:

Code: Select all

-Dencoding.windows-1252=com.nwalsh.saxon.Windows1252
From the command line, I would use:

Code: Select all

java  
-Dencoding.windows-1252=com.nwalsh.saxon.Windows1252 \
com.icl.saxon.StyleSheet \
myhelpfile.xml \
docbook-xsl/htmlhelp/htmlhelp.xsl \
htmlhelp.encoding=windows-1252 \
chunker.output.encoding=windows-1252 \
saxon.character.representation=native
I need to use this to transform DocBook XML to HTMLHelp.
It's not an XSL parameter, it's part of the Java call. How do I do this in oXygen?

Thanks,

--Scotty

Posted: Wed Mar 15, 2006 3:51 am
by george
Hi Scotty,

That is a system property. If you start oXygen from using a batch script, oxygen.bat for instance then you can edit it and add the -Dencoding.windows-1252=com.nwalsh.saxon.Windows1252 option as you do from command line.
If you use an executable to start oXygen then things are a little different. For instance on Windows you need to edit the oxygen7.1.ini file and add the -Dencoding.windows-1252=com.nwalsh.saxon.Windows1252 option in the Virtual Machine Parameters section.

If you still have problems let us know what distribution of oXygen do you use (standalone, Eclipse plugin) and on what platform.

Best Regards,
George

extension still requires changing default encoding

Posted: Wed Mar 15, 2006 10:56 pm
by scotty
Hi George,

this seems to work only if I change the encoding of my source file to iso-8859-1 from UTF-8

Do you know of any solution to transform my UTF-8 XML to the proper windows-1252 HTMLHelp format?

Best regards,

--Scotty

Posted: Thu Mar 16, 2006 11:38 am
by sorin_ristache
Hello,

For example you can use:

Code: Select all

<xsl:output method="xhtml" encoding="cp1252"/>
Regards,
Sorin