Hello,
I created a transformation scenario for HTML Help and added it docbook
transform. menu. Everything works fine and all generated files are where
they should be. But I would like to created htmlhelp.chm file in one
step after source files are generated. I tried to add a shell command
<shell command="hhc htmlhelp.hhp" platform="Windows" />. This compiles
the source files, but then it always ends with error nothing is copied
to the "out" directory.
Could anyone point me to a solution? thanks
Pavel Skopik
Below is a part of my xslmenu.incl file.
<command name="docb.toHTML2">
<process>
<mkdir dir="resources" />
<mkdir dir="raw" />
<copyDocument to="__doc.xml">
<!-- Do *not* declare the svg namespace. We want svg:svg to be
a Name, not a QName. -->
<cfg:extract xmlns="" xpath="//imageobject/svg:svg" toDir="raw">
<imagedata fileref="resources/{$url.rootName}.png" />
</cfg:extract>
<resources match="(https|http|ftp)://.*" />
<resources match=".+\.(png|jpg|jpeg|gif)"
copyTo="resources" />
<resources match="(?:.+/)?(.+)\.(\w+)"
copyTo="raw" referenceAs="resources/$1.png" />
<resources match=".+"
copyTo="resources" />
</copyDocument>
<convertImage from="raw" to="resources" format="png" />
<mkdir dir="images/callouts" />
<copyProcessResources resources="xsl/images/draft.png" to="images"
/>
<copyProcessResources
resources="@xsl/images/callouts/png_callouts.list"
to="images/callouts" />
<copyProcessResources resources="xsl/css/html.css" to="html.css"
/>
<transform stylesheet="xsl/htmlhelp/htmlhelp_custom.xsl"
file="__doc.xml" to="__doc.html">
<parameter name="use.extensions">1</parameter>
<!-- Cannot work and generates a lot of error messages. -->
<parameter name="graphicsize.extension">0</parameter>
<parameter name="base.dir">%W%S</parameter>
<parameter name="chunk.first.sections">1</parameter>
<parameter name="chunk.section.depth">1</parameter>
<parameter name="toc.section.depth">3</parameter>
<parameter name="section.autolabel">1</parameter>
<parameter name="callout.graphics">1</parameter>
<parameter name="html.stylesheet">html.css</parameter>
<parameter name="use.embed.for.svg">0</parameter>
<parameterGroup name="docb.toHTML2.transformParameters" />
</transform>
<!-- The real HTML file is index.html -->
<delete files="__doc.*" />
<shell command="hhc htmlhelp.hhp" platform="Windows" />
<upload base="%0/">
<copyFiles files="*.*" toDir="." />
<copyFiles files="resources/*" toDir="resources" />
<copyFiles files="images/*" toDir="images" />
</upload>
</process>
</command>
This is my customized HTML Help stylesheet:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
xmlns:exsl="http://exslt.org/common"
xmlns:set="http://exslt.org/sets"
version="1.0"
exclude-result-prefixes="doc exsl set"
<xsl:import href="htmlhelp.xsl"/>
<xsl:param name="saxon.character.representation"
select="'native'"></xsl:param>
<xsl:param name="chunker.output.encoding"
select="'windows-1250'"></xsl:param>
<xsl:param name="htmlhelp.encoding"
select="'windows-1250'"></xsl:param>
<xsl:param name="manifest.in.base.dir" select="1"></xsl:param>
<xsl:param name="use.extensions" select="1"/>
<xsl:param name="make.valid.html" select="1"></xsl:param>
<xsl:param name="chunker.output.doctype-public" select="'-//W3C//DTD
HTML 4.01//EN'"/>
<xsl:param name="chunker.output.doctype-system"
select="'http://www.w3.org/TR/html4/strict.dtd'"/>
<xsl:param name="htmlhelp.hhc.binary" select="1"></xsl:param>
</xsl:stylesheet>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20060406/b4016d1d/attachment.htm