Subject: [xsl] FO: question From: "Hewko, Doug" <Doug.Hewko@xxxxxxxxxxxxxxx> Date: Fri, 7 Sep 2001 15:03:47 -0400 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] ignore case, Sullivan, Dan | Thread | RE: [xsl] FO: question, Corey Spitzer |
Re: [xsl] How do you change markup , Mike Moran | Date | RE: [xsl] ignore case, Sullivan, Dan |
Month |