The example of XSL formatting for XML Traffic Report
<?xml version="1.0"?> <xsl:template xmlns:xsl="uri:xsl"> <HTML> <BODY> <H3>Your company name - Daily traffic report</H3> <table cellspacing="0" cellpadding="5" border="1"> <tr> <td STYLE="font-family:Arial; font-size:12"> Id </td> <td STYLE="font-family:Arial; font-size:12"> Name </td> <td STYLE="font-family:Arial; font-size:12"> Sent </td> <td STYLE="font-family:Arial; font-size:12"> Recv </td> </tr> <xsl:for-each select="TrafficReport/Filter"> <tr> <td STYLE="font-family:Arial; font-size:12"> <xsl:value-of select="@Id"/> </td> <td STYLE="font-family:Arial; font-size:12"> <xsl:value-of select="Name"/> </td> <td STYLE="font-family:Arial; font-size:12"> <xsl:value-of select="Sent"/> </td> <td STYLE="font-family:Arial; font-size:12"> <xsl:value-of select="Recv"/> </td> </tr> </xsl:for-each> </table> <p> <br> <i>Last Modified: <xsl:value-of select="TrafficReport/LastModified"/> </i> </br></p> </BODY> </HTML> </xsl:template> |