Hi,
Is there a way via Java to set an attribute at run time?
For example, in my XSLT file:
<fo:layout-master-set>
<fo:simple-page-master master-name="A4" page-height="29.7cm"
page-width="21cm">
...snip...
</fo:simple-page-master>
</fo:layout-master-set>
Can I set the value for page-height (or any attribute) via Java code?
Not sure if
transformer.setOutputProperty( "page-height", "29.7cm"
);
or
transformer.setParameter( "page-height", "29.7cm" );
will do the trick - but then how do I relate the variable in Java back in
XSLT?
Thanks in advance,
Bernmeister.
--
View this message in context:
http://www.nabble.com/How-to-dynamically-replace-attributes-such-as-simple-page-master%3A%3Apage-width--tp22413165p22413165.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]