W3C home > Mailing lists > Public > www-xsl-fo@w3.org > April 2002

Absolute positioning?

From: Esteban Gonzalez <egonzalez@outside.com.ar>
Date: Tue, 16 Apr 2002 11:27:41 -0300
Message-ID: <00c801c1e552$dea6d900$33273dc8@vader>
To: "XSL" <www-xsl-fo@w3.org>
Iīve been trying to use absolute positioning with areas and havenīt been
able to do so...

iīm getting this error when compiling the xsl file...

[INFO]: FOP 0.20.3
[INFO]: building formatting object tree
[INFO]: [1]
[INFO]: [2]
[INFO]: Parsing of document complete, stopping renderer
[ERROR]: org.apache.fop.layout.BlockArea

Thereīs any ideas of what could be wrong in this code?
<snippet>
<fo:block-container absolute-position="fixed" top="240mm" left="100mm">
<fo:block>
<xsl:apply-templates select="pais"/>
</fo:block>
</fo:block-container>

Any help would be really appreciated! =)

The full xsl code is here...
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">

<xsl:template match="vouchers">

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

<fo:layout-master-set>

<fo:simple-page-master page-height="14in" page-width="8.5in">

<fo:region-body/>

<fo:region-before extent="0mm"/>

</fo:simple-page-master>

</fo:layout-master-set>

<fo:page-sequence master-name="simple">

<fo:flow flow-name="xsl-region-body">

<xsl:apply-templates/>

</fo:flow>

</fo:page-sequence>

</fo:root>

</xsl:template>

<xsl:template match="voucher">

<fo:block>

<xsl:apply-templates select="cliente"/>

</fo:block>

</xsl:template>

<xsl:template match="cliente">

<fo:block-container absolute-position="fixed"

top="240mm" left="100mm">

<fo:block>

<xsl:apply-templates select="pais"/>

</fo:block>

</fo:block-container>


</xsl:template>

</xsl:stylesheet>
Received on Tuesday, 16 April 2002 10:29:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT