The following stylesheet cannot be used to generate WebHelp:

---
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                 xmlns="http://www.w3.org/1999/xhtml";
                 version="2.0">
    <xsl:import href="ditac-xsl:xhtml/xhtml.xsl"/>
</xsl:stylesheet>
---

As documented in 
http://www.xmlmind.com/ditac/_distrib/doc/manual/manual-6.html , 
ditac-xsl:xhtml/xhtml.xsl is used to generate XHTML 1.0 pages.

Instead please specify:

---
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                 xmlns="http://www.w3.org/1999/xhtml";
                 version="2.0">
    <xsl:import href="ditac-xsl:webhelp/webhelp.xsl"/>
</xsl:stylesheet>
---

As documented in 
http://www.xmlmind.com/ditac/_distrib/doc/manual/manual-6.html , 
ditac-xsl:webhelp/webhelp.xsl is used to generate Web Help files, which 
are then compiled using XMLmind Web Help Compiler.



On 08/01/2012 03:55 PM, Lea Hayes wrote:
>
> I have created the following customization stylesheet which is specified
> using the following command line:
>
> call ..\..\ditac-2_2_3\bin\ditac.bat ^
>   -t xsl\customize-html.xsl ^
>   -images img ^
>   -f webhelp ^
>   -param mark-external-links yes ^
>   -param ignore-navigation-links no ^
>   -param use-note-icon yes ^
>   -param note-icon-width 48 ^
>   -param note-icon-height 48 ^
>   -param number "table fig example" ^
>   -param title-after "fig table" ^
>   -param generator-info "" ^
>   out\webhelp\_.html user-guide-book.ditamap
>
>
> <!-- Does nothing special yet -->
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> xmlns="http://www.w3.org/1999/xhtml";
> version="2.0">
>
> <xsl:import href="ditac-xsl:xhtml/xhtml.xsl"/>
>
> </xsl:stylesheet>
>
>
> It seems that the file "out/_wc/toc.js" is not being generated when the
> "-t" command switch is used which results in the generated page not
> loading properly. If I remove "-t xsl\customize-html.xsl" from the
> command line the generated output works fine.
>
> Is this a bug or perhaps user error?
>

Lea Hayes wrote:
> I have noticed that there is also an error at command line:
>
> ditac: ERROR: Cannot compile Web Help: 
> C:\test\user-guide\out\webhelp\whc_toc.xml (The system cannot find the file 
> specified)
>
>
 
--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support

Reply via email to