I'm sorry but I cannot help you. I have no experience with hhc and with
Windows HTML Help.

However I doubt that:

[1] copying what has been done to generate HTML,
[2] changing the XSLT style sheet to the one which generates HTML Help,
[3] and inserting:
---
<shell command="hhc htmlhelp.hhp" platform="Windows" />
---
just before the <upload> element,
suffice to do what you want.

By the way, do you really want to upload[*] all the files created by the
XSLT style sheet or just what has been compiled by hhc?



---
[*] That is, to copy files to the destination directory. Remember that a
process command is executed in a temporary directory created just for
this task.



Skopik Pavel wrote:
>  
> I created a transformation scenario for HTML Help based upon standard
> HTML transformation and added it docbook 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" />. I
> This  compiles the source files, but then it always ends with error and
> nothing is copied to the "out" directory. I would also like to use xxe
> variables so that hhp and chm files have the same as source xml file.
> something can be tweaked by xsl params.
>  
> 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>

Reply via email to