Revision: | 232 |
Committed: | 2004-09-07T21:44:59-07:00 (20 years, 9 months ago) by Douglas Thrift |
Content type: | text/xml |
File size: | 6725 byte(s) |
Log Message: | Damn IE to hell! |
# | Content |
---|---|
1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <!-- |
3 | Feeping Creaturism |
4 | |
5 | Douglas Thrift |
6 | |
7 | $Id$ |
8 | --> |
9 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
10 | xmlns:xhtml="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xhtml"> |
11 | <xsl:output encoding="UTF-8" omit-xml-declaration="yes" |
12 | doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" |
13 | doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/> |
14 | <xsl:param name="jargon"/> |
15 | <xsl:param name="include"/> |
16 | <xsl:param name="relative">..</xsl:param> |
17 | <xsl:variable name="letter" |
18 | select="/xhtml:html/xhtml:head/xhtml:link[@rel='up']/@title"/> |
19 | <xsl:template match="xhtml:html"> |
20 | <xsl:choose> |
21 | <xsl:when test="boolean($include)"> |
22 | <xsl:apply-templates select="xhtml:body"/> |
23 | </xsl:when> |
24 | <xsl:otherwise> |
25 | <xsl:call-template name="page"/> |
26 | </xsl:otherwise> |
27 | </xsl:choose> |
28 | </xsl:template> |
29 | <xsl:template name="page"> |
30 | <html xmlns="http://www.w3.org/1999/xhtml"> |
31 | <head> |
32 | <title>Douglas Thrift's Computers Website | Jargon: |
33 | <xsl:value-of select="xhtml:head/xhtml:title"/></title> |
34 | <link rel="stylesheet" href="../../stylesheets/regular.css" |
35 | type="text/css"/> |
36 | <link rel="Icon" href="../../favicon.ico" type="image/ico"/> |
37 | <script src="../../nav/functions.js" type="text/javascript" |
38 | ><xsl:comment> IE is evil! </xsl:comment></script> |
39 | </head> |
40 | <body> |
41 | <div> |
42 | <p class="center"><a |
43 | href="http://computers.douglasthrift.net/"><img |
44 | src="../../masthead.png" |
45 | alt="Douglas Thrift's Computers Website" |
46 | title="Douglas Thrift's Computers Website" |
47 | /></a></p> |
48 | <p class="center nav"><a |
49 | href="http://www.douglasthrift.net/" |
50 | onmouseout="deselect(1)" onmouseover="select(1)" |
51 | class="nav">Home</a> | <a |
52 | href="http://www.douglasthrift.net/blog/" |
53 | onmouseout="deselect(2)" onmouseover="select(2)" |
54 | class="nav">Blog</a> | <a |
55 | href="http://computers.douglasthrift.net/" |
56 | class="nav select">Computers</a> | <a |
57 | href="http://movies.douglasthrift.net/" |
58 | onmouseout="deselect(4)" onmouseover="select(4)" |
59 | class="nav">Movies</a> | <a |
60 | href="http://music.douglasthrift.net/" |
61 | onmouseout="deselect(5)" onmouseover="select(5)" |
62 | class="nav">Music</a> | <a |
63 | href="http://tvshows.douglasthrift.net/" |
64 | onmouseout="deselect(6)" onmouseover="select(6)" |
65 | class="nav">TV Shows</a> | <a |
66 | href="http://www.douglasthrift.net/sitemap.xml" |
67 | onmouseout="deselect(7)" onmouseover="select(7)" |
68 | class="nav">Sitemap</a> | <a |
69 | href="http://www.douglasthrift.net/contact.php" |
70 | onmouseout="deselect(8)" onmouseover="select(8)" |
71 | class="nav">Contact</a> | <a |
72 | href="http://www.douglasthrift.net/linking.xml" |
73 | onmouseout="deselect(9)" onmouseover="select(9)" |
74 | class="nav">Linking</a> | <a |
75 | href="http://www.douglasthrift.net/search.cgi" |
76 | onmouseout="deselect(10)" onmouseover="select(10)" |
77 | class="nav">Search</a></p> |
78 | </div> |
79 | <div class="hr"> |
80 | <h1 id="title" class="center">Jargon: <xsl:value-of |
81 | select="xhtml:head/xhtml:title"/></h1> |
82 | <p><strong>Note: </strong>This definition of <a |
83 | href="http://www.catb.org/~esr/jargon/html/{$jargon}" |
84 | ><xsl:value-of select="xhtml:head/xhtml:title"/></a> |
85 | is from the <a |
86 | href="http://catb.org/~esr/jargon/html/go01.html" |
87 | >Glossary</a> section of <a |
88 | href="http://catb.org/~esr/jargon/html/index.html" |
89 | >The Jargon File</a>.</p> |
90 | </div> |
91 | <div class="hr"> |
92 | <xsl:apply-templates select="xhtml:body"/> |
93 | </div> |
94 | <div class="hr"> |
95 | <p class="center">Copyright © 2002-2004, <a |
96 | href="http://www.douglasthrift.net/contact.php" |
97 | >Douglas Thrift</a>. All Rights Reserved.</p> |
98 | <p class="center"><a |
99 | href="http://validator.w3.org/check/referer"><img |
100 | src="../../w3c_images/vxh10.png" |
101 | alt="Valid XHTML 1.0!" title="Valid XHTML 1.0!" |
102 | /></a> <a |
103 | href="http://jigsaw.w3.org/css-validator/check/referer" |
104 | ><img src="../../w3c_images/vcss.png" |
105 | alt="Valid CSS!" title="Valid CSS!"/></a></p> |
106 | </div> |
107 | </body> |
108 | </html> |
109 | </xsl:template> |
110 | <xsl:template match="xhtml:body"> |
111 | <p xmlns="http://www.w3.org/1999/xhtml"><strong><xsl:value-of |
112 | select="../xhtml:head/xhtml:title"/>: </strong> |
113 | <xsl:apply-templates select="xhtml:dt/dt"/></p> |
114 | <xsl:apply-templates select="xhtml:dd/*"/> |
115 | </xsl:template> |
116 | <xsl:template match="xhtml:dt/dt"> |
117 | <xsl:for-each select="xhtml:span"> |
118 | <xsl:value-of select="."/> |
119 | <xsl:if test="position()<count(../xhtml:span)">, </xsl:if> |
120 | </xsl:for-each> |
121 | </xsl:template> |
122 | <xsl:template match="xhtml:p"> |
123 | <p xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates/></p> |
124 | </xsl:template> |
125 | <xsl:template match="xhtml:i"> |
126 | <i xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates/></i> |
127 | </xsl:template> |
128 | <xsl:template match="xhtml:a"> |
129 | <xsl:choose> |
130 | <xsl:when test="not(@href)"><a xmlns="http://www.w3.org/1999/xhtml" |
131 | name="{@id}"/> |
132 | </xsl:when> |
133 | <xsl:when test="$relative!='..' and starts-with(@href,'..')"><a |
134 | xmlns="http://www.w3.org/1999/xhtml" |
135 | href="{$relative}{substring(@href,3)}" |
136 | ><xsl:apply-templates/></a> |
137 | </xsl:when> |
138 | <xsl:when |
139 | test="not(starts-with(@href,'..') or contains(@href,'http://'))" |
140 | ><a xmlns="http://www.w3.org/1999/xhtml" |
141 | href="{$relative}/{$letter}/{@href}"><xsl:apply-templates |
142 | /></a> |
143 | </xsl:when> |
144 | <xsl:otherwise><a xmlns="http://www.w3.org/1999/xhtml" |
145 | href="{@href}"><xsl:apply-templates/></a> |
146 | </xsl:otherwise> |
147 | </xsl:choose> |
148 | </xsl:template> |
149 | <xsl:template match="xhtml:tt"> |
150 | <tt xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates/></tt> |
151 | </xsl:template> |
152 | <xsl:template match="xhtml:em"> |
153 | <em xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates/></em> |
154 | </xsl:template> |
155 | <xsl:template match="xhtml:tr"> |
156 | <tr xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates/></tr> |
157 | </xsl:template> |
158 | <xsl:template match="xhtml:td"> |
159 | <td xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates/></td> |
160 | </xsl:template> |
161 | <xsl:template match="xhtml:img"> |
162 | <img xmlns="http://www.w3.org/1999/xhtml" |
163 | src="http://www.catb.org/~esr/jargon/{substring($jargon,1,1)}/{@src}" |
164 | alt="{@alt}"/> |
165 | </xsl:template> |
166 | <xsl:template match="xhtml:span"> |
167 | <span xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates/></span> |
168 | </xsl:template> |
169 | <xsl:template match="xhtml:table"> |
170 | <table xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates/> |
171 | </table> |
172 | </xsl:template> |
173 | <xsl:template match="xhtml:tbody"> |
174 | <tbody xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates/> |
175 | </tbody> |
176 | </xsl:template> |
177 | </xsl:stylesheet> |
Name | Value |
---|---|
svn:eol-style | native |
svn:keywords | Id |