On 01/15/2019 07:57 PM, Robert Bentall wrote:
I've been using the personal edition of xmlmind (8.2.1) on Windows x64,
downloaded last week.
I tried to use the command-line tool xxetool to convert a docbook file,
but I get the following error:
C:\Program Files (x86)\XMLmind_XML_Editor\bin>xxetool convert
docb.toHTML sample.xml -u ../out.html
*xxetool: *** error: command 'docb.toHTML' not found*
C:\Program Files (x86)\XMLmind_XML_Editor\bin>
The document converts OK through the GUI.
Is this a restriction on the personal edition, or is it a defect?
It's a defect (and a hard to fix one). The error is real, but the error
message is misleading.
To make it simple, xxetool first detects the document type of your
"sample.xml", then it loads the corresponding configuration and finally
it attempts to find a process command called "docb.toHTML" declared in
the loaded configuration.
Your "sample.xml" is almost certainly a DocBook v5.0 or v5.1 document
and NOT a DocBook v4.x document. The DocBook v5.0 or v5.1 configurations
do not declare any process command called "docb.toHTML". However, they
do declare respectively "db5.toHTML" and "db51.toHTML".
--> So if your "sample.xml" is a DocBook v5.0 document, please run:
xxetool convert db5.toHTML sample.xml -u ../out.html
Note that, because process command "db5.toHTML" generates multi-page
HTML, your "out.html" is supposed to be a output *folder* and not a
output file.
--> And if your "sample.xml" is a DocBook v5.1 document, please run:
xxetool convert db51.toHTML sample.xml -u ../out.html
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support