[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XML->HTML tables with blank cells ...
Hello. I'm very new to XSLT and I need to create an HTML table from XML using XSLT. The XML looks like this: <?xml version="1.0" encoding="UTF-8"?> <worksheet> <row number="0"> <col number="0">Name</col> <col number="1">Grade</col> <col number="2">Phone</col> <col number="3">City</col> <col number="4">State</col> </row> <row number="1"> <col number="0">Anna</col> <col number="1">3</col> <col number="2">555-5555</col> <col number="3">Livermore</col> <col number="4">CA</col> </row> <row number="2"> <col number="0">David</col> <col number="1">4</col> <col number="3">Livermore</col> <col number="4">CA</col> </row> <row number="3"> <col number="0">Jane</col> <col number="1">5</col> </row> </worksheet> I want a resulting HTML table that accounts for the fact that every piece of data is in the correct column but not every row has data in all columns. For example, in my example, Anna has all data, but David does not have a phone number, and Jane only has a grade. Thanks for you help. Carmen --------------------------------------------------------------------- Carmen Pancerella, PhD carmen@xxxxxxxxxxxxx Distributed Systems Research & Development Sandia National Laboratories ---------------------------------------------------------------------
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|