cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Bachta" <>
Subject Cocoon xml:fo question
Date Wed, 14 May 2003 15:08:12 GMT
Hi all,  I don't know if this is the right place for this question,
hopefully someone here can help me, but I am having some trouble
displaying a table of data in a PDF file.  I have no problem displaying
this data in html using cocoon but my transition to the PDF format has
been a little rough to say the least.  Here is the code that I am using.




<?xml version="1.0" encoding="ISO-8859-1"?>

<xsp:page language="java" xmlns:xsp=""





             Date now = new Date();



             <title>Overdue Tasks as of <xsp:expr>now</xsp:expr>







                                 execute rptOverdueTasks




















<?xml version="1.0"?>

<xsl:stylesheet version="1.0"


<xsl:template match="page">

       <fo:root xmlns:fo="">


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

                           <fo:region-body region-name="xsl-region-body"
margin="0.7in" />

region-name="xsl-region-before" extent="0.7in" />

region-name="xsl-region-after" extent="0.7in" />






             <fo:page-sequence master-reference="page">

                    <fo:static-content flow-name="xsl-region-after">

                           <fo:block text-align="center"
font-size="10pt" font-family="Courier" line-height="14pt">





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







<xsl:template match="title">

       <fo:block font-size="16pt" font-family="Helvetica"
space-before.optimum="24pt" text-aling="center">





<xsl:template match="paragraph">

       <fo:block font-size="12pt" font-family="Times"
space-before.optimum="12pt" text-aling="center">






<xsl:template match="tasks">

       <fo:table border="solid 1px black">







<xsl:template match="task">

       <xsl:for-each select="*">


                    <fo:table-cell border="solid 1px red">










I am getting the title and the page number on the PDF and nothing else.
If anyone can help or please point me in the right direction it would be
greatly appreciated.  I am new to this environment and have found it
very useful and cool so far, so please excuse my ignorance if I made a
stupid mistake.


Thanks in Advance, 


Tim Bachta




To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message