You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Mathy V Arumugam <ma...@jpl.nasa.gov> on 2002/03/11 19:11:10 UTC

Multiple rows and cols

 I have a 19 by 20 cells table.  What is the efficient way to do it?

I have this in. xsl but having trouble converting to .fo

    <xsl:for-each select="LIST1">
     <table WIDTH="100%"
         border="6"
         bordercolorlight="#33CCCC"
         bordercolordark="#669999"
         bgcolor="#FFFFCC"
         cellspacing="0"
         cellpadding="1"
         align ="center">

       <xsl:for-each select="ROWS">
          <tr>
            <!-- X=0 is Column Heading, Y=0 is Row Heading -->
             <xsl:for-each select="cell[(@X='0') $or$ (@Y='0')]">
                  <td align ="center" bgcolor="3399cc">
                       <b><xsl:value-of select="."/></b></font>
                  </td>
             </xsl:for-each>
             <!-- non-heading cells -->
             <xsl:for-each select="cell[(@X!='0')$and$(@Y!='0')]">
                  <td align="center">
                       <xsl:value-of select="."/>
                  </td>
             </xsl:for-each>
          </tr>
            </xsl:for-each> <!-- for-each ROWS -->
     </table>
    </xsl:for-each>


thanks
mathy