Advertisement
Guest User

Flyounet

a guest
Feb 9th, 2010
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.10 KB | None | 0 0
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3. <xsl:template match="/">
  4. <html>
  5.      <head>
  6.           <title>Chatlog</title>
  7.      </head>
  8.      <body>
  9.           <table border="1">
  10.                <tr>
  11.                     <th>Date</th>
  12.                     <th>From</th>
  13.                     <th>To</th>
  14.                     <th>Body</th>
  15.                </tr>
  16.  
  17. <!--
  18. <xsl:template match="//packet">
  19. -->
  20.                <xsl:for-each select="/packet">
  21.                     <tr>
  22.                          <td><xsl:value-of select="@timestamp"/></td>
  23.  
  24. <!--
  25.               <xsl:for-each select="//message">
  26.                         <td><xsl:value-of select="current()[@from]"/></td>
  27.                         <td><xsl:value-of select="current()[@to]"/></td>
  28.                         <td><xsl:value-of select="current()/body"/></td>
  29.               </xsl:for-each>
  30. -->
  31.  
  32.                     </tr>
  33.                </xsl:for-each>
  34. <!--
  35. </xsl:template>
  36. -->
  37.           </table>
  38.      </body>
  39. </html>
  40. </xsl:template>
  41. </xsl:stylesheet>
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement