On 07/30/2014 10:37 PM, Pierce Tyler wrote:
I think I am getting close to solving this. But when I convert a book to
web help, I hit the following error:
Invoking method
"com.xmlmind.xmleditext.whc.CompileWebHelp.compile"
with arguments
"docb.toWebHelp"
"wh_resources/footer.html", invalid value for parameter "user-footer"
I'm not sure why I'm hitting this because I created document conversion
parameters (I think) exactly as shown in the example you provided
earlier (screenshot attached).
The example I've provided leverages command-line utility xxetool (see
http://www.xmlmind.com/xmleditor/_distrib/doc/xxetool/index.html), not
XMLmind XML Editor, the graphical application.
* xxetool, which is expected to be invoked from a makefile or from an
ant build.xml file, makes good use of your current working directory.
xxetool resolves relative filenames or URLs against your current working
directory.
* XMLmind XML Editor, the graphical application, does not use your
current working directory at all, and thus requires to be passed
absolute filenames or URLs.
I also created a /wh_resources/ directory
at the root level of my book files (see screenshot). That directory
contains all the same files as the example source you shared with me.
Thank you for that!
My guess is I may be missing the "XHTML file containing <div
id="wh-header"> or <div id="wh-footer">" but I am not sure.
Any suggestions would be appreciated.
When you use XMLmind XML Editor (and not command-line tool xxetool), you
must pass *absolute* URLs or filenames for parameters like
"wh-user-footer" which expect a file or directory.
More precisely (see http://www.xmlmind.com/ditac/_whc/doc/index.html):
* wh-user-footer must be an absolute filename or URL of an XHTML file.
* wh-user-header must be an absolute filename or URL of an XHTML file.
* wh-user-css must be an absolute filename or URL of a CSS file.
* wh-user-resources must be the absolute filename (not an URL) of a
*directory*, typically containing image files.
Therefore, if you replace "wh_resources/XXX" in all your "wh-ZZZ"
parameters, by "/LOCATION_OF_MY_DOC_DOURCE/wh_resources/XXX", it should
work fine.
Note that the parameter editor has a "Choose file" button allowing to
select a file or directory. Using it will prevent you from making any
typo. See attached screenshots.
First screenshot shows you how to configure the "Choose file" button to
select absolute filenames (by default, it selects absolute URLs).
Second screenshot shows you all the "wh-ZZZ" parameters after specifying
absolute file or directory paths.
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support