Hi all,
I'm having a problem with an XSL Stylesheet file that I've written. Basically, what the XSL stylesheet does is style the
usaOrig XML file so that it looks all nice and fancy.:D
Here's the XSL Stylesheet code:
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<head>
<title>State Information</title>
</head>
<body>
<table width="100%" border="1">
<tr style="background-color:red;color:white">
<th>State</th>
<th>Capital</th>
<th>Population</th>
<th>Area</th>
<th>County</th>
<th>County Seat</th>
<th>County Population</th>
</tr>
<xsl:for-each select="usa/state">
<tr>
<td>
<xsl:value-of select="stName" />
</td>
<td>
<xsl:value-of select="stCapital" />
</td>
<td>
<xsl:value-of select="stPopulation" />
</td>
<td>
<xsl:value-of select="stArea" />
</td>
<xsl:for-each select="stCounties/county"></xsl:for-each>
<td>
<xsl:value-of select="coName" />
</td>
<td>
<xsl:value-of select="coSeat" />
</td>
<td>
<xsl:value-of select="coPopulation" />
</td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
I looked at the XML file after I applied the necessary changes and saw that the data stopped in the middle of the table Now, I think the problem lies in the XSL file but I'm not sure. Can anyone help?
Thanks in advance,
Ben Horne
Madison Area Technical College student
-------------------------
http://community.webshots.com/user/valerian114
Go there. I have a lot of awesome photos that I rendered myself