Subject: [xsl] HTML table structure From: "Brad Miller" <Brad.Miller@xxxxxxxxxxx> Date: Wed, 3 Jul 2002 09:51:05 -0700 |
I am trying to generate an HTML preview for some users in XMetaL 3. The HTML file is being displayed in IE. The structure of the XML doc is very similar to the table structure but I need to add a rowspan to the end result. Everytime I convert it it comes out as 3 rows instead of a cell on the left spanned across 2 rows on the right. I am still pretty new to XSL so any help on how to deal with tables would be appreciated. I have a feeling I will being using them a lot. Here is the what I am using: -------- XSL code ------------------- <xsl:template match="TASKS/GUIDE/ROW/CELL"> <table border="3"> <tr> <td valign="top" align="left" width="200" bgcolor="blue"> <OL> <xsl:for-each select="LIST/ITEM-NUMBER"> <li><xsl:value-of select = "." /></li> </xsl:for-each> </OL> </td> <td width="400"> <xsl:for-each select="SCREEN"> <li><xsl:value-of select = "." /></li> </xsl:for-each> </td> </tr> <tr> <td width="400"> <xsl:for-each select="DESCRIPTION"> <h2><xsl:value-of select = "TITLE" /></h2> </xsl:for-each> <xsl:for-each select="DESCRIPTION"> <p><xsl:value-of select = "PARA" /></p> </xsl:for-each> </td> </tr> </table> </xsl:template> ---------XML code -------------- <GUIDE> <ROW> <CELL> <LIST> <ITEM-NUMBER>List Item 1</ITEM-NUMBER> <ITEM-NUMBER>List Item 2</ITEM-NUMBER> </LIST> </CELL> </ROW> <ROW> <CELL NAME="screen"> <SCREEN>Screen shot</SCREEN> </CELL> </ROW> <ROW> <CELL name="description"> <DESCRIPTION> <TITLE>Page Title</TITLE> <PARA> Page description goes here. </PARA> </DESCRIPTION> </CELL> </ROW> </GUIDE> Thanks Brad Miller TRIRIGA INC. bmiller@xxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] content management mailing li, Robert S. Koberg | Thread | RE: [xsl] HTML table structure, sara . mitchell |
[xsl] about meucheun method (using , 林 子芯 | Date | Re: [xsl] about meucheun method (us, Joerg Heinicke |
Month |