Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="ISO-8859-1"?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="/">
- <html>
- <head>
- <title>Chatlog</title>
- </head>
- <body>
- <table border="1">
- <tr>
- <th>Date</th>
- <th>From</th>
- <th>To</th>
- <th>Body</th>
- </tr>
- <!--
- <xsl:template match="//packet">
- -->
- <xsl:for-each select="/packet">
- <tr>
- <td><xsl:value-of select="@timestamp"/></td>
- <!--
- <xsl:for-each select="//message">
- <td><xsl:value-of select="current()[@from]"/></td>
- <td><xsl:value-of select="current()[@to]"/></td>
- <td><xsl:value-of select="current()/body"/></td>
- </xsl:for-each>
- -->
- </tr>
- </xsl:for-each>
- <!--
- </xsl:template>
- -->
- </table>
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement