apariRhimmicy
New Member
We have an application that inserts legalese at the end of FOP-generated PDF documents. Depending on which client we're running the app for, the disclaimer can be an extended block of text that takes up the entire legalese page, or simply a short paragraph. In one case our client doesn't have any legalese at all (and so our legalese page is configured to not show up at all in that case)Currently the legalese text is inserted into the source XML document, and, if present, the XSL is configured to output the text to the last page.Obviously with such vastly different text values to insert, formatting is a bit of a problem. I'm wanting to know if there is an easy way to configure the format of different text values without having to either hard-code the legalese into the XSL (or multiple XSL documents with one per client)? Perhaps somehow disable output escaping and have the data inserted from the XSL contain all the necessary xsl-fo tag information to self format?Current code block for where we insert the legalese, simplified greatly. The linefeed-treatment is so we're able to at least get some basic formatting:\[code\] <foage-sequence master-reference="A-portrait" id="Legalese-Page"> <fo:flow flow-name="xsl-region-body"> <fo:block-container absolute-position='fixed'> <fo:block-container absolute-position='fixed'> <fo:block margin-top='4cm' margin-left='2cm' margin-right='2cm' font-size='10pt' linefeed-treatment="preserve"> <xsl:value-of select="catalog/legalese" /> </fo:block> </fo:block-container> </fo:block-container> </fo:flow> </foage-sequence>\[/code\]