You are correct. I inherited the file and thought I might migrate to FOP1.0 
without much work. Anyway, now I changed my transformation and I'm back to 
present a true FOP problem.

Bill.pdf is created with fop-1.0 as provided by maven. Output.pdf is created by 
fop-trunk. Output.pdf looks quite correct (except for minor layout problems), 
but Acrobat Reader 7.0 can't open Bill.pdf. I can see some differences in the 
file, but I don't know what they mean. Can somebody tell me what might be the 
reason for the difference?

Regards,

Georg Datterl

------ Kontakt ------

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:    www.irs-nbg.de
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                 www.willmycc.de

-----Ursprüngliche Nachricht-----
Von: J.Pietschmann [mailto:j3322...@yahoo.de]
Gesendet: Dienstag, 7. Dezember 2010 22:10
An: fop-users@xmlgraphics.apache.org
Betreff: Re: AW: ValidationException: Document is empty

On 07.12.2010 16:39, Georg Datterl wrote:
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>      <xsl:variable name="A4_HEIGHT" select="'297mm'"/>
>      <xsl:template match="ROOT">
>                  <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
>                          <fo:layout-master-set>
>                                  <fo:simple-page-master
>                                                  master-name="simple"  
> page-height="</xsl:text>


>                  <xsl:value-of select="$A4_HEIGHT"/>
>                  <xsl:text disable-output-escaping="yes">">
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
That's not how XSLT is supposed to work.
If you want to use a variable for page-height, use an attribute value
template:
  <fo:simple-page-master master-name="simple" page-height="{$A4_HEIGHT}">

Google for further details, or buy Michael Kay's book.

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Attachment: bill.pdf
Description: bill.pdf

Attachment: Output.pdf
Description: Output.pdf

Attachment: bill.fo
Description: bill.fo

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to