Componentes.Terceros.RemObj.../official/5.0.30.691/Data Abstract for Delphi/Samples/XSLT/CustomersToHTML.xsl

35 lines
1.3 KiB
XML

<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/> <xsl:template match="/">
<html>
<head/>
<body>
<xsl:for-each select="XMLData/Datasets/Customers/Row">
<p> <strong>
<table width="651" border="1" style="; width: 651px; height: 27px">
<tbody>
<tr>
<td width="10%"> <img align="baseline" src="DALogo.png" border="0" hspace="0"/>
</td>
<td width="90%"> <p>
<strong>Customer: </strong> <xsl:value-of select="@CustomerID"/>,&#32;
<xsl:value-of select="@CompanyName"/>,&#32;
<xsl:value-of select="@ContactName"/>,&#32;
<xsl:value-of select="@ContactTitle"/> </p>
<p>
<strong>Address:</strong> <xsl:value-of select="@Address"/>,&#32;
<strong> City:</strong> <xsl:value-of select="@City"/>,&#32;
<xsl:value-of select="@Region"/>,&#32;
<xsl:value-of select="@Country"/>,&#32;
<xsl:value-of select="@PostalCode"/> </p>
<p>
<strong>Phone:</strong> <xsl:value-of select="@Phone"/>
<strong>Fax:</strong> <xsl:value-of select="@Fax"/>
</p></td>
</tr>
</tbody>
</table>
</strong> </p> </xsl:for-each>
</body>
</html>
</xsl:template> </xsl:stylesheet>