scenario parms from command line

november
Posts: 7

scenario parms from command line

Fri May 04, 2012 5:11 pm

Hi,

I've set the profile.condition (Docbook 5) parameter for graphics like this:
imageobject condition="print"

(or "web" for help) to set the scale value.

When I try building the PDF from the command line (using Saxon 6.5), I use the following:

-dprofile.condition=print

but the value is ignored. Graphics are all scaled to 100% which is not what I want.

My question is: how do I get Saxon to recognize scenario parameters?
sorin_ristache
Posts: 4144

Re: scenario parms from command line

Mon May 07, 2012 12:30 pm

Hello,

The parameter is passed to the stylesheet in the form paramName=paramValue, that is without -d, for example:

Code: Select all

java -cp saxon.jar com.icl.saxon.StyleSheet source.xml stylesheet.xsl profile.condition=print



Regards,
Sorin

Return to “DocBook”

Who is online

Users browsing this forum: No registered users and 0 guests