This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: [docbook-apps] Generate HTML 3.2 for displaying in Java application
- From: <Mauritz dot Jeanson at sorman dot com>
- To: <thomas dot singer at regnis dot de>, <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 15 Sep 2003 14:05:52 +0200
- Subject: RE: [docbook-apps] Generate HTML 3.2 for displaying in Java application
> -----Original Message-----
> From: Thomas Singer [mailto:thomas.singer@regnis.de]
> Sent: den 15 september 2003 13:24
> To: DocBook-Apps
> Subject: Re: [docbook-apps] Generate HTML 3.2 for displaying in Java
> application
>
>
> Hi Mauritz,
>
> > If you want JavaHelp output, use javahelp.xsl. The
> generated HTML is
> > not restricted to HTML 3.2 elements only, but it looks
> decent in the
> > JavaHelp viewer.
>
> We do not use JavaHelp, but our own JEditorPane derived
> HTML-3.2 viewer.
>
> I've tried the javahelp.xsl using this ANT target:
>
> <target name="javahelp">
> <mkdir dir="${dist}/javahelp"/>
>
> <java classname="com.icl.saxon.StyleSheet" fork="yes">
> <arg value="-o"/>
> <arg
> value="${dist}/javahelp/${document.name}.html"/>
> <arg value="${src}/${document.name}.xml"/>
> <arg value="${stylesheet}/javahelp.xsl"/>
>
> <classpath>
> <path refid="classpath.saxon"/>
> </classpath>
> </java>
>
> <copy todir="${dist}/javahelp">
> <fileset dir="${stylesheet}" includes="*.css"/>
> <fileset dir="${src}" includes="**/*.png"/>
> <fileset dir="${stylesheet}/xsl"
> includes="images/*.png"/>
> </copy>
> </target>
>
> but it does not use the specified output directory (the html
> stylesheet
> does). Instead it creates all files in the current directory.
The javahelp.xsl stylesheet generates HTML chunks, but in the
buildfile a single HTML output file is specified.
I suggest you use the regular docbook.xsl stylesheet if you do not want chunks.
If you want chunks, use chunk.xsl. You can set an output directory with the base.dir parameter.
/M
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.