Torsten Erler wrote: > Is there any way to invoke the width and height property of the PageMaster > instance, to set this page properties from within the java code??? In my xsl > template no width and height is set, but the rendered page comes with > 576000x792000 mpixels. Can I manipulate the properties with my data (and if > yes where!).
There are a lot of properties. The easiest way is probably to use XSLT parameters. Declare global parameters in the XSL file: <xsl:stylesheet xmlns:xsl="..." ...> <xsl:param name="page-height"/> <xsl:param name="page-width"/> and use them in the page-master <xsl:template match="/"> ... <fo:simple-page-master master-name="..." page-height={$page-height} page-width={$page-width}> ... Look up details in the XSLT spec: http://www.w3.org/TR/xslt You can set values for the parameters from your Java code by using the setParameter() method of your transformer: transformer=factory.newTransformer(xsl); transformer.setParameter("page-height","29.1cm"); transformer.setParameter("page-width","21.9cm"); Lookup details in the JAXP documentation. J.Pietschmann --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]