J
John Estess
The following xml file is converted by the piece of xml below (oil.xsl).
I have the right number of dots for the unordered list items, but it
won't print out the "use's". What am I doing wrong?
XML scrap:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="oil.xsl"?>
<oils>
<oil>
<name>ALCAID-100</name>
<use>Instrument Air Compressor crankcases (except Sullair)</use>
<use>#1 vacuum pump crankcase</use>
</oil>
<oil>
<name>A.T.F.</name>
<use>GT1 & GT2 starting package torque converters</use>
<use>#4 acid pump stroke control boxes</use>
<use>Old R.O. caustic regeneration boxes (diaphragm only)</use>
</oil>
</oils>
XSL stylesheet:
<?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/">
<html>
<body>
<h2>Plant Lube Oil Guide</h2>
<table border="0" width="100%">
<tr bgcolor="#F0F0F0">
<th align="left">Oil</th>
<th align="left">Machinery</th>
</tr>
<xsl:for-each select="oils/oil">
<tr>
<td><xsl:value-of select="name"/></td>
<td><ul>
<xsl:for-each select="use">
<li><xsl:value-of select="use"/></li>
</xsl:for-each>
</ul>
</td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template></xsl:stylesheet>
John Estess
(e-mail address removed)
I have the right number of dots for the unordered list items, but it
won't print out the "use's". What am I doing wrong?
XML scrap:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="oil.xsl"?>
<oils>
<oil>
<name>ALCAID-100</name>
<use>Instrument Air Compressor crankcases (except Sullair)</use>
<use>#1 vacuum pump crankcase</use>
</oil>
<oil>
<name>A.T.F.</name>
<use>GT1 & GT2 starting package torque converters</use>
<use>#4 acid pump stroke control boxes</use>
<use>Old R.O. caustic regeneration boxes (diaphragm only)</use>
</oil>
</oils>
XSL stylesheet:
<?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/">
<html>
<body>
<h2>Plant Lube Oil Guide</h2>
<table border="0" width="100%">
<tr bgcolor="#F0F0F0">
<th align="left">Oil</th>
<th align="left">Machinery</th>
</tr>
<xsl:for-each select="oils/oil">
<tr>
<td><xsl:value-of select="name"/></td>
<td><ul>
<xsl:for-each select="use">
<li><xsl:value-of select="use"/></li>
</xsl:for-each>
</ul>
</td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template></xsl:stylesheet>
John Estess
(e-mail address removed)