On 07/06/2015 02:46 PM, Sascha Manns wrote:

i'm using these steps to build the odf automatically:

* xmllint --noent --dropdtd --xinclude Dummy.xml -o Dummy-resolved.xml
* saxon-xslt -o Dummy.fo Dummy-resolved.xml
/opt/XMLmind/xfc-stylesheet/xsl/fo/docbook.xsl
* fo2odt -prescaleImages=true Dummy.fo > ../tmp/de-DE/odt/Dummy.odt

My /opt/XMLmind/xfc-stylesheet/xsl/fo/docbook.xsl contains:

<xsl:template match="figure[processing-instruction('landscapeFigure')]">
         <fo:block-container reference-orientation="90">
             <xsl:apply-imports/>
         </fo:block-container>
</xsl:template>

I'm using in my document:

<figure>
     <?landscapeFigure?>
     <title>Tracelog</title>
     <mediaobject>
         <imageobject>
         <imagedata fileref="./images/Tracelog220gesamt.jpg"/>
             </imageobject>
     </mediaobject>
</figure>

But in the output odt the marked figures aren't landscaped. Maybe this
isn't supported by XFC yet?

Yes, That's right. fo:block-container and reference-orientation are not supported in the general case[*]. See http://www.xmlmind.com/foconverter/conformance.html

A possible workaround would be to generate the wide fo:block or fo:table in a page of its own, having a landscape orientation. Of course, this workaround is quite difficult to implement in the case of the DocBook XSL stylesheets.


---
[*] fo:block-container and reference-orientation are supported only to rotate the content of a table cell. See http://www.xmlmind.com/foconverter/_distrib/doc/user/implementation.html#rotate_cell



--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support

Reply via email to