[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: FO: question
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@xxxxxxxxxxxxxxx> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|