Jirka Kosek wrote:
> 
> I'm developing XXE customization which is derived from DocBook5
> customization (but it is completely standalone it is not importing
> anything from DocBook customizations provided by XXE). I would like to
> use Options -> Customize Configurations -> Change document conversion
> parameters... menu. However if I want to invoke this menu I'm getting
> the following error message:
> 
> Configuration "XXX" does not contain any document conversion parameter.
> 
> where "XXX" is name of my customization. Is there anything special
> needed to make this command work? I thought that having commands with
> embeded process/transform/parameter elements is sufficient.
> 

No, you must add special attributes to the <transform> child element of 
the <process> configuration element. DocBook 5 example:

---
  <transform stylesheet="xsl/fo/docbook.xsl"
             file="__doc.xml" to="__doc.fo"
             label="Convert to PDF, PostScript"
 
documentation="http://docbook.sourceforge.net/release/xsl/current/doc/fo/%{parameter.name|paper.type}.html">
    <parameter name="use.extensions">1</parameter>
    <!-- Cannot work and generates a lot of error messages. -->
    <parameter name="graphicsize.extension">0</parameter>

    <parameter name="paper.type">A4</parameter>

    <parameter name="generate.toc">%2</parameter>
    <parameter name="toc.section.depth">3</parameter>
    <parameter name="section.autolabel">%3</parameter>

    <parameter name="callout.graphics">1</parameter>

    <parameter name="shade.verbatim">1</parameter>

    <parameter name="ulink.show">0</parameter>

    <parameterGroup name="db5.toPS.transformParameters" />
  </transform>
---

Notice the "label" and "documentation" attributes.

The "label" attribute specifies that the transformation using the 
xsl/fo/docbook.xsl XSLT style sheet may be parameterized using the 
"Options -> Customize Configurations -> Change document conversion 
parameters" dialog box and, at the same time, gives it a title ("Convert 
to PDF, PostScript").

The "documentation" attribute is not required but allows the dialog box 
to access the documentation of the XSLT style sheet (when such 
documentation is available).

We forgot to document these attributes. Sorry for that omission. We'll 
fix this bug in next release.

Also note that in order to be parametrizable, a <transform> element must 
contain an empty <parameterGroup> element as its last child.






Reply via email to