Hello,
I generated via ant build file html output from DocBook under Windows XP. If I use the XLS sheet /html/docbook.xsl everything is correct. If I use the XLS sheet /html/chunk.xsl the result is copied to an incorrect directory. Instead of:
C:\Documents and Settings\myuser\....
the following directory is used:
C:\Documents%20and%20Settings\myuser\
As it works for /html/docbook.xsl but not for /html/chunk.xsl I assume this is a bug.
I use docbook-xsl-1.72.0 and the ant target is copied below.
Best regards, Lars
------------------
<!--
- target: chunks-html
- description: Iterates through a directory and transforms
- .xml files into seperate .html files using the DocBook XSL.
-->
<target name="build-chunks" depends="depends, xinclude"
description="Generates chunk HTML files from DocBook XML">
<xslt style="${html.stylesheet}" extension=".html"
basedir="${src.tmp}" destdir="${doc.dir}">
<classpath refid="xalan.classpath" />
<include name="**/*book.xml" />
<include name="**/*article.xml" />
<param name="html.stylesheet" expression="styles.css" />
<param name="section.autolabel" expression="1" />
<param name="html.cleanup" expression="1" />
<param name="chunk.first.selection" expression="1" />
</xslt>
<!-- Copy the stylesheet to the same directory as the HTML files -->
<copy todir="${doc.dir}">
<fileset dir="lib">
<include name="styles.css" />
</fileset>
</copy>
</target>
Logged In: YES
user_id=582041
Originator: NO
Are you sure that this really is a bug in the DocBook stylesheets? It could be a problem with Ant, for example. Please try to execute the transformation from the command line instead, and see if that works.
Logged In: YES
user_id=1392744
Originator: YES
Hello, on the command line it works. So this bug can be closed. Best regards, Lars