diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-08-10 20:02:30 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-08-10 20:02:30 +0000 |
commit | 30702ab5b1c659f59bb5b6f17d852b61a6a4a94d (patch) | |
tree | d67e23be6686ac78290e716f29637188a73591b8 /items.xsl | |
parent | df8ed018b81604475728675cb5caa5b172d509b6 (diff) | |
download | clientdata-30702ab5b1c659f59bb5b6f17d852b61a6a4a94d.tar.gz clientdata-30702ab5b1c659f59bb5b6f17d852b61a6a4a94d.tar.bz2 clientdata-30702ab5b1c659f59bb5b6f17d852b61a6a4a94d.tar.xz clientdata-30702ab5b1c659f59bb5b6f17d852b61a6a4a94d.zip |
Created an XSLT stylesheet for viewing the items.xml in a web browser.
Diffstat (limited to 'items.xsl')
-rw-r--r-- | items.xsl | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/items.xsl b/items.xsl new file mode 100644 index 00000000..765709fa --- /dev/null +++ b/items.xsl @@ -0,0 +1,50 @@ +<?xml version="1.0"?>
+<!-- Edited by XMLSpy® -->
+<xsl:stylesheet version="1.0"
+xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>
+
+
+<xsl:variable name="icon-dir">graphics/items</xsl:variable>
+
+<xsl:template match="/">
+ <html>
+ <body>
+ <h2>Item Database</h2>
+ <xsl:for-each select="items/item">
+ <xsl:sort select="@type"/>
+ <xsl:if test="@name">
+
+ <p>
+ <table border="1">
+ <tr bgcolor="ddddff">
+ <td>
+ <xsl:if test="@image">
+ <img src="{$icon-dir}/{@image}"/>
+ </xsl:if>
+ </td>
+ <td colspan="2">
+ <xsl:value-of select="@name"/>
+ </td>
+ </tr>
+
+ <tr>
+ <td><strong>ID: </strong><xsl:value-of select="@id"/></td>
+ <td><strong>Type: </strong><xsl:value-of select="@type"/></td>
+ <td><strong>Weight: </strong><xsl:value-of select="@weight"/></td>
+ </tr>
+
+ <tr>
+ <td colspan="3"><strong>Description: </strong><xsl:value-of select="@description"/></td>
+ </tr>
+ <tr>
+ <td colspan="3"><strong>Effect: </strong><xsl:value-of select="@effect"/></td>
+ </tr>
+ </table>
+ </p>
+ </xsl:if>
+ </xsl:for-each>
+ </body>
+ </html>
+</xsl:template>
+</xsl:stylesheet>
\ No newline at end of file |