<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- 
  Generic XSL transform to list RedTitan EscapeE captured fields in HTML tabular form 
  (c) RedTitan Technology 2008

-->
  <xsl:template match="/">
    <html>
    <head>
    <style type="text/css">
      table {background-color:#c0c0c0;font:10pt/12pt verdana;cellspacing:6;color:white;}
      td {background-color:#003366;padding:5;}
      th {font-weight:bold;background-color:#266188;padding:7;}
    </style>
    </head>
    <body>
    <table>
      <!-- **** Column heading for the page number and each field captured by EscapeE *** -->
      <tr>                   
        <th>Page number</th>
        <xsl:for-each select="*/PAGE[1]/*">
          <th><xsl:value-of select="name()"/></th>
        </xsl:for-each>
      </tr>
   
      <!-- *** List page number and field values for every page *** -->
      <xsl:for-each select="*/PAGE">
        <tr>
          <td><xsl:value-of select="@NUMBER"/></td>
          <xsl:for-each select="*">
            <td><xsl:value-of select="."/></td>
          </xsl:for-each>
        </tr>
       </xsl:for-each>
     </table>
    </body>
  </html>
</xsl:template></xsl:stylesheet> 
