Chris Clark wrote:
> 
> I have a problem running the convertdoc utility to converta DocBook file
> to html. This is an out-of-the-box installation, no customisations
> (v3.6.0 Perso/Linux). The utility complains that docb.toHTML is not a
> process command. Any help much appreciated. Below is outuput.
> 

The error message is misleading, but the fact is that the convertdoc
utility will not work in Personal Edition. This is documented here:
http://www.xmlmind.com/xmleditor/persoedition.html

Download and install an evaluation key in your Personal Edition (in
order to transform it to an Evaluation Edition) if you want to give the
convertdoc utility a try. More information in
http://www.xmlmind.com/xmleditor/evaluate.html



> 
> [ccl at ccl ~]$ convertdoc -v docb.toHTML testfile.xml

Moreover this command line is incorrect (see
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/convertdoc.html)
and would fail even with Professional Edition.

Instead try:
---
$ convertdoc -v docb.toHTML testfile.xml -u .
---

There is no way to guess the name and parameters of the process commands
used by convertdoc. You really need to read the XXE configuration file
where process commands have been defined. In your case, you need to read
XXE_install_dir/addon/config/docbook/xslMenu.incl. There, try to track
%0, %1, %2, etc, parameters:

---
<command name="docb.toHTML">
 <process>
   <subProcess name="docb.convertStep1" />

   <copyProcessResources resources="xsl/css/html.css" to="html.css" />

   <transform stylesheet="xsl/html/chunk.xsl"
              file="__doc.xml" to="__doc.html"
              label="Convert to multi-page HTML"

documentation="http://docbook.sourceforge.net/release/xsl/current/doc/html/%{parameter.name|html.stylesheet}.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>

     <parameterGroup name="docb.toHTML.transformParameters" />
   </transform>

   <!-- The real HTML file is index.html -->
   <delete files="__doc.*" />

   <upload base="%0/">
     <copyFiles files="*.*" toDir="." />
     <copyFiles files="resources/*" toDir="resources" />
     <copyFiles files="images/*" toDir="images" />
   </upload>
 </process>
</command>
---



> convertdoc: Loading configuration
> "/home/ccl/xml/tools/xxe-perso-3_6_0/addon/config/xhtml/xhtml_strict.xxe"...
> convertdoc: Loading configuration
> "/home/ccl/xml/tools/xxe-perso-3_6_0/addon/config/xhtml/xhtml_loose.xxe"...
> convertdoc: Loading configuration
> "/home/ccl/xml/tools/xxe-perso-3_6_0/addon/config/docbook/docbook.xxe"...
> convertdoc: Loading document "/home/ccl/testfile.xml"...
> convertdoc: Deserializing DTD '-//OASIS//DTD DocBook XML V4.5//EN'.
> convertdoc: Fetching DTD '-//OASIS//DTD DocBook XML V4.5//EN' from
> cache.
> convertdoc: Document "file:/home/ccl/testfile.xml" loaded.
> convertdoc: Stripping superfluous white space from
> "file:/home/ccl/testfile.xml".
> convertdoc: *** error: command 'docb.toHTML' is not a process command
> [ccl at ccl ~]$ convertdoc -l
> Configurations:
> 
>   file:/home/ccl/xml/tools/xxe-perso-3_6_0/addon/config/docbook/docbook.xxe
> 
>   file:/home/ccl/xml/tools/xxe-perso-3_6_0/addon/config/xhtml/xhtml_loose.xxe
> 
>   file:/home/ccl/xml/tools/xxe-perso-3_6_0/addon/config/xhtml/xhtml_strict.xxe
> 
> XML catalogs:
>   file:/home/ccl/xml/tools/xxe-perso-3_6_0/addon/config/catalog.xml
> 
> Spell checker dictionaries:
>   file:/home/ccl/xml/tools/xxe-perso-3_6_0/addon/spell/en.dar
> 
> Class path:
>   file:/home/ccl/xml/tools/xxe/bin/xxe_tool.jar
>   file:/home/ccl/xml/tools/xxe/bin/xxe_app.jar
>   file:/home/ccl/xml/tools/xxe/bin/xxe.jar
>   file:/home/ccl/xml/tools/xxe/bin/xp.jar
>   file:/home/ccl/xml/tools/xxe/bin/resolver.jar
>   file:/home/ccl/xml/tools/xxe/bin/relaxng.jar
>   file:/home/ccl/xml/tools/xxe/bin/xsc.jar
>   file:/home/ccl/xml/tools/xxe/bin/jh.jar
>   file:/home/ccl/xml/tools/xxe/bin/saxon.jar
>   file:/home/ccl/xml/tools/xxe-perso-3_6_0/addon/config/xhtml/xhtml.jar
> 
>   file:/home/ccl/xml/tools/xxe-perso-3_6_0/addon/config/xhtml/xhtml_help.jar
> 
>   
> file:/home/ccl/xml/tools/xxe-perso-3_6_0/addon/config/docbook/docbook-xsl-saxon.jar
> 
>   
> file:/home/ccl/xml/tools/xxe-perso-3_6_0/addon/config/docbook/docbook_help.jar
> 
>   file:/home/ccl/xml/tools/xxe-perso-3_6_0/addon/config/docbook/docbook.jar
> 
>  
> --
> XMLmind XML Editor Support List
> xmleditor-support at xmlmind.com
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support
> 
> 


Reply via email to