Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: An easy one for an expert... [Thread Next] Re: An easy one for an expert...To: NULL Date: 5/5/2009 6:54:00 AM Hi Martin,
Many thanks for your solution.
I didn't intend to copy those slashes. I think they must have came
from the VS2008 IDE quick watch. I had removed them whilst playing
around trying to get to the solution.
Here is the fixed xsl as per your suggestion:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:pf1="http://tempuri.org/MyTypedDataSet.xsd">
<xsl:template match="/">
<html>
<body>
<h2>Times tables</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th align="left">Number</th>
<th align="left">Multiplier</th>
<th align="left">Result</th>
</tr>
<xsl:for-each select="pf1:MyTypedDataSet/pf1:MultiplicationTable">
<tr>
<td><xsl:value-of select="pf1:Number1"/></td>
<td><xsl:value-of select="pf1:Number2"/></td>
<td><xsl:value-of select="pf1:Result"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
...and it works a treat!
Many thanks....
Gavin
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
