Mercurial > repos > IBBoard.WarFoundry.API
comparison xsl/default_html.xsl @ 403:cf8fc32e020a xsl-output
preliminary xsl output
author | Dan.Kulinski@dank-laptop.Global.Local |
---|---|
date | Thu, 18 Aug 2011 11:14:14 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
402:3a71f8af5bde | 403:cf8fc32e020a |
---|---|
1 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
2 <xsl:output doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" method="html" indent="yes" omit-xml-declaration="yes"/> | |
3 <xsl:template match="/"> | |
4 <html> | |
5 <head> | |
6 <style> | |
7 table, th, td { border: 1px solid #000; border-spacing: 0; border-collapse: collapse; margin: 0 } | |
8 table table { width: 100%; border-width: 0; margin: -2px } | |
9 table table td { border-width:0 1px } | |
10 </style> | |
11 <title> | |
12 <xsl:value-of select="/army/name"/> | |
13 </title> | |
14 </head> | |
15 <body> | |
16 <div id="armyInfo"> | |
17 <h1> | |
18 <xsl:value-of select="/army/name"/> - <xsl:value-of select="/army/pointsUsed"/>pts | |
19 </h1> | |
20 <xsl:for-each select="/army/category"> | |
21 <table> | |
22 <xsl:for-each select="./unit/statLine[1]"> | |
23 <tr> | |
24 <xsl:for-each select="./stat"> | |
25 <td> | |
26 <xsl:value-of select="./@name"/> | |
27 </td> | |
28 </xsl:for-each> | |
29 <td>Notes</td> | |
30 <td>Points</td> | |
31 </tr> | |
32 </xsl:for-each> | |
33 <xsl:for-each select="./unit/statLine"> | |
34 <tr> | |
35 <xsl:for-each select="./stat"> | |
36 <td> | |
37 <xsl:value-of select="./@value"/> | |
38 </td> | |
39 </xsl:for-each> | |
40 <td> | |
41 <xsl:for-each select="../equipmentItem"> | |
42 <xsl:value-of select="./@name"/> (<xsl:value-of select="./@count"/>), | |
43 </xsl:for-each> | |
44 <xsl:for-each select="../abilityItem"> | |
45 <xsl:value-of select="./@name"/> (<xsl:value-of select="./@description"/>), | |
46 </xsl:for-each> | |
47 </td> | |
48 <td> | |
49 <xsl:value-of select="../@points"/> | |
50 </td> | |
51 </tr> | |
52 </xsl:for-each> | |
53 </table> | |
54 </xsl:for-each> | |
55 </div> | |
56 </body> | |
57 </html> | |
58 </xsl:template> | |
59 </xsl:stylesheet> |