[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

HTML table structure

Subject: HTML table structure
From: "Brad Miller" <Brad.Miller@xxxxxxxxxxx>
Date: Wed, 3 Jul 2002 09:51:05 -0700
html table structure
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.