XSLT

 <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:fo="http://www.w3.org/1999/XSL/Format" 
xmlns:exsl="urn:schemas-microsoft-com:xslt" 
extension-element-prefixes="exsl">
 <xsl:output omit-xml-declaration="yes" indent="yes" method="html"/>
 <xsl:template match="//root">
  <html>
   <head>
    <title>TMCS Queue History</title>
    <style type="text/css">
   body {background-color: #d6dff7; font-family:Verdana;font-size:8pt}
   table {border: 1pt solid light-gray;font-size:8pt}
   tr.row { background-color: transparent } 
   tr.row:hover { background-color: #E2E2E2; } 
   td {border: 1pt solid light-gray;padding:5px}
   thead th {background-color:black;color:white}
   tfoot th {background-color:light-gray}
   .processing {background-color:white}
   div {background-color: #c6cfe7;padding:10px;margin-bottom:10px; border:outset}
   .normal {background-color:white}
   .news {background-color:green;color:white}
   .test {background-color:red;color:white}
  </style>
   </head>
   <body>
    <div>
     <p>
      <h1>
       <img src="./Images/Icons/T81920.32x32.Edit.gif" alt=""/> TMCS Outgoing E-Mail Queue History</h1>
     </p>
    </div>
    <table>
     <thead>
      <tr>
       <th>distribution title</th>
       <th>email subject</th>
       <th>distribution</th>
       <th>total in distribution</th>
       <th>first email sent</th>
       <th>last email sent</th>
       <th>processing time</th>
       <th>emails per second</th>
      </tr>
     </thead>
     <tfoot>
      <tr>
       <th/>
      </tr>
     </tfoot>
     <tbody>
      <xsl:apply-templates select="//mailing">
       <xsl:sort select="./distributionlists/earliest" order="descending"/>
      </xsl:apply-templates>
     </tbody>
    </table>
   </body>
  </html>
 </xsl:template>
 <!-- 

-->
 <xsl:template match="mailing">
  <tr class="row">
   <td>
    <xsl:value-of select="./distributiontitle"/>
   </td>
   <td>
    <xsl:value-of select="./emailsubject"/>
   </td>
   <td>
    <xsl:value-of select="./distributionlists/distribution"/>
   </td>
   <td>
    <xsl:value-of select="./distributionlists/totalindistribution"/>
   </td>
   <td>
    <xsl:value-of select="substring-before(./distributionlists/earliest,'T')"/><br/>
    <xsl:value-of select="substring-after(./distributionlists/earliest,'T')"/> 
   </td>
   <td>
    <xsl:value-of select="substring-before(./distributionlists/latest,'T')"/><br/>
    <xsl:value-of select="substring-after(./distributionlists/latest,'T')"/> 
   </td>
   <td>
    <xsl:value-of select="./distributionlists/processingtime"/>
   </td>
   <td>
    <xsl:value-of select="./distributionlists/emailspersecond"/>
   </td>
  </tr>
 </xsl:template>
 <!--
-->
</xsl:stylesheet>

My Tridion Newsletters

SDL Tridion Nominate your MVP Candidate

Sign up and get a newsletter when new Tridion stuff is added to the site

Nominate

SDL Tridion Nominate your MVP Candidate

If you find the content of this page useful, please nominate me for the SDL Tridion MVP award.


Created: Thursday 27th May 2010 11:28 PM
Last Modified: Wednesday 30th June 2010 8:23 PM LinkedIn link: View Chris Mills' profile on LinkedIn
Valid XHTML 1.0! Valid CSS! Level A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0