/[suikacvs]/www/2005/htp/htp-html-en.xsl
Suika

Contents of /www/2005/htp/htp-html-en.xsl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download) (as text)
Wed Jun 15 03:59:33 2005 UTC (19 years, 5 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
File MIME type: application/xml
(2005-02-25 version) Status: OBSOLETE

1 wakaba 1.1 <?xml version="1.0" encoding="iso-2022-jp"?>
2     <ss:stylesheet version="1.0"
3     xmlns:ss="http://www.w3.org/1999/XSL/Transform"
4     xmlns:p="http://suika.fam.cx/~wakaba/archive/2005/2/htp#"
5     xmlns:dc="http://purl.org/dc/elements/1.1/"
6     xmlns:t="http://suika.fam.cx/~wakaba/archive/2005/2/m17n#"
7     xmlns:h="http://www.w3.org/1999/xhtml"
8     xmlns="http://www.w3.org/1999/xhtml">
9     <ss:variable name="documentLanguage" select="'en'"/>
10     <ss:variable name="documentTitle" select="'Known HTML Problems'"/>
11     <ss:variable name="tocSectionTitle" select="'Table of Contents'"/>
12     <ss:template match="p:doc">
13     <html lang="{$documentLanguage}" xml:lang="{$documentLanguage}">
14     <head>
15     <title><ss:value-of select="$documentTitle"/></title>
16     <link rel="stylesheet" href="http://suika.fam.cx/www/style/html/xhtml"
17     media="all"/>
18     <link rel="copyright" href="#LICENSE"/>
19     </head>
20     <body>
21     <h1><ss:value-of select="$documentTitle"/></h1>
22    
23     <dl lang="en" xml:lang="en">
24     <dt>This Version</dt>
25     <dd>&lt;<a href="http://suika.fam.cx/www/2005/htp/htp">http://suika.fam.cx/www/2005/htp/htp</a>&gt;
26     [<a href="http://suika.fam.cx/www/2005/htp/htp.xml"
27     type="text/xml">XML</a> /
28     <a href="http://suika.fam.cx/www/2005/htp/htp.ja.html"
29     hreflang="ja" type="text/html">English, HTML</a> /
30     <a href="http://suika.fam.cx/www/2005/htp/htp.ja.html"
31     hreflang="ja" type="text/html">
32     <span lang="ja" xml:lang="ja">$BF|K\8l(B</span>, HTML</a>]</dd>
33     <dt>Last Modified</dt>
34     <dd><ss:value-of select="/child::p:doc/@lastModified.RCS"/></dd>
35     </dl>
36    
37     <ss:call-template name="abstractSection"/>
38    
39     <div class="section" id="STATUS" lang="en" xml:lang="en">
40     <h2>Status of This Document</h2>
41     <p>Work in progress.</p>
42     </div>
43    
44     <div class="section" id="TOC">
45     <h2><ss:value-of select="$tocSectionTitle"/></h2>
46     <ul><ss:apply-templates mode="toc"/></ul>
47     </div>
48    
49     <ss:apply-templates/>
50    
51     <ss:call-template name="aboutSection"/>
52     </body>
53     </html>
54     </ss:template>
55    
56     <ss:template name="abstractSection">
57     <div class="section" id="ABSTRACT">
58     <h2>Abstract</h2>
59    
60     <p>This document summarizes problems on HTML specifications
61     and gives pointers to discussions on them.</p>
62     </div>
63     </ss:template>
64    
65     <ss:template name="aboutSection">
66     <div class="section">
67     <h2>About</h2>
68    
69     <p>Comments are welcomed; please write on the wiki:
70     <cite><a href="http://suika.fam.cx/~wakaba/-temp/wiki/wiki?Known%20HTML%20Problems">SuikaWiki : Known HTML Problems</a></cite>
71     (in Japanese or English).</p>
72    
73     <ss:call-template name="licenseSection"/>
74     </div>
75     </ss:template>
76    
77     <ss:template name="licenseSection">
78     <div class="section" id="LICENSE" xml:lang="en" lang="en">
79     <h3>License</h3>
80    
81     <p>Copyright &#xA9; 2005.</p>
82    
83     <p>Permission is granted to copy, distribute and / or modify
84     this document under the terms of the
85     <a href="http://www.gnu.org/copyleft/fdl.html">GNU Free
86     Documentation License, Version 1.2</a> or any later version
87     published by the <a href="http://www.fsf.org/">Free Software
88     Foundation</a>; with no Invariant Sections, no Front$B!>(BCover
89     Texts, and no Back$B!>(BCover Texts. A copy of the license is
90     available at <code class="uri">&lt;<a href="http://www.gnu.org/copyleft/fdl.html">http://www.gnu.org/copyleft/fdl.html</a>&gt;</code>.</p>
91     </div>
92     </ss:template>
93    
94     <ss:template match="p:entry" mode="toc">
95     <li><a href="#{@xml:id}"><ss:apply-templates select="child::dc:title"/></a></li>
96     </ss:template>
97    
98     <ss:variable name="sSemantics" select="'Semantics'"/>
99     <ss:variable name="sSyntax" select="'Syntax'"/>
100     <ss:variable name="sEdit" select="'Editorial'"/>
101     <ss:variable name="lSpec" select="'Specifications'"/>
102     <ss:variable name="lArticle" select="'Articles'"/>
103     <ss:variable name="lRelated" select="'Related Issues'"/>
104    
105     <ss:template match="p:entry">
106     <div class="section {@s}" id="{@xml:id}">
107     <h2><ss:apply-templates select="child::dc:title"/>
108     [<ss:choose>
109     <ss:when test="@s = 'semantics'"><ss:value-of select="$sSemantics"/></ss:when>
110     <ss:when test="@s = 'syntax'"><ss:value-of select="$sSyntax"/></ss:when>
111     <ss:when test="@s = 'edit'"><ss:value-of select="$sEdit"/></ss:when>
112     <ss:otherwise><ss:value-of select="@s"/></ss:otherwise>
113     </ss:choose>]</h2>
114     <ss:apply-templates select="child::p:problem |
115     child::p:situation |
116     child::p:current"/>
117     <ss:if test="child::p:H2 |
118     child::p:H3 |
119     child::p:H4 |
120     child::p:M12N |
121     child::p:UG |
122     child::p:XH2">
123     <div class="section">
124     <h3><ss:value-of select="$lSpec"/></h3>
125     <ul><ss:apply-templates select="child::p:H2 |
126     child::p:H3 |
127     child::p:H4 |
128     child::p:M12N |
129     child::p:UG |
130     child::p:XH2"/></ul>
131     </div>
132     </ss:if>
133     <ss:if test="child::p:ref |
134     child::p:SW">
135     <div class="section">
136     <h3><ss:value-of select="$lArticle"/></h3>
137     <ul><ss:apply-templates select="child::p:ref |
138     child::p:SW"/></ul>
139     </div>
140     </ss:if>
141     <ss:if test="child::p:related">
142     <div class="section">
143     <h3><ss:value-of select="$lRelated"/></h3>
144     <ul><ss:apply-templates select="child::p:related"/></ul>
145     </div>
146     </ss:if>
147     </div>
148     </ss:template>
149    
150     <ss:variable name="iProblem" select="'Problem'"/>
151     <ss:variable name="iSituation" select="'Situation'"/>
152     <ss:variable name="iCurrent" select="'Current Practice'"/>
153    
154     <ss:template match="p:problem">
155     <div class="section problem">
156     <h3><ss:value-of select="$iProblem"/></h3>
157     <ul><ss:apply-templates/></ul>
158     </div>
159     </ss:template>
160     <ss:template match="p:situation">
161     <div class="section situation">
162     <h3><ss:value-of select="$iSituation"/></h3>
163     <ul><ss:apply-templates/></ul>
164     </div>
165     </ss:template>
166     <ss:template match="p:current">
167     <div class="section current">
168     <h3><ss:value-of select="$iCurrent"/></h3>
169     <ul><ss:apply-templates/></ul>
170     </div>
171     </ss:template>
172    
173     <ss:template match="p:i">
174     <li><ss:apply-templates/></li>
175     </ss:template>
176    
177     <ss:variable name="inEnglish" select="''"/>
178     <ss:variable name="inJapanese" select="' (in Japanese)'"/>
179    
180     <ss:template match="p:H2">
181     <li><a href="urn:ietf:rfc:1866" lang="en" xml:lang="en"
182     hreflang="en">HTML 2.0 (RFC 1866)</a>
183     <ss:value-of select="$inEnglish"/></li>
184     </ss:template>
185    
186     <ss:template match="p:H3">
187     <li><a href="urn:ietf:id:draft-ietf-html-specv3-00"
188     lang="en" xml:lang="en" hreflang="en">HTML 3.0 Internet Draft</a>
189     <ss:value-of select="$inEnglish"/></li>
190     </ss:template>
191    
192     <ss:template match="p:H4">
193     <li lang="en" xml:lang="en"><a href="http://www.w3.org/TR/html4/{@section}"
194     hreflang="en">HTML 4</a>
195     [<a href="http://www.w3.org/TR/REC-html40-971218/{@section}"
196     hreflang="en">4.0 <abbr title="First Edition">FE</abbr></a> /
197     <a href="http://www.w3.org/TR/1998/REC-html40-19980424/{@section}"
198     hreflang="en">4.0 <abbr title="Second Edition">SE</abbr></a> /
199     <a href="http://www.w3.org/TR/1999/REC-html401-19991224/{@section}"
200     hreflang="en">4.01</a>]
201     <ss:value-of select="$inEnglish"/></li>
202     </ss:template>
203    
204     <ss:template match="p:M12N">
205     <li><a href="http://www.w3.org/TR/xhtml-modularization/{@section}"
206     lang="en" xml:lang="en" hreflang="en">XHTML m12n 1.0</a>
207     [<a href="http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/{@section}"
208     lang="en" xml:lang="en" hreflang="en"><abbr title="First Edition">FE</abbr></a>]
209     <ss:value-of select="$inEnglish"/></li>
210     </ss:template>
211    
212     <ss:template match="p:UG">
213     <li><a href="http://purl.org/NET/ISO+IEC.15445/Users-Guide.html#{@fragment}"
214     lang="en" xml:lang="en" hreflang="en">User's Guide to ISO-HTML</a>
215     <ss:value-of select="$inEnglish"/></li>
216     </ss:template>
217    
218     <ss:template match="p:XH2">
219     <li><a href="http://www.w3.org/TR/xhtml2/{@section}"
220     lang="en" xml:lang="en" hreflang="en">XHTML 2.0</a>
221     <ss:value-of select="$inEnglish"/></li>
222     </ss:template>
223    
224     <ss:template match="p:ref">
225     <li>
226     <a href="{@uri}">
227     <ss:if test="@hrefLang">
228     <ss:attribute name="hreflang"><ss:value-of select="@hrefLang"/></ss:attribute>
229     </ss:if>
230     <ss:apply-templates select="child::dc:title"/>
231     </a>
232     <ss:if test="child::dc:author">
233     <ss:text> by </ss:text>
234     <ss:apply-templates select="child::dc:author"/>
235     </ss:if>
236     <ss:choose>
237     <ss:when test="@hrefLang = 'ja'"><ss:value-of select="$inJapanese"/></ss:when>
238     <ss:when test="@hrefLang = 'en'"><ss:value-of select="$inEnglish"/></ss:when>
239     <ss:when test="@hrefLang"> (In <ss:value-of select="@hrefLang"/>)</ss:when>
240     </ss:choose>
241     </li>
242     </ss:template>
243    
244     <ss:template match="p:SW">
245     <ss:choose>
246     <ss:when test="@anchor">
247     <li><a href="http://suika.fam.cx/~wakaba/-temp/wiki/wiki?_charset_=utf-8;mypage={@page}#anchor-{@anchor}" hreflang="ja">SuikaWiki : <ss:value-of select="@page"/>
248     >><ss:value-of select="@anchor"/></a>
249     <ss:value-of select="$inJapanese"/></li>
250     </ss:when>
251     <ss:otherwise>
252     <li><a href="http://suika.fam.cx/~wakaba/-temp/wiki/wiki?_charset_=utf-8;mypage={@page}" hreflang="ja">SuikaWiki : <ss:value-of select="@page"/></a>
253     <ss:value-of select="$inJapanese"/></li>
254     </ss:otherwise>
255     </ss:choose>
256     </ss:template>
257    
258     <ss:template match="p:related">
259     <li><a href="#{@ref}"><ss:apply-templates select="/child::p:doc/child::p:entry[string (@xml:id) = string (current ()/@ref)]/dc:title"/></a></li>
260     </ss:template>
261    
262     <ss:template match="t:Alt">
263     <ss:choose>
264     <ss:when test="child::*[lang ('en')]">
265     <ss:apply-templates select="child::*[lang ('en')]"/>
266     </ss:when>
267     <ss:otherwise>
268     <ss:apply-templates select="(child::*)[position () = 1]"/>
269     </ss:otherwise>
270     </ss:choose>
271     </ss:template>
272    
273     <ss:template match="p:fileName">
274     <code class="file">
275     <ss:if test="@xml:lang">
276     <ss:attribute name="lang"><ss:value-of select="@xml:lang"/></ss:attribute>
277     <ss:attribute name="xml:lang"><ss:value-of select="@xml:lang"/></ss:attribute>
278     </ss:if>
279     <ss:apply-templates/>
280     </code>
281     </ss:template>
282    
283     <ss:template match="p:he">
284     <code class="HTMLe" lang="en" xml:lang="en"><ss:apply-templates/></code>
285     </ss:template>
286    
287     <ss:template match="p:ha">
288     <code class="HTMLa" lang="en" xml:lang="en"><ss:apply-templates/></code>
289     </ss:template>
290    
291     <ss:template match="p:xhe">
292     <code class="XMLe" lang="en" xml:lang="en"><ss:apply-templates/></code>
293     </ss:template>
294    
295     <ss:template match="p:xha">
296     <code class="XMLa" lang="en" xml:lang="en"><ss:apply-templates/></code>
297     </ss:template>
298    
299     <ss:template match="h:code">
300     <code>
301     <ss:if test="@xml:lang">
302     <ss:attribute name="lang"><ss:value-of select="@xml:lang"/></ss:attribute>
303     <ss:attribute name="xml:lang"><ss:value-of select="@xml:lang"/></ss:attribute>
304     </ss:if>
305     <ss:apply-templates/>
306     </code>
307     </ss:template>
308    
309     <ss:template match="h:var">
310     <var>
311     <ss:if test="@xml:lang">
312     <ss:attribute name="lang"><ss:value-of select="@xml:lang"/></ss:attribute>
313     <ss:attribute name="xml:lang"><ss:value-of select="@xml:lang"/></ss:attribute>
314     </ss:if>
315     <ss:apply-templates/>
316     </var>
317     </ss:template>
318    
319     <ss:template match="h:q">
320     <q>
321     <ss:if test="@cite">
322     <ss:attribute name="cite"><ss:value-of select="@cite"/></ss:attribute>
323     </ss:if>
324     <ss:if test="@xml:lang">
325     <ss:attribute name="lang"><ss:value-of select="@xml:lang"/></ss:attribute>
326     <ss:attribute name="xml:lang"><ss:value-of select="@xml:lang"/></ss:attribute>
327     </ss:if>
328     <ss:apply-templates/>
329     </q>
330     </ss:template>
331    
332     <ss:template match="h:em">
333     <em><ss:apply-templates/></em>
334     </ss:template>
335     </ss:stylesheet>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24