Well,

 here is my xlst: It is a very simple one

<xsl:stylesheet version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
        xmlns:fo="http://www.w3.org/1999/XSL/Format";>
<xsl:template match="pdf_generator">
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
      <fo:layout-master-set>
                        <fo:simple-page-master master-name="first"
                                                                        
page-height="29.7cm"
                                                                        
page-width="21cm"
                                                                        
margin-top="1cm"
                                                                        
margin-bottom="2cm"
                                                                        
margin-left="2.5cm"
                                                                        
margin-right="2.5cm">
                        <fo:region-body margin-top="3cm"/>
                        <fo:region-before extent="3cm"/>
                        <fo:region-after extent="1.5cm"/>
           </fo:simple-page-master>
     </fo:layout-master-set>
     <fo:page-sequence master-reference="first">
       <fo:flow flow-name="xsl-region-body">
          <xsl:apply-templates/>
        </fo:flow>
     </fo:page-sequence>
    </fo:root>
</xsl:template>

  <xsl:template match="pdf_generator/OFFER">
       <fo:block>OfferNumber</fo:block>
  </xsl:template>
</xsl:stylesheet>


and here is the fo file (generated)
<?xml version="1.0" encoding="UTF-8"?>
<fo:root
xmlns:fo="http://www.w3.org/1999/XSL/Format";><fo:layout-master-set><fo:simpl
e-page-master margin-right="2.5cm" margin-left="2.5cm" margin-bottom="2cm"
margin-top="1cm" page-width="21cm" page-height="29.7cm"
master-name="first"><fo:region-body margin-top="3cm"/><fo:region-before
extent="3cm"/><fo:region-after
extent="1.5cm"/></fo:simple-page-master></fo:layout-master-set><fo:page-sequ
ence master-reference="first"><fo:flow
flow-name="xsl-region-body"><fo:block>OfferNumber</fo:block></fo:flow></fo:p
age-sequence></fo:root>


But when i open the pdf file i get this error message now:
There was an error processing the page. Too few operands.
Unrecognized token was found.
Illegal operation inside a text object.



-----Original Message-----
From: Oleg Tkachenko [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 20, 2003 10:09 AM
To: [EMAIL PROTECTED]
Subject: Re: empty pdf file


Rabih Yassine wrote:

>  I generated the FO file in order to generate a pdf file. But when i open
> the file i get nothing in it.
May be due to zillion reasons. Elaborate please, what are you running, how
and
what are log messages.

>  Also, I need to know how can i seperate pages?
Use break-after="page" property.

--
Oleg Tkachenko
Multiconn Technologies, Israel


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to