diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2009-01-22 19:21:50 +0100 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2009-01-22 19:21:50 +0100 |
commit | 0905be08cf27cf344a09eab72a7c1b6ce25b458e (patch) | |
tree | 34b12cebd3a208479795b0284d77efaf05350b6c /items.xsl | |
parent | 8fe110a1cbd7cebc275eb717092d028e4a5d0106 (diff) | |
parent | 686e55f4921a0dfd3b0eff19a659e0480310abef (diff) | |
download | clientdata-0905be08cf27cf344a09eab72a7c1b6ce25b458e.tar.gz clientdata-0905be08cf27cf344a09eab72a7c1b6ce25b458e.tar.bz2 clientdata-0905be08cf27cf344a09eab72a7c1b6ce25b458e.tar.xz clientdata-0905be08cf27cf344a09eab72a7c1b6ce25b458e.zip |
Merge branch 'master' of git@gitorious.org:tmwdata/mainline
Diffstat (limited to 'items.xsl')
-rw-r--r-- | items.xsl | 104 |
1 files changed, 52 insertions, 52 deletions
@@ -1,53 +1,53 @@ -<?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="3">
- <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>
- <xsl:if test="@weapon_type">
- <td><strong>Skill: </strong><xsl:value-of select="@weapon-type"/></td>
- </xsl:if>
- <td><strong>Weight: </strong><xsl:value-of select="@weight"/></td>
- </tr>
-
- <tr>
- <td colspan="4"><strong>Description: </strong><xsl:value-of select="@description"/></td>
- </tr>
- <tr>
- <td colspan="4"><strong>Effect: </strong><xsl:value-of select="@effect"/></td>
- </tr>
- </table>
- </p>
- </xsl:if>
- </xsl:for-each>
- </body>
- </html>
-</xsl:template>
+<?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="3"> + <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> + <xsl:if test="@weapon_type"> + <td><strong>Skill: </strong><xsl:value-of select="@weapon-type"/></td> + </xsl:if> + <td><strong>Weight: </strong><xsl:value-of select="@weight"/></td> + </tr> + + <tr> + <td colspan="4"><strong>Description: </strong><xsl:value-of select="@description"/></td> + </tr> + <tr> + <td colspan="4"><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 |