On 08/28/2014 10:06 PM, Pierce Tyler wrote:
Good news! Everything is working great, except for the
"header_footer_files" parameter. I added that parameter to the Document
Conversion Parameters list. But when I generate the webhelp, I hit this
error:
Invoking method
"com.xmlmind.xmleditext.whc.CompileWebHelp.compile"
with arguments
"docb.toWebHelp"
"file:/C:/Users/Pierce/Documents/private-docs/xtcommission/wh_resources/header_footer_files",
invalid value for parameter "user-resources"
To get past it, I removed theĆ "header_footer_files" parameter. But I
would like to add it back so I can include a logo and gradient in the
header, per your example. I tried creating an absolute path to each of
the files inside that directory, also--but hit a similar error.
For now, the value of the wh-user-resources parameter must be the
*filename* of a directory and not an URL. But as this is inconsistent
with the other parameters, we'll change this in the next release
(September).
If you replace:
file:/C:/Users/Pierce/Documents/private-docs/xtcommission/wh_resources/header_footer_files
by:
C:\Users\Pierce\Documents\private-docs\xtcommission\wh_resources\header_footer_files
it will work fine.
More information in the "Parameters" section of
http://www.xmlmind.com/ditac/_whc/doc/index.html#command-line
Speaking of absolute paths: Since I manage multiple different technical
guides, it would be helpful if I could add a variable to the absolute
path value for the header/footer parameters I'm using now. All my books
now have a "wh_resources" directory in the home directory. But since
each home directory has a different absolute path, without a variable I
have to update the parameter paths each time I generate webhelp for a book.
Example absolute path I'm using:
file:/C:/Users/Pierce/Documents/xtupledocs/referenceguide/wh_resources/header_footer.css
Is there something like the following (or similar) I can use?
%/wh_resources/header_footer.css
Yes. See "Process variables" in
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/process_variables.html
Let's suppose the DocBook source of the document you are converting is
found in directory:
file:/C:/Users/Pierce/Documents/xtupledocs/referenceguide/
Example 1: value of XSLT stylesheet parameter wh-user-css
%p/wh_resources/header_footer.css
Example 2: value of XSLT stylesheet parameter wh-user-resources
%P\wh_resources\header_footer_files
Notice %p (lowercase=URL) in example 1 and %P (uppercase=filename) in
example 2.
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support