On 03/04/2013 11:50 AM, Philippe Nobili wrote:
Dear M. Shafie,

In our DocBook customization layer, we add an optional parameters help
to customize the page footer title; this allows us the use the same
transforms to generate the documentation for several products.

The parameter looks like:
<xsl:param name="product.title" select="'User Guide'"/>

We can easily change it from XXE GUI (*Change Document Conversion
Parameters...*), which achieves the desired effect. But we couldn't find
a way to do it form *convertdoc* command-line; that is, we did not find
any way to pass a complex string argument to the command:

% convertdoc [...] -p product.title MyTile

works OK, but:

% convertdoc [...] -p product.title "My New Ttitle"
% convertdoc [...] -p product.title 'My New Title'

etc etc (we tried a couple of them), always ends up with convertdoc
complaining about unknown option.

Did we miss something ? is there a way to do this ? and if not, would it
be possible to fix this issue ? (most of your documents are generated
nightly by batch jobs).
Many thanks for your help.
Philippe.

PS: BTW The same applies for some standard DocBook XSL parameters like
"generate.toc".

I'm sorry but I cannot reproduce this problem.

On my Linux box:

---
~/src/5xxe/bin/convertdoc -p generate.toc "/article title" docb.toPSFile help.xml -s pdf -s "|pdf" -u help.pdf
---

works fine.

In a Windows command prompt (AKA DOS window):

---
C:\src\5xxe\bin\convertdoc.bat -p generate.toc "/article title" docb.toPSFile help.xml -s pdf -s "|pdf" -u help.pdf
---

works fine too.

Please note that XMLmind's code does not parse or split the command-line. Java passes our code the command-line already split into parts and also possibly unescaped/unquoted. This means that there is nothing we could fix here. If there is a problem, then this problem necessarily comes from the convertdoc script (convertdoc.bat on Windows).

[1] If you have modified our stock convertdoc.bat, then please check your .bat file.

[2] If you invoke convertdoc.bat from another .bat file, then please change the way you do that (cannot help you; I'm not a .bat expert).


--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to