On Apr 21, 2008, at 17:31, Oliver Hirschi wrote:
Hi
To define the configuration for rendering I use:
-----------------
...
fopFactory.setUserConfig(new File("fop.xconf"));
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, out);
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(new StreamSource
("Test.xsl"));
...
transformer.transform(src, res);
-----------------
Is there the possibiliy to define xsl-parameters in fop.xconf,
which are passed to my Test.xsl?
XSLT parameters are not yet supported via the config-file. Might be
an idea for a minor contribution...
They are supported on the command-line, and for embedded use, one
would obviously do this via the standard JAXP idiom:
transformer.setParameter(paramName, paramValue);
HTH!
Cheers
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]