W3C home > Mailing lists > Public > www-xsl-fo@w3.org > July 2007

Table cell problem--solved

From: Ken <tuxgig@yahoo.com>
Date: Thu, 19 Jul 2007 12:26:45 -0700 (PDT)
To: www-xsl-fo@w3.org
Message-ID: <56595.54417.qm@web31014.mail.mud.yahoo.com>
Got it--it was an improperly specified match in the table code. Here's the corrected version:
  
                       <fo:table padding-before=".25in">
                           <fo:table-column column-width="40mm"/>
                           <fo:table-column column-width="20mm"/>
                           <fo:table-column column-width="25mm"/>
                           <fo:table-column column-width="50mm"/>
                           <fo:table-column column-width="70mm"/>
                           <fo:table-header>
                               <fo:table-row space-after=".5in" wrap-option="wrap">
                                   <fo:table-cell>
                                       <fo:block font-weight="bold">Option Name</fo:block>
                                   </fo:table-cell>
                                   <fo:table-cell>
                                       <fo:block font-weight="bold">Word</fo:block>
                                   </fo:table-cell>
                                   <fo:table-cell>
                                       <fo:block font-weight="bold">Bit</fo:block>
                                   </fo:table-cell>
                                   <fo:table-cell>
                                       <fo:block font-weight="bold">Selected Value</fo:block>
                                   </fo:table-cell>
                                   <fo:table-cell>
                                       <fo:block font-weight="bold">Description</fo:block>
                                   </fo:table-cell>
                               </fo:table-row>
                           </fo:table-header>
                           <fo:table-body>
                          <xsl:for-each select="data/row">
                                   <fo:table-row>
                                       <fo:table-cell border="0.5pt solid green" padding="1pt">
                                           <fo:block font-weight="bold" color="blue">
                                               <xsl:apply-templates select="option-name"/>
                                           </fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border="0.5pt solid yellow" padding="1pt">
                                           <fo:block font-weight="bold" color="brown">
                                               <xsl:apply-templates select="word"/>
                                           </fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border="0.5pt solid cyan" padding="1pt">
                                           <fo:block font-weight="bold" color="lightgreen">
                                               <xsl:apply-templates select="bit"/>
                                           </fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border="0.5pt solid magenta" padding="1pt">
                                           <fo:block font-weight="bold" color="pink">
                                               <xsl:apply-templates select="value"/>
                                           </fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border="dashed line green">
                                           <fo:block font-weight="bold" color="lightblue">
                                               <xsl:apply-templates select="description"/>
                                           </fo:block>
                                       </fo:table-cell>
                                   </fo:table-row>
                               </xsl:for-each>
                           </fo:table-body>
                       </fo:table>
  
  I highlighted the offending statement. What I wanted to do was iterate  over the <row>s, which selecting on <data> didn't  accomplish. [Sound of hand slapping forehead a`la "I could have had a  V-8!"]
  
  
       
---------------------------------
Shape Yahoo! in your own image.  Join our Network Research Panel today!
Received on Thursday, 19 July 2007 19:26:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:14 GMT