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

Generating Table Cell values to match Columns

Subject: Generating Table Cell values to match Columns
From: "Glenn Copen" <copeng@xxxxxxxxxxxxxxx>
Date: Thu, 20 Mar 2003 11:24:13 -0500 (EST)
table of values
I tried to post this previously, but it never seems to appear on the list.

I have table data that may have blank entries for specific cells.  If I
have the following:

<table>
<thead>
<colspec colname=?FRED? />
<colspec colname=?SAM? />
<colspec colname=?JANE? />
<colspec colname=?BILL? />
<colspec colname=?MARY? />
<colspec colname=?SALLY? />
</thead>
<tbody>
<row>
<entry colname=?FRED?>
Text 1
</entry>
<entry colname=?JANE?>
Text 3
</entry>
<entry colname=?BILL?>
Text 4
</entry>
<entry colname=?SALLY?>
Text 6
</entry>
</row>
</tbody>
</table>

How do I generate the <TD> element for the matching column in XSLT?  I
need to somehow test the value of "colname" in <entry> against the
"colname" in the <colspec>.

This needs to be a ?generic? solution based on the XML data, since I have
many tables in the file with different number of columns, different
colname values, etc.

Thanks,
Glenn








 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.