0
votes

I am trying to add a CSS file to my Docbook HTML output. Most examples say:

xsltproc --stringparam html.stylesheet  corpstyle.css  chunk.xsl  myfile.xml

Ours is a Saxon based toolkit... So accordingly, I changed the build file to:

<java jar="${DocBook}/saxon/saxon.jar" fork="true" dir="${gen.dir}/html-multi">
         <arg line="com.icl.saxon.StyleSheet"/>
         <arg line="${basedir}/book.xml "/>
         <arg line="${DocBook}/html/chunk.xsl "/>
         <arg line="html.stylesheet=mycss.css"/>
      </java>

When running ant, this results in:

Bad param=value on the command line.

How do I set this up?

1

1 Answers

0
votes

That seems more like an Ant problem, try

<java jar="${DocBook}/saxon/saxon.jar" fork="true" dir="${gen.dir}/html-multi">
         <arg line="${basedir}/book.xml "/>
         <arg line="${DocBook}/html/chunk.xsl "/>
         <arg line="html.stylesheet=mycss.css"/>
      </java>

as it seems the main class is taken from the jar argument.