forked from php/doc-ro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdictionary.xsl
53 lines (53 loc) · 1.64 KB
/
dictionary.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- $Author$ -->
<!-- DWXMLSource="dictionary.xml" -->
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY reg "®">
<!ENTITY trade "™">
<!ENTITY mdash "—">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY pound "£">
<!ENTITY yen "¥">
<!ENTITY euro "€">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title><xsl:for-each select="dictionary"><xsl:value-of select="@title" /></xsl:for-each></title>
<style type="text/css">
h1 {
font-size: x-large;
}
dt {
font-weight: bolder;
}
dd {
font-style: italic;
font-size: larger;
padding-bottom: 16px;
}
</style>
</head>
<body>
<xsl:for-each select="dictionary">
<h1><xsl:value-of select="@title" /></h1>
<dl>
<xsl:for-each select="term"><xsl:sort select="english" />
<dt><xsl:value-of select="english" /> — <xsl:value-of select="romanian" /></dt>
<dd><xsl:value-of select="english_example" /><br />
<xsl:value-of select="romanian_example" /></dd>
</xsl:for-each>
</dl>
</xsl:for-each>
<hr width="100%" />
</body>
</html>
</xsl:template>
</xsl:stylesheet>