| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<xsl:stylesheet version = '1.0' |
| 3 |
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'> |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
<xsl:output method="html" encoding="UTF-8" indent="yes" omit-xml-declaration="yes" |
| 11 |
doctype-public="-//W3C//DTD HTML 4.01//EN" |
| 12 |
doctype-system="http://www.w3.org/TR/html4/strict.dtd" /> |
| 13 |
|
| 14 |
<xsl:template match="alphabets"> |
| 15 |
<html lang="en"> |
| 16 |
<head> |
| 17 |
<title>Dasher Alphabets</title> |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
<link rel="home" title="Home" href="http://www.inference.phy.cam.ac.uk/dasher/"/> |
| 22 |
<link rel="contact" title="Contact" href="http://www.metafaq.com/faq/dasher/"/> |
| 23 |
<style type="text/css"> |
| 24 |
.content {font-family : 'Lucida Grande', Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif;} |
| 25 |
.content h1 {border-bottom : 2px solid #4686c2; margin-bottom : 1em;} |
| 26 |
.content h2 {margin-top : 0;} |
| 27 |
.content hr{ |
| 28 |
color : #4686c2; |
| 29 |
background-color : #4686c2; |
| 30 |
height : 2px; |
| 31 |
border: 0 solid #4686c2; |
| 32 |
margin-top : 1em; |
| 33 |
margin-bottom : 1em; |
| 34 |
} |
| 35 |
</style> |
| 36 |
</head> |
| 37 |
<body> |
| 38 |
|
| 39 |
<div class="content"> |
| 40 |
<h1><a><xsl:attribute name="href">http://www.inference.phy.cam.ac.uk/dasher/</xsl:attribute>Dasher </a> |
| 41 |
<a><xsl:attribute name="href">http://www.inference.phy.cam.ac.uk/dasher/download/alphabets/</xsl:attribute>Alphabets</a></h1> |
| 42 |
<xsl:apply-templates select="//alphabet"/> |
| 43 |
</div> |
| 44 |
|
| 45 |
<div style="text-align:right"><em>This page automagically generated by |
| 46 |
<a><xsl:attribute name="href">http://www.inference.phy.cam.ac.uk/dasher/download/alphabets/alphabet-nest2.xsl</xsl:attribute> |
| 47 |
alphabet-nest2.xsl |
| 48 |
</a></em></div> |
| 49 |
|
| 50 |
</body> |
| 51 |
</html> |
| 52 |
</xsl:template> |
| 53 |
|
| 54 |
<xsl:template match="alphabet"> |
| 55 |
|
| 56 |
<h2><xsl:value-of select="@name"/></h2> |
| 57 |
<ul> |
| 58 |
<li>Training file: |
| 59 |
<a><xsl:attribute name="href">http://www.inference.phy.cam.ac.uk/dasher/download/training/<xsl:value-of select="train"/></xsl:attribute> |
| 60 |
<xsl:value-of select="train"/> |
| 61 |
</a></li> |
| 62 |
<li>Encoding type: <xsl:value-of select="encoding/@type"/></li> |
| 63 |
<li>Default orientation: <xsl:value-of select="orientation/@type"/></li> |
| 64 |
<li>Space character: <xsl:value-of select="space/@d"/></li> |
| 65 |
<li>Paragraph character: <xsl:value-of select="paragraph/@d"/></li> |
| 66 |
</ul> |
| 67 |
|
| 68 |
<table> |
| 69 |
<tr><td> |
| 70 |
<xsl:apply-templates/> |
| 71 |
</td></tr> |
| 72 |
</table> |
| 73 |
|
| 74 |
<hr/> |
| 75 |
</xsl:template> |
| 76 |
|
| 77 |
<xsl:template match="group"> |
| 78 |
<table> |
| 79 |
<tr> |
| 80 |
|
| 81 |
<td><strong><xsl:value-of select="@name"/></strong></td><td bgcolor="#ddeeff"><strong><xsl:value-of select="@label"/></strong> </td> |
| 82 |
<td> |
| 83 |
<xsl:apply-templates/> |
| 84 |
</td> |
| 85 |
|
| 86 |
</tr> |
| 87 |
</table> |
| 88 |
</xsl:template> |
| 89 |
|
| 90 |
<xsl:template match="s"> |
| 91 |
<td> <abbr> |
| 92 |
<xsl:attribute name="title"> |
| 93 |
<xsl:value-of select="@d"/> |
| 94 |
<xsl:value-of select="@note"/> |
| 95 |
bgcolor:<xsl:value-of select="@b"/> |
| 96 |
</xsl:attribute> |
| 97 |
<xsl:value-of select="@t"/> |
| 98 |
</abbr></td> |
| 99 |
</xsl:template> |
| 100 |
|
| 101 |
|
| 102 |
</xsl:stylesheet> |