tagging release
[dasher.git] / Data / system.rc / alphabet.xsl
blob748378f384001b8722541227405502cfe4b078e8
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version = '1.0'
3 xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
5 <!-- alphabet.xsl Iain Murray 09/2002
6 A quick demonstration of another reason for using XML: ease of transformation -->
8 <xsl:output method="html" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"
9 doctype-public="-//W3C//DTD HTML 4.01//EN"
10 doctype-system="http://www.w3.org/TR/html4/strict.dtd" />
12 <xsl:template match="alphabets">
13 <html lang="en">
14 <head>
15 <title>Dasher Alphabets</title>
16 <!-- Uncomment the following line if your xslt processor doesn't add it.
17 xsltproc from the Gnome project (and available for Windows) does. -->
18 <!-- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -->
19 <link rel="home" title="Home" href="http://www.inference.phy.cam.ac.uk/dasher/"/>
20 <link rel="contact" title="Contact" href="http://www.metafaq.com/faq/dasher/"/>
21 <style type="text/css">
22 .content {font-family : 'Lucida Grande', Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif;}
23 .content h1 {border-bottom : 2px solid #4686c2; margin-bottom : 1em;}
24 .content h2 {margin-top : 0;}
25 .content hr{
26 color : #4686c2;
27 background-color : #4686c2;
28 height : 2px;
29 border: 0 solid #4686c2;
30 margin-top : 1em;
31 margin-bottom : 1em;
33 </style>
34 </head>
35 <body>
37 <div class="content">
38 <h1><a><xsl:attribute name="href">http://www.inference.phy.cam.ac.uk/dasher/</xsl:attribute>Dasher </a>
39 <a><xsl:attribute name="href">http://www.inference.phy.cam.ac.uk/dasher/download/alphabets/</xsl:attribute>Alphabets</a></h1>
40 <xsl:apply-templates select="//alphabet"/>
41 </div>
43 <div style="text-align:right"><em>This page automagically generated by
44 <a><xsl:attribute name="href">http://www.inference.phy.cam.ac.uk/dasher/download/alphabets/alphabet.xsl</xsl:attribute>
45 alphabet.xsl
46 </a></em></div>
48 </body>
49 </html>
50 </xsl:template>
52 <xsl:template match="alphabet">
54 <h2><xsl:value-of select="@name"/></h2>
55 <ul>
56 <li>Training file:
57 <a><xsl:attribute name="href">http://www.inference.phy.cam.ac.uk/dasher/download/training/<xsl:value-of select="train"/></xsl:attribute>
58 <xsl:value-of select="train"/>
59 </a></li>
60 <li>Encoding type: <xsl:value-of select="encoding/@type"/></li>
61 <li>Default orientation: <xsl:value-of select="orientation/@type"/></li>
62 <li>Space character: <xsl:value-of select="space/@d"/></li>
63 <li>Paragraph character: <xsl:value-of select="paragraph/@d"/></li>
64 </ul>
65 <table>
66 <xsl:for-each select="group">
67 <tr>
68 <td><strong><xsl:value-of select="@name"/>:</strong></td><td bgcolor="#ddeeff"><strong><xsl:value-of select="@label"/></strong> </td>
69 <xsl:for-each select="s">
70 <td> <abbr>
71 <xsl:attribute name="title">
72 <xsl:value-of select="@note"/>
73 bgcolor:<xsl:value-of select="@b"/>
74 </xsl:attribute>
75 <xsl:value-of select="@d"/>
76 </abbr></td>
77 </xsl:for-each>
78 </tr>
79 </xsl:for-each>
80 </table>
81 <hr/>
82 </xsl:template>
84 </xsl:stylesheet>