Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: An easy one for an expert...

From: gizmo <gavin.okane@-----.--->
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent