You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Varadharajan Sethuraman <va...@yahoo.com> on 2004/04/26 10:49:54 UTC

sequential order ...

Hi All,
 
I have one xml file mention below ...
I want to generate the PDF in the same order .... (i mean first paragraph text, table and paragraph....)
 
  <paragraph>  This text is displayed with Heading #1  </paragraph>

  <table>
   <table-row >
    <table-cell>CELL 1</table-cell>
   </table-row>
  </table>

  <paragraph>This text is displayed with Heading #2  </paragraph>

 
Regards
Varadharajan S


		
---------------------------------
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25�

Re: sequential order ...

Posted by Chris Bowditch <bo...@hotmail.com>.
Varadharajan Sethuraman wrote:

> Hi All,
>  
> I have one xml file mention below ...
> *I want to generate the PDF in the same order .... (i mean first 
> paragraph text, table and paragraph....)*

I'm sorry I dont think I understand your question. To process your xml into 
PDF using FOP you need to write an XSL stylesheet. There are plently of 
resources to help you with this task on the Net. See FOP's website for starters:

http://xml.apache.org/fop/resources.html#documents-xslt


To get you started, paragraphs can be processed by the following XSLT:

<xsl:template match="paragraph">
<fo:block>
<xsl:apply-templates/>
</fo:block>
</xsl:template>

>   <paragraph>  This text is displayed with Heading #1  </paragraph>
>   <table>
>    <table-row >
>     <table-cell>CELL 1</table-cell>
>    </table-row>
>   </table>
>   <paragraph>This text is displayed with Heading #2  </paragraph>

Chris



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org