This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

multilple row/col xsl->fo


 Hope someone could help me!!!

I have a 19 by 20 cells table.  The following code works very well using
.xsl.   How can I convert this to .fo inorder to create the .pdf?


    <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


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]