This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: FO: question
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] FO: question
- From: Linda <binky_35 at yahoo dot ca>
- Date: Fri, 7 Sep 2001 15:28:18 -0400 (EDT)
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi Doug,
FO requires that you use the fo:table, etc.
For example:
<fo:table>
<fo:table-column column-width="5cm"/>
<fo:table-column column-width="10.8cm"/>
<fo:table-column column-width="4cm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block line-height="16pt">
<fo:external-graphic
src="http://lzammit/images/hoc.gif"/>
</fo:block>
</fo:table-cell>
etc.
Regards,
Linda
--- "Hewko, Doug" <Doug.Hewko@ccra-adrc.gc.ca> wrote:
> I really do not understand Formatting object very
> well. I am creating a PDF
> version of some output. The output works great as
> HTML, so I am just adding
> the fo: objects to my XSLT. The problem I have is
> tables. No matter how hard
> I tried, I can not get tables to appear. Can someone
> please provide some
> guidance?
>
> I am using Cocoon2 and Tomcat.
>
> Here is the top of my stylesheet:
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
>
> Here is my template which will sort the output. Even
> though I define the
> table border as "1", it does not appear. Why?
>
> <xsl:template match="glossary">
> <xsl:for-each select="glossaryitem[count(. |
> key('sort-by-category',
> category)[1]) = 1]">
> <xsl:sort select="category" />
> <fo:block font-size="24pt"
> space-before.optimum="12pt"
> text-align="left">
> <xsl:value-of select="category" />
> </fo:block>
> <table border="1" cellspacing="15">
> <xsl:for-each select="key('sort-by-category',
> category)">
> <xsl:sort select="english_title" />
> <tr><td nowrap="nowrap" valign="top">
> <fo:block font-size="12pt"
> space-before.optimum="5pt"
> text-align="left" font-weight="bold"
> text-decoration="underline">
> <xsl:value-of select="english_title"/></fo:block>
> </td><td width="10"></td><td width="500">
> <fo:block font-size="10pt"
> space-before.optimum="5pt"
> text-align="left"><xsl:value-of
> select="english_description"/></fo:block><br
> />
> <xsl:for-each select="uri">
> <fo:block font-size="12pt"
> space-before.optimum="5pt"
> text-align="left">
> <xsl:value-of select="node()"/>
> <xsl:value-of select="node()"/>
> </fo:block><br />
> </xsl:for-each>
> </td></tr>
> </xsl:for-each>
> </table>
> </xsl:for-each>
> </xsl:template>
>
> XSL-List info and archive:
> http://www.mulberrytech.com/xsl/xsl-list
>
_______________________________________________________
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list