Using Saxon extensions in oXygen?

Here should go questions about transforming XML with XSLT and FOP.
scotty
Posts: 3
Joined: Wed Mar 15, 2006 2:42 am
Location: Boulder, CO
Contact:

Using Saxon extensions in oXygen?

Post 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
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
scotty
Posts: 3
Joined: Wed Mar 15, 2006 2:42 am
Location: Boulder, CO
Contact:

extension still requires changing default encoding

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

For example you can use:

Code: Select all

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