annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
403
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
1 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
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"/>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
3 <xsl:template match="/">
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
4 <html>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
5 <head>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
6 <style>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
7 table, th, td { border: 1px solid #000; border-spacing: 0; border-collapse: collapse; margin: 0 }
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
8 table table { width: 100%; border-width: 0; margin: -2px }
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
9 table table td { border-width:0 1px }
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
10 </style>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
11 <title>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
12 <xsl:value-of select="/army/name"/>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
13 </title>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
14 </head>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
15 <body>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
16 <div id="armyInfo">
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
17 <h1>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
18 <xsl:value-of select="/army/name"/> - <xsl:value-of select="/army/pointsUsed"/>pts
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
19 </h1>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
20 <xsl:for-each select="/army/category">
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
21 <table>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
22 <xsl:for-each select="./unit/statLine[1]">
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
23 <tr>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
24 <xsl:for-each select="./stat">
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
25 <td>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
26 <xsl:value-of select="./@name"/>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
27 </td>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
28 </xsl:for-each>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
29 <td>Notes</td>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
30 <td>Points</td>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
31 </tr>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
32 </xsl:for-each>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
33 <xsl:for-each select="./unit/statLine">
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
34 <tr>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
35 <xsl:for-each select="./stat">
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
36 <td>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
37 <xsl:value-of select="./@value"/>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
38 </td>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
39 </xsl:for-each>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
40 <td>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
41 <xsl:for-each select="../equipmentItem">
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
42 <xsl:value-of select="./@name"/> (<xsl:value-of select="./@count"/>),
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
43 </xsl:for-each>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
44 <xsl:for-each select="../abilityItem">
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
45 <xsl:value-of select="./@name"/> (<xsl:value-of select="./@description"/>),
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
46 </xsl:for-each>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
47 </td>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
48 <td>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
49 <xsl:value-of select="../@points"/>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
50 </td>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
51 </tr>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
52 </xsl:for-each>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
53 </table>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
54 </xsl:for-each>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
55 </div>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
56 </body>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
57 </html>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
58 </xsl:template>
cf8fc32e020a preliminary xsl output
Dan.Kulinski@dank-laptop.Global.Local
parents:
diff changeset
59 </xsl:stylesheet>