Fo: container block and FOP compliance

I would like to use fo:block-container in my XSLT sheets and as a result of XSL-FO. For example, to change the orientation of a table:

 <fo:block-container reference-orientation="90" break-before="page" break-after="page"> <fo:table> <!--Table content--> </fo:table> </fo:block-container> 

Then I apply FOP and create a PDF file from XSL-FO.

The Apache FOP compliance page ( http://xmlgraphics.apache.org/fop/compliance.html ) states that FOP is only partially compatible in the case of fo:block-container . Does anyone know which properties are not supported or how this will affect the resulting PDF?

+6
source share
1 answer

I really don't know about fop compliance, but some time ago I used fop extensions to rotate the container:

 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" version="2.0"> <fo:block-container position="absolute" fox:transform="rotate(90)"> ... </fo:block-container> </xsl:stylesheet> 

Find more information on fop extensions in the link below.

https://xmlgraphics.apache.org/fop/trunk/extensions.html

+1
source

Source: https://habr.com/ru/post/958081/


All Articles