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="..."
Look up details in the XSLT spec:

You can set values for the parameters from your Java code
by using the setParameter() method of your transformer:
Lookup details in the JAXP documentation.


To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to