RE: (dsssl) XSLT - HTML - Table - Columns

Subject: RE: (dsssl) XSLT - HTML - Table - Columns
From: "Bita Akhlaghi" <bita@xxxxxxxxxxx>
Date: Fri, 4 Oct 2002 15:36:47 -0400
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:template match="/">
<html><body>
<table border="1" align="center">
<tr>
<td bgcolor="#008000" width = "120"><p align="center"><font
color="#FFFFFF"><b>John Smith</b></font></p></td>
<td bgcolor="#008000" width = "120"><p align="center"><font
color="#FFFFFF"><b>Kim Smith</b></font></p></td>
</tr>

<tr>
<td  bgcolor="#FFFFCC" width = "120"><p><font
size="3"><b>Science</b></font></p></td>
<td  bgcolor="#FFFFCC"><xsl:value-of select=" .your
search.."/></font></p></td>
<td  bgcolor="#FFFFCC"><xsl:value-of select=".your
search.."/></font></p></td>
</tr>

<tr>
<td  bgcolor="#FFFFCC" width = "120"><p><font
size="3"><b>Social</b></font></p></td>
<td  bgcolor="#FFFFCC"><xsl:value-of select=" .your
search.."/></font></p></td>
<td  bgcolor="#FFFFCC"><xsl:value-of select=".your
search.."/></font></p></td>
</tr>

<tr>
<td  bgcolor="#FFFFCC" width = "120"><p><font
size="3"><b>Politics</b></font></p></td>
<td  bgcolor="#FFFFCC"><xsl:value-of select=" .your
search.."/></font></p></td>
<td  bgcolor="#FFFFCC"><xsl:value-of select=".your
search.."/></font></p></td>
</tr>
</table>
</body></html></xsl:template>
<xsl:template match=" .....">
<tr>
...
</tr>
</xsl:template>
</xsl:stylesheet>










-----Original Message-----
From: owner-dssslist@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-dssslist@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
Raghavendra_Gowdu@xxxxxxxxxxxxxxx
Sent: Friday, October 04, 2002 2:28 PM
To: DSSSList@xxxxxxxxxxxxxxxxxxxxxx
Subject: (dsssl) XSLT - HTML - Table - Columns


XSLTers, I tried couple of options. Not successful. May  be simple!. Any
clue is appreciated.
I want to create a multi header html table from an XML.

Here how the my input xml look like
<College>
     <Pupil>
       <Name val="John Smith"/>
       <Cource nam="Science" val="$100"/>
       <Cource nam="Social" val="$112"/>
       <Cource nam="Politics" val="$21"/>
     </Pupil>
     <Pupil>
       <Name val="Kim Smith"/>
       <Cource nam="Science" val="$200"/>
       <Cource nam="Social" val="$212"/>
       <Cource nam="Politics" val="$31"/>
     </Pupil>
  </College>

My desired output is

<html>
<body>
<table border="1">
  <tr>
    <td>&nbsp;</td>
    <td>John Smith</td>
    <td>Kim Smith</td>
  </tr>
  <tr>
    <td>Science</td>
    <td>$100</td>
    <td>$200</td>
  </tr>
  <tr>
    <td>Social</td>
    <td>$112</td>
    <td>$212</td>
  </tr>
  <tr>
    <td>Politics</td>
    <td>$21</td>
    <td>$31</td>
  </tr>
</table>
</body>
</html>

Any help is appreciated. My last resolution would ask to change the input
XML.
- Advance Thanks
RAGHAV



 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist



 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist

Current Thread