/[suikacvs]/markup/rfc/style/rfc_ja.xsl
Suika

Contents of /markup/rfc/style/rfc_ja.xsl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download) (as text)
Sun Sep 1 09:21:05 2002 UTC (22 years, 2 months ago) by wakaba
Branch: MAIN
Changes since 1.6: +19 -5 lines
File MIME type: application/xml
2002-09-01  Wakaba <w@suika.fam.cx>

	* rfc_ja.xsl: (<?rfc-translation autoquote-samp-element="y/n">): New PI.
	* rfc-ja-style.css (.ja-list-item-none): New rule.

1 wakaba 1.1 <?xml version="1.0" encoding="iso-2022-jp"?>
2     <s:stylesheet
3     xmlns="http://www.w3.org/1999/xhtml"
4     xmlns:h="http://www.w3.org/1999/xhtml"
5     xmlns:s="http://www.w3.org/1999/XSL/Transform"
6 wakaba 1.2 xmlns:ja="http://suika.fam.cx/~wakaba/lang/rfc/translation/"
7 wakaba 1.1 xmlns:ed="http://greenbytes.de/2002/rfcedit"
8     xmlns:myns="mailto:julian.reschke@greenbytes.de?subject=rcf2629.xslt"
9 wakaba 1.6 exclude-result-prefixes="ed ja myns h"
10 wakaba 1.1 version="1.0">
11    
12     <s:output encoding="iso-2022-jp" indent="yes"
13     method="xml" omit-xml-declaration="no"
14     doctype-public="-//W3C//DTD XHTML 1.1//EN"
15     doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />
16 wakaba 1.2 <!--<s:output encoding="iso-2022-jp" indent="yes"
17     method="html" doctype-public="-//W3C//DTD HTML 4.01//EN" />-->
18 wakaba 1.1 <s:param name="uri-rfc-prefix" select="'http://suika.fam.cx/uri-res/N2L?urn:ietf:rfc:'" />
19     <s:param name="uri-std-prefix" select="'http://suika.fam.cx/uri-res/N2L?urn:ietf:std:'" />
20     <s:param name="uri-bcp-prefix" select="'http://suika.fam.cx/uri-res/N2L?urn:ietf:bcp:'" />
21     <s:param name="uri-fyi-prefix" select="'http://suika.fam.cx/uri-res/N2L?urn:ietf:fyi:'" />
22 wakaba 1.2 <s:param name="uri-stylesheet-css" select="'http://suika.fam.cx/~wakaba/lang/rfc/translation/rfc-ja-style.css'" />
23 wakaba 1.1
24 wakaba 1.5 <!-- <?rfc toc="yes/no"?> (default no)
25     (you can use ja:insert element instead) -->
26 wakaba 1.1 <s:param name="include-toc" select="substring-after(translate(/processing-instruction('rfc')[contains(.,'toc=')], '&quot; ', ''),'toc=')" />
27 wakaba 1.3 <!-- <?rfc symrefs="yes/no"?> (default no) -->
28 wakaba 1.1 <s:param name="use-symbolic-reference" select="substring-after(translate(/processing-instruction('rfc')[contains(.,'symrefs=')], '&quot; ', ''),'symrefs=')" />
29     <!-- <?rfc private=" '' or type (display) name "?> -->
30     <s:param name="type-private-paper" select="substring-after(translate(/processing-instruction('rfc')[contains(.,'private=')], '&quot; ', ''),'private=')" />
31    
32 wakaba 1.3 <!-- <?rfc-translation show-rfc-header-category="yes/no"?> (default yes) -->
33     <s:param name="show-rfc-header-category" select="substring-after(translate(/processing-instruction('rfc-translation')[contains(.,'show-rfc-header-category=')], '&quot; ', ''),'show-rfc-header-category=')" />
34     <!-- <?rfc-translation show-rfc-copyright="yes/no"?> (default yes if > rfc2660) -->
35 wakaba 1.1 <s:param name="show-rfc-copyright" select="substring-after(translate(/processing-instruction('rfc-translation')[contains(.,'show-rfc-copyright=')], '&quot; ', ''),'show-rfc-copyright=')" />
36 wakaba 1.3 <!-- <?rfc-translation show-rfc-status="yes/no"?> (default yes) -->
37 wakaba 1.1 <s:param name="show-rfc-status" select="substring-after(translate(/processing-instruction('rfc-translation')[contains(.,'show-rfc-status=')], '&quot; ', ''),'show-rfc-status=')" />
38 wakaba 1.3 <!-- <?rfc-translation show-rfc-acknowledgement-editor="yes/no"?> (default yes if > rfc xxxx) -->
39 wakaba 1.1 <s:param name="show-rfc-acknowledgement-editor" select="substring-after(translate(/processing-instruction('rfc-translation')[contains(.,'show-rfc-acknowledgement-editor=')], '&quot; ', ''),'show-rfc-acknowledgement-editor=')" />
40 wakaba 1.3 <!-- <?rfc-translation output-http-equiv="yes/no"?> (default no) -->
41 wakaba 1.1 <s:param name="output-http-equiv" select="substring-after(translate(/processing-instruction('rfc-translation')[contains(.,'output-http-equiv=')], '&quot; ', ''),'output-http-equiv=')" />
42 wakaba 1.7 <!-- <?rfc-translation autoquote-samp-element="yes/no"?> (default yes) -->
43     <s:param name="autoquote-samp-element" select="substring-after(translate(/processing-instruction('rfc-translation')[contains(.,'autoquote-samp-element=')], '&quot; ', ''),'autoquote-samp-element=')" />
44 wakaba 1.1
45     <s:template match="/">
46 wakaba 1.2 <s:apply-templates select="rfc" />
47 wakaba 1.1 </s:template>
48    
49     <s:template match="rfc">
50     <s:variable name="title">
51     <s:choose><s:when test="@number"><!-- RFC -->
52     RFC <s:value-of select="@number" />:
53     </s:when><s:when test="@docName"><!-- Internet Draft -->
54     <s:value-of select="@docName" />
55     </s:when></s:choose>
56     <s:choose><s:when test="front/ja:title[@xml:lang='ja']">
57     <s:value-of select="front/ja:title[@xml:lang='ja']" /> (<s:value-of select="front/title" />)
58     </s:when><s:otherwise>
59     <s:value-of select="front/title" />
60     </s:otherwise></s:choose>
61     </s:variable>
62 wakaba 1.2 <!--
63 wakaba 1.1 <s:processing-instruction name="xml-stylesheet">href="<s:value-of select="$uri-stylesheet-css" />" type="text/css"</s:processing-instruction>
64 wakaba 1.2 -->
65 wakaba 1.1 <html>
66 wakaba 1.2 <head profile="http://suika.fam.cx/~wakaba/lang/rfc/translation/html-profile">
67 wakaba 1.1 <s:if test="$output-http-equiv != 'no'">
68     <meta http-equiv="Content-Style-Type" content="text/css" />
69     </s:if>
70     <title><s:value-of select="$title" /></title>
71     <link rel="stylesheet" href="{$uri-stylesheet-css}" type="text/css" />
72 wakaba 1.5 <s:if test="@number">
73     <link rel="alternate" href="{$uri-rfc-prefix}{@number}" hreflang="en" title="RFC {@number}" />
74     <link rev="made" href="http://www.rfceditor.org/" title="RFC Editor" />
75     </s:if>
76     <link rev="translate" href="#rfc-translators-note" />
77     <s:if test="front/author">
78     <meta name="author"><s:attribute name="content"><s:for-each select="front/author"><s:value-of select="concat(@fullname,', ')" /></s:for-each></s:attribute></meta>
79     </s:if>
80 wakaba 1.1 <s:if test="front/area"><meta name="ietf-area" content="{front/area}" /></s:if>
81     <s:for-each select="front/workgroup">
82     <meta name="ietf-workgroup" content="{text()}" />
83     </s:for-each>
84     <s:if test="front/keyword">
85     <meta name="keyword" xml:lang="en"><s:attribute name="content"><s:for-each select="front/keyword"><s:value-of select="concat(text(),', ')" /></s:for-each></s:attribute></meta>
86     </s:if>
87     <s:if test="ja:front/keyword">
88     <meta name="keyword"><s:attribute name="content"><s:for-each select="ja:front/keyword"><s:value-of select="concat(text(),', ')" /></s:for-each></s:attribute></meta>
89     </s:if>
90 wakaba 1.3 <s:if test="ja:front/h:style">
91     <s:apply-templates select="ja:front/h:style" />
92     </s:if>
93 wakaba 1.1 </head>
94     <body>
95     <s:apply-templates select="front" />
96     <s:apply-templates select="middle" />
97     <s:apply-templates select="back" />
98     <s:call-template name="translation-back" />
99     <s:call-template name="footer" />
100     </body>
101     </html>
102     </s:template>
103    
104     <s:template match="front">
105     <!--<s:call-template name="front-cover" />-->
106     <div id="rfc--table">
107     <s:call-template name="header-table-left" />
108     <s:call-template name="header-table-right" />
109     </div>
110     <s:apply-templates select="title" />
111     <s:call-template name="front-status" />
112     <s:call-template name="front-copyright" />
113     <s:apply-templates select="abstract" />
114     <s:apply-templates select="note" />
115     <!--<s:call-template name="front-toc" />-->
116     </s:template>
117    
118     <!-- based on rfc2629.xslt -->
119     <s:template name="header-table-left">
120    
121     <ul id="rfc--table-left">
122     <s:choose>
123     <s:when test="not($type-private-paper)">
124     <li><s:choose>
125     <s:when test="/rfc/@ja:workgroup"><s:value-of select="/rfc/@ja:workgroup" /></s:when>
126     <s:otherwise>Network Working Group</s:otherwise>
127     </s:choose></li>
128     <li><s:choose>
129     <s:when test="/rfc/@ipr">Internet Draft</s:when>
130     <s:when test="/rfc/@number">Request for Comments: <s:value-of select="/rfc/@number"/></s:when>
131     </s:choose></li>
132     <s:if test="/rfc/@docName">
133     <li>&lt;<s:value-of select="/rfc/@docName" />&gt;</li>
134     </s:if>
135     <s:if test="/rfc/@obsoletes and /rfc/@obsoletes!=''">
136     <li>$BGQ;_(B: <s:call-template name="rfclist">
137     <s:with-param name="list" select="normalize-space(/rfc/@obsoletes)" />
138     </s:call-template></li>
139     </s:if>
140     <s:if test="/rfc/@seriesNo">
141     <li><s:choose>
142     <s:when test="/rfc/@category='bcp'"><acronym title="Best Current Practice: $B8=>u:GA11?MQ(B">BCP</acronym>: <s:value-of select="/rfc/@seriesNo" /></s:when>
143     <s:when test="/rfc/@category='info'"><acronym title="For Your Information">FYI</acronym>: <s:value-of select="/rfc/@seriesNo" /></s:when>
144     <s:when test="/rfc/@category='std'"><acronym title="Standard: $BI8=`(B">STD</acronym>: <s:value-of select="/rfc/@seriesNo" /></s:when>
145     <s:otherwise><s:value-of select="concat(/rfc/@category,': ',/rfc/@seriesNo)" /></s:otherwise>
146     </s:choose></li>
147     </s:if>
148     <s:if test="/rfc/@updates and /rfc/@updates!=''">
149     <li>$B99?7(B: <s:call-template name="rfclist">
150     <s:with-param name="list" select="normalize-space(/rfc/@updates)" />
151     </s:call-template></li>
152     </s:if>
153 wakaba 1.3 <s:if test="$show-rfc-header-category != 'no'">
154     <li><span class="t-pair"><span xml:lang="en" class="t-l-en">Category: <s:call-template name="category-name" /></span></span></li>
155     <li><span class="t-pair"><span xml:lang="ja" class="t-l-ja">$BJ,N`(B: <s:call-template name="category-name-ja" /></span></span></li>
156     </s:if>
157 wakaba 1.1 <s:if test="/rfc/@ipr">
158     <li><span class="t-pair"><span xml:lang="en" class="t-l-en">Expires: <s:call-template name="expiry-date" /></span></span></li>
159     <li><span class="t-pair"><span xml:lang="ja" class="t-l-ja">$BM-8z4|8B(B: <s:call-template name="expiry-date-ja" /></span></span></li>
160     </s:if>
161     </s:when>
162     <s:otherwise><!-- private -->
163 wakaba 1.6 <li><s:value-of select="$type-private-paper" /></li>
164 wakaba 1.1 </s:otherwise>
165     </s:choose>
166     </ul>
167     </s:template>
168    
169     <!-- based on rfc2629.xslt -->
170     <s:template name="header-table-right">
171     <ul id="rfc--table-right">
172     <s:for-each select="author">
173 wakaba 1.6 <s:choose>
174     <s:when test="@ja:header-name">
175     <li><s:value-of select="@ja:header-name" /></li>
176     </s:when>
177     <s:when test="@surname">
178 wakaba 1.1 <li>
179     <s:attribute name="title"><s:value-of select="@fullname" /></s:attribute>
180     <s:value-of select="concat(@initials,' ',@surname)" />
181     </li>
182 wakaba 1.6 </s:when>
183     <s:when test="@fullname">
184     <li><s:value-of select="@fullname" /></li>
185     </s:when>
186     </s:choose>
187 wakaba 1.1 <s:variable name="org"><s:choose>
188     <s:when test="organization/@abbrev"><s:value-of select="organization/@abbrev" /></s:when>
189     <s:otherwise><s:value-of select="organization" /></s:otherwise>
190     </s:choose></s:variable>
191     <s:variable name="orgOfFollowing"><s:choose>
192     <s:when test="following-sibling::node()/organization/@abbrev"><s:value-of select="following-sibling::node()/organization/@abbrev" /></s:when>
193     <s:otherwise><s:value-of select="following-sibling::node()/organization" /></s:otherwise>
194     </s:choose></s:variable>
195     <s:if test="$org != $orgOfFollowing">
196     <li>
197 wakaba 1.6 <s:if test="$org != organization"><s:attribute name="title"><s:value-of select="normalize-space(organization)" /></s:attribute></s:if>
198 wakaba 1.1 <s:value-of select="$org" />
199     </li>
200     </s:if>
201     </s:for-each>
202     <li><span class="t-pair"><span xml:lang="en" class="t-l-en">
203     <s:value-of select="concat(date/@day,' ',date/@month,' ',date/@year)" />
204     </span></span></li>
205     <li><span class="t-pair"><span xml:lang="ja" class="t-l-ja">
206     <s:value-of select="date/@year" />$BG/(B<s:call-template name="month-ja">
207     <s:with-param name="month" select="date/@month" />
208     </s:call-template><s:if test="date/@day"><s:value-of select="date/@day" />$BF|(B</s:if>
209     </span></span></li>
210     </ul>
211     </s:template>
212    
213     <!-- copied from rfc2629.xslt -->
214     <s:template name="expiry-date">
215     <s:variable name="date" select="/rfc/front/date" />
216    
217     <s:choose>
218     <s:when test="$date/@month='January'"><s:value-of select="concat($date/@day,' July ',$date/@year)" /></s:when>
219     <s:when test="$date/@month='February'"><s:value-of select="concat($date/@day,' August ',$date/@year)" /></s:when>
220     <s:when test="$date/@month='March'"><s:value-of select="concat($date/@day,' September ',$date/@year)" /></s:when>
221     <s:when test="$date/@month='April'"><s:value-of select="concat($date/@day,' October ',$date/@year)" /></s:when>
222     <s:when test="$date/@month='May'"><s:value-of select="concat($date/@day,' November ',$date/@year)" /></s:when>
223     <s:when test="$date/@month='June'"><s:value-of select="concat($date/@day,' December ',$date/@year)" /></s:when>
224     <s:when test="$date/@month='July'"><s:value-of select="concat($date/@day,' January ',$date/@year + 1)" /></s:when>
225     <s:when test="$date/@month='August'"><s:value-of select="concat($date/@day,' February ',$date/@year + 1)" /></s:when>
226     <s:when test="$date/@month='September'"><s:value-of select="concat($date/@day,' March ',$date/@year + 1)" /></s:when>
227     <s:when test="$date/@month='October'"><s:value-of select="concat($date/@day,' April ',$date/@year + 1)" /></s:when>
228     <s:when test="$date/@month='November'"><s:value-of select="concat($date/@day,' May ',$date/@year + 1)" /></s:when>
229     <s:when test="$date/@month='December'"><s:value-of select="concat($date/@day,' June ',$date/@year + 1)" /></s:when>
230     <s:otherwise><strong class="t-invalid">WRONG SYNTAX FOR MONTH</strong></s:otherwise>
231     </s:choose>
232     </s:template>
233    
234     <!-- based on rfc2629.xslt -->
235     <s:template name="expiry-date-ja">
236     <s:variable name="date" select="/rfc/front/date" />
237    
238     <s:choose>
239     <s:when test="$date/@month='January'"><s:value-of select="concat($date/@year,'$BG/(B7$B7n(B',$date/@day)" /><s:if test="$date/@day">$BF|(B</s:if></s:when>
240     <s:when test="$date/@month='February'"><s:value-of select="concat($date/@year,'$BG/(B8$B7n(B',$date/@day)" /><s:if test="$date/@day">$BF|(B</s:if></s:when>
241     <s:when test="$date/@month='March'"><s:value-of select="concat($date/@year,'$BG/(B9$B7n(B',$date/@day)" /><s:if test="$date/@day">$BF|(B</s:if></s:when>
242     <s:when test="$date/@month='March'"><s:value-of select="concat($date/@year,'$BG/(B10$B7n(B',$date/@day)" /><s:if test="$date/@day">$BF|(B</s:if></s:when>
243     <s:when test="$date/@month='May'"><s:value-of select="concat($date/@year,'$BG/(B11$B7n(B',$date/@day)" /><s:if test="$date/@day">$BF|(B</s:if></s:when>
244     <s:when test="$date/@month='June'"><s:value-of select="concat($date/@year,'$BG/(B12$B7n(B',$date/@day)" /><s:if test="$date/@day">$BF|(B</s:if></s:when>
245     <s:when test="$date/@month='July'"><s:value-of select="concat($date/@year + 1,'$BG/(B1$B7n(B',$date/@day)" /><s:if test="$date/@day">$BF|(B</s:if></s:when>
246     <s:when test="$date/@month='August'"><s:value-of select="concat($date/@year + 1,'$BG/(B2$B7n(B',$date/@day)" /><s:if test="$date/@day">$BF|(B</s:if></s:when>
247     <s:when test="$date/@month='September'"><s:value-of select="concat($date/@year + 1,'$BG/(B3$B7n(B',$date/@day)" /><s:if test="$date/@day">$BF|(B</s:if></s:when>
248     <s:when test="$date/@month='October'"><s:value-of select="concat($date/@year + 1,'$BG/(B4$B7n(B',$date/@day)" /><s:if test="$date/@day">$BF|(B</s:if></s:when>
249     <s:when test="$date/@month='November'"><s:value-of select="concat($date/@year + 1,'$BG/(B5$B7n(B',$date/@day)" /><s:if test="$date/@day">$BF|(B</s:if></s:when>
250     <s:when test="$date/@month='December'"><s:value-of select="concat($date/@year + 1,'$BG/(B6$B7n(B',$date/@day)" /><s:if test="$date/@day">$BF|(B</s:if></s:when>
251     <s:otherwise><strong class="t-invalid">$BIT@5$J7n$G$9(B</strong></s:otherwise>
252     </s:choose>
253     </s:template>
254    
255     <!-- copied from rfc2629.xslt -->
256     <s:template name="rfclist">
257     <s:param name="list" />
258     <s:choose>
259     <s:when test="contains($list,',')">
260     <s:variable name="rfcNo" select="substring-before($list,',')" />
261     <a href="{concat($uri-rfc-prefix,$rfcNo)}" title="{concat('RFC ',$rfcNo)}"><s:value-of select="$rfcNo" /></a>,
262     <s:call-template name="rfclist">
263     <s:with-param name="list" select="normalize-space(substring-after($list,','))" />
264     </s:call-template>
265     </s:when>
266     <s:otherwise>
267     <s:variable name="rfcNo" select="$list" />
268     <a href="{concat($uri-rfc-prefix,$rfcNo)}" title="{concat('RFC ',$rfcNo)}"><s:value-of select="$rfcNo" /></a>
269     </s:otherwise>
270     </s:choose>
271     </s:template>
272    
273     <s:template match="/rfc/front/title">
274     <s:choose>
275     <s:when test="/rfc/front/ja:title[@xml:lang='ja']">
276     <div class="t-pair t-heading" id="rfc-title">
277     <h1 class="rfc-title t-l-en" xml:lang="en"><s:value-of select="/rfc/front/title"/></h1>
278     <h1 class="rfc-title t-l-ja" xml:lang="ja"><s:value-of select="/rfc/front/ja:title[@xml:lang='ja']"/></h1>
279     </div>
280     </s:when>
281     <s:otherwise>
282     <h1 class="rfc-title" id="rfc-title"><s:value-of select="/rfc/front/title"/></h1>
283     </s:otherwise>
284     </s:choose>
285     <s:if test="/rfc/@docName">
286     <div class="rfc-docname" id="rfc-docname">&lt;<s:value-of select="/rfc/@docName"/>&gt;</div>
287     </s:if>
288     </s:template>
289    
290     <s:template name="front-status">
291     <s:if test="$show-rfc-status != 'no'">
292     <div id="rfc-status" class="rfc-section">
293     <div class="t-pair">
294     <h1 xml:lang="en" class="t-l-en">Status of this Memo</h1>
295     <h1 xml:lang="ja" class="t-l-ja">$B$3$N%a%b$N0LCVIU$1(B</h1>
296     </div>
297    
298     <s:choose>
299     <s:when test="/rfc/@ipr">
300     <div class="rfc-t">
301     <div class="t-pair">
302     <p class="t-l-en" xml:lang="en">
303     This document is an Internet-Draft and is
304     <s:choose>
305     <s:when test="/rfc/@ipr = 'full2026'">
306     in full conformance with all provisions of Section 10
307     of RFC2026.
308     </s:when>
309     <s:when test="/rfc/@ipr = 'noDerivativeWorks2026'">
310     in full conformance with all provisions of Section 10 of
311     RFC2026 except that the right to produce derivative works is
312     not granted.
313     </s:when>
314     <s:when test="/rfc/@ipr = 'noDerivativeWorksNow'">
315     in full conformance with all provisions of Section 10 of RFC2026
316     except that the right to produce derivative works is not granted.
317     (If this document becomes part of an IETF working group activity,
318     then it will be brought into full compliance with Section 10
319     of RFC2026.)
320     </s:when>
321     <s:when test="/rfc/@ipr = 'none'">
322     <strong>NOT</strong> offered in accordance with Section 10 of
323     RFC2026,
324     and the author does not provide the IETF with any rights other
325     than to publish as an Internet-Draft.
326     </s:when>
327     <s:otherwise><strong class="t-invalid">[CONFORMANCE
328     UNDEFINED.]</strong></s:otherwise>
329     </s:choose>
330    
331     Internet-Drafts are working documents of the Internet Engineering
332     Task Force (IETF), its areas, and its working groups.
333     Note that other groups may also distribute working documents as
334     Internet-Drafts.
335     </p>
336     <p class="t-l-ja" xml:lang="ja">
337     $B$3$NJ8=q$O(B Internet Draft $B$G$"$j!"(B
338     <s:choose>
339     <s:when test="/rfc/@ipr = 'full2026'">RFC 2026
340     $B$NBh(B10$B>O$NA4$F$NMW7o$rK~$?$7$F$$$^$9!#(B
341     </s:when>
342     <s:when test="/rfc/@ipr = 'noDerivativeWorks2026'">
343     $BGI@8E*:n6H8"$rG'$a$J$$$3$H$r=|$-!"(B RFC 2026
344     $B$NBh(B10$B>O$NA4$F$NMW7o$rK~$?$7$F$$$^$9!#(B
345     </s:when>
346     <s:when test="/rfc/@ipr = 'noDerivativeWorksNow'">
347     $BGI@8E*:n6H8"$rG'$a$J$$$3$H$r=|$-!"(BRFC 2026
348     $B$NBh(B10$B>O$NA4$F$NMW7o$rK~$?$7$F$$$^$9!#(B
349     ($B$3$NJ8=q$,(B <a href="http://www.ietf.org/">IETF</a>
350     $B:n6HIt2q$N3hF0$N0lIt$K$J$C$?6G$K$O!"(BRFC 2026
351     $B$NBh(B10$B>O$K40A4$K=>$&$3$H$K$J$j$^$7$g$&!#(B)
352     </s:when>
353     <s:when test="/rfc/@ipr = 'none'">
354     RFC 2026
355     $B$NBh(B10$B>O$K$O=>$C$F(B<strong title="NOT">$B$*$i$:(B</strong>$B!"(B
356     $BCx<T$O(B <a href="http://www.ietf.org/">IETF</a> $B$K!"(B
357     Internet-Draft $B$H$7$FH/9T$9$k0J30$N$$$+$J$k8"Mx$r$bM?$($k$b$N$G$O$"$j$^$;$s!#(B
358     </s:when>
359     <s:otherwise><strong class="t-invalid">$BE,9g@-$OL$Dj5A$G$9(B</strong>$B!#(B</s:otherwise>
360     </s:choose>
361    
362     Internet-Drafts $B$O(B <a href="http://www.ietf.org/">Internet
363     $B5;=QFCJLD4::0Q0w2q(B (IETF)</a> $B$d$=$NNN0h0Q0w2q(B (area),
364     $B:n6HIt2q$N:n6HJ8=q$G$9!#$J$*!"B>$NCDBN$b:n6HJ8=q$r(B
365     Internet-Draft $B$H$7$FG[I[$9$k$3$H$,=PMh$^$9!#(B
366     </p>
367     </div>
368     </div>
369    
370     <div class="rfc-t">
371     <div class="t-pair">
372     <p class="t-l-en" xml:lang="en">
373     Internet-Drafts are draft documents valid for a maximum of
374     six months and may be updated, replaced, or obsoleted by other
375     documents at any time.
376     It is inappropriate to use Internet-Drafts as reference
377     material or to cite them other than as $B!H(Bwork in progress$B!I(B.
378     </p>
379     <p class="t-l-ja" xml:lang="ja">
380     Internet-Draft
381     $B$O:GBg(B6$B%v7n4VM-8z$J860FJ8=q$G!"$$$D2?;~B>$NJ8=q$K$h$j99?7$5$l$?$jCV$-49$($i$l$?$jGQ;_$5$l$?$j$9$k$+$bJ,$+$j$^$;$s!#(B
382     $B!V:n6HCf!W(B $B$HCG$i$:$K(B Internet-Draft
383     $B$r;qNA$H$7$F;2>H$7$?$j0zMQ$7$?$j$9$k$N$OITE,@Z$G$9!#(B
384     </p>
385     </div>
386     </div>
387    
388     <div class="rfc-t">
389     <div class="t-pair">
390     <p class="t-l-en" xml:lang="en">
391     The list of current Internet-Drafts can be accessed at
392     &lt;<a href='http://www.ietf.org/ietf/1id-abstracts.txt'>http://www.ietf.org/ietf/1id-abstracts.txt</a>&gt;.
393     </p>
394     <p class="t-l-ja" xml:lang="ja">
395     $B8=:_$N(B Internet-Drafts $B$N0lMw$O(B
396     &lt;<a href='http://www.ietf.org/ietf/1id-abstracts.txt'>http://www.ietf.org/ietf/1id-abstracts.txt</a>&gt;
397     $B$GF~<j=PMh$^$9!#(B
398     </p>
399     </div>
400     </div>
401    
402     <div class="rfc-t">
403     <div class="t-pair">
404     <p class="t-l-en" xml:lang="en">
405     The list of Internet-Draft Shadow Directories can be accessed at
406     &lt;<a href='http://www.ietf.org/shadow.html'>http://www.ietf.org/shadow.html</a>&gt;.
407     </p>
408     <p class="t-l-ja" xml:lang="ja">
409     Internet-Draft Shadow Directories $B$N0lMw$O(B
410     &lt;<a href='http://www.ietf.org/shadow.html'>http://www.ietf.org/shadow.html</a>&gt;
411     $B$GF~<j=PMh$^$9!#(B
412     </p>
413     </div>
414     </div>
415    
416     <div class="rfc-t">
417     <div class="t-pair">
418     <p class="t-l-en" xml:lang="en">
419     This Internet-Draft will expire in
420     <s:call-template name="expiry-date" />.
421     </p>
422     <p class="t-l-ja" xml:lang="ja">
423     $B$3$N(B Internet-Draft $B$O(B <s:call-template name="expiry-date-ja" />
424     $B$K4|8B$,@Z$l$^$9!#(B
425     </p>
426     </div>
427     </div>
428     </s:when>
429    
430     <s:when test="/rfc/@category='bcp'">
431     <div class="rfc-t">
432     <div class="t-pair">
433     <p class="t-l-en" xml:lang="en">
434     This document specifies an Internet Best Current Practice
435     for the Internet Community, and requests discussion and
436     suggestions for improvements.
437     Distribution of this memo is unlimited.
438     </p>
439     <p class="t-l-ja" xml:lang="ja">
440     $B$3$N%a%b$O!"(B Internet $B<R2q8~$1$K(B Internet $B8=>u:GA11?MQ$r@bL@$7!"2~NI$N0Y$N5DO@$dDs0F$r5a$a$^$9!#$3$N%a%b$NG[I[$O@)8B$7$^$;$s!#(B
441     </p>
442     </div>
443     </div>
444     </s:when>
445    
446     <s:when test="/rfc/@category='exp'">
447     <div class="rfc-t">
448     <div class="t-pair">
449     <p class="t-l-en" xml:lang="en">
450     This memo defines an Experimental Protocol for the Internet community.
451     It does not specify an Internet standard of any kind.
452     Discussion and suggestions for improvement are requested.
453     Distribution of this memo is unlimited.
454     </p>
455     <p class="t-l-ja" xml:lang="ja">
456     $B$3$N%a%b$O!"(B Internet $B<R2q8~$1$N<B83E*%W%m%H%3%k$rDj5A$9$k$b$N$G$9!#$$$+$J$k<oN`$N(B
457     Internet $BI8=`$r5,Dj$9$k$b$N$G$b$"$j$^$;$s!#2~NI$N0Y$N5DO@$dDs0F$r5a$a$^$9!#$3$N%a%b$NG[I[$O@)8B$7$^$;$s!#(B
458     </p>
459     </div>
460     </div>
461     </s:when>
462    
463     <s:when test="/rfc/@category='historic'">
464     <div class="rfc-t">
465     <div class="t-pair">
466     <p class="t-l-en" xml:lang="en">
467     This memo describes a historic protocol for the Internet community.
468     It does not specify an Internet standard of any kind.
469     Distribution of this memo is unlimited.
470     </p>
471     <p class="t-l-ja" xml:lang="ja">
472     $B$3$N%a%b$O!"(B Internet $B<R2q$KNr;KE*%W%m%H%3%k$r@bL@$9$k$b$N$G$9!#$$$+$J$k<oN`$N(B
473     Internet $BI8=`$r5,Dj$9$k$b$N$G$b$"$j$^$;$s!#$3$N%a%b$NG[I[$O@)8B$7$^$;$s!#(B
474     </p>
475     </div>
476     </div>
477     </s:when>
478    
479     <s:when test="/rfc/@category='info' or /rfc/@category=''">
480     <div class="rfc-t">
481     <div class="t-pair">
482     <p class="t-l-en" xml:lang="en">
483     This memo provides information for the Internet community.
484     It does not specify an Internet standard of any kind.
485     Distribution of this memo is unlimited.
486     </p>
487     <p class="t-l-ja" xml:lang="ja">
488     $B$3$N%a%b$O!"(B Internet $B<R2q$K>pJs$rDs6!$7$^$9!#$$$+$J$k<oN`$N(B
489     Internet $BI8=`$r5,Dj$9$k$b$N$G$b$"$j$^$;$s!#$3$N%a%b$NG[I[$O@)8B$7$^$;$s!#(B
490     </p>
491     </div>
492     </div>
493     </s:when>
494    
495     <s:when test="/rfc/@category='std'">
496     <div class="rfc-t">
497     <div class="t-pair">
498     <p class="t-l-en" xml:lang="en">
499     This document specifies an Internet standards track protocol
500     for the Internet community, and requests discussion and
501     suggestions for improvements.
502     Please refer to the current edition of the
503     $B!H(BInternet Official Protocol Standards$B!I(B (STD 1) for the
504     standardization state and status of this
505     protocol. Distribution of this memo is unlimited.
506     </p>
507     <p class="t-l-ja" xml:lang="ja">
508     $B$3$NJ8=q$O!"(B Internet $B<R2q8~$1(B Internet
509     $BI8=`2=2aDx%W%m%H%3%k$r5,Dj$7!"2~NI$N0Y$N5DO@$HDs0F$r5a$a$k$b$N$G$9!#$3$N%W%m%H%3%k$NI8=`2=>u67$K$D$$$F$O!"!X(BInternet Official Protocol Standard$B!Y(B (STD 1)
510     $B$r;2>H$7$F2<$5$$!#$3$N%a%b$NG[I[$O@)8B$7$^$;$s!#(B
511     </p>
512     </div>
513     </div>
514     </s:when>
515    
516     <s:otherwise>
517     <p class="rfc-t">UNSUPPORTED CATEGORY.</p>
518     </s:otherwise>
519     </s:choose>
520     </div>
521     </s:if>
522     </s:template>
523    
524     <s:template name="front-copyright">
525     <s:choose>
526     <s:when test="/rfc/@ipr = 'none'"></s:when>
527     <s:when test="/rfc/@number &lt; 2220"></s:when>
528     <s:when test="$show-rfc-copyright != 'no'">
529     <div id="rfc-copyright-notice" class="rfc-section">
530     <div class="t-pair">
531     <h1 xml:lang="en" class="t-l-en">Copyright Notice</h1>
532     <h1 xml:lang="ja" class="t-l-ja">$BCx:n8"I=<((B</h1>
533     </div>
534    
535 wakaba 1.2 <div class="t-pair t-hide-no">
536     <p class="t-l-en" xml:lang="en">Copyright &#xA9;
537 wakaba 1.1 <a href="http://www.isoc.org/">The Internet Society</a>
538     (<s:value-of select="/rfc/front/date/@year" />).
539     All Rights Reserved.</p>
540     <p class="t-l-ja" xml:lang="ja">$BCx:n8"(B &#xa9;
541     <a href="http://www.isoc.org/">The Internet Society</a>
542     (<s:value-of select="/rfc/front/date/@year" />)$B!#A48"J]N1!#(B</p>
543     </div>
544     </div>
545     </s:when>
546     </s:choose>
547     </s:template>
548    
549    
550     <!-- based on rfc2629.xslt -->
551     <s:template match="note">
552     <div class="rfc-section rfc-note">
553     <s:choose>
554     <s:when test="@title = 'IESG Note'">
555     <s:attribute name="id">rfc-note-iesg</s:attribute>
556     <div class="t-pair t-heading">
557     <h1 xml:lang="en" class="t-l-en"><a href="#rfc-note-iesg" class="self">IESG Note</a></h1>
558     <h1 xml:lang="ja" class="t-l-ja"><a href="#rfc-note-iesg" class="self">IESG $BCm5-(B</a></h1>
559     </div>
560     </s:when>
561     <s:otherwise>
562     <h1><s:value-of select="@title" /></h1>
563     </s:otherwise>
564     </s:choose>
565     <s:apply-templates />
566     </div>
567     </s:template>
568    
569     <s:template match="middle">
570     <s:apply-templates />
571     </s:template>
572    
573     <!-- based on rfc2629.xslt -->
574     <s:template match="section">
575     <s:variable name="sectionNumber">
576     <s:choose>
577     <s:when test="@myns:unnumbered or ancestor::ja:back"></s:when>
578     <s:otherwise><s:call-template name="section-number" /></s:otherwise>
579     </s:choose>
580     </s:variable>
581    
582     <s:variable name="title-ja"><s:call-template name="section-name-ja">
583     <s:with-param name="node" select="." />
584     </s:call-template></s:variable>
585    
586     <s:variable name="element-name">
587     <s:choose>
588     <s:when test="count(ancestor::section) = 0">h1</s:when>
589     <s:when test="count(ancestor::section) = 1">h2</s:when>
590     <s:when test="count(ancestor::section) = 2">h3</s:when>
591     <s:when test="count(ancestor::section) = 3">h4</s:when>
592     <s:when test="count(ancestor::section) = 4">h5</s:when>
593     <s:otherwise>h6</s:otherwise>
594     </s:choose>
595     </s:variable>
596    
597     <div class="rfc-section">
598     <s:if test="$sectionNumber!=''">
599     <s:attribute name="id">rfc.section.<s:value-of select="$sectionNumber" /></s:attribute>
600     </s:if>
601     <div>
602     <s:if test="$title-ja!=''"><s:attribute name="class">t-pair t-heading</s:attribute></s:if>
603     <s:if test="@anchor"><s:attribute name="id"><s:value-of select="@anchor" /></s:attribute></s:if>
604     <s:element name="{$element-name}">
605     <s:if test="$title-ja!=''">
606     <s:attribute name="xml:lang">en</s:attribute>
607     <s:attribute name="class">t-l-en</s:attribute>
608     </s:if>
609     <s:if test="$sectionNumber!=''"><s:value-of select="$sectionNumber" />. </s:if>
610     <s:value-of select="@title" />
611     </s:element>
612     <s:if test="$title-ja!=''">
613     <s:element name="{$element-name}">
614     <s:attribute name="xml:lang">ja</s:attribute>
615     <s:attribute name="class">t-l-ja</s:attribute>
616     <s:if test="$sectionNumber!=''">
617     <s:value-of select="$sectionNumber" />.
618     </s:if>
619     <s:value-of select="$title-ja" />
620     </s:element>
621     </s:if>
622     </div>
623     <s:apply-templates />
624     </div>
625     </s:template>
626    
627     <s:template name="section-name-ja">
628     <s:param name="node" />
629     <s:param name="return-en" />
630     <s:variable name="title-small"><s:value-of select="translate($node/@title,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')" /></s:variable>
631    
632     <s:choose>
633     <s:when test="$node/@ja:title-ja"><s:value-of select="$node/@ja:title-ja" /></s:when>
634     <s:when test="$title-small = 'acknowledgements'">$B<U<-(B</s:when>
635 wakaba 1.6 <s:when test="$title-small = 'authors address'">$BCx<T$NO"Mm@h(B</s:when>
636     <s:when test='$title-small = "authors&apos; addresses"'>$BCx<T$NO"Mm@h(B</s:when>
637 wakaba 1.1 <s:when test="$title-small = 'background information'">$BGX7J@bL@(B</s:when>
638     <s:when test="$title-small = 'conclution'">$B$^$H$a(B</s:when>
639     <s:when test="$title-small = 'definition'">$BDj5A(B</s:when>
640 wakaba 1.6 <s:when test="$title-small = 'description'">$B@bL@(B</s:when>
641 wakaba 1.1 <s:when test="$title-small = 'formal syntax'">$B7A<0E*9=J8(B</s:when>
642 wakaba 1.6 <s:when test="$title-small = 'full copyright statement'">$B40A4$JCx:n8"@<L@(B</s:when>
643 wakaba 1.1 <s:when test="$title-small = 'iana considerations'">IANA $B$K4X$7$F(B</s:when>
644     <s:when test="$title-small = 'introduction'">$B$O$8$a$K(B</s:when>
645     <s:when test="$title-small = 'mime considerations'">MIME $B$K4X$7$F(B</s:when>
646 wakaba 1.6 <s:when test="$title-small = 'reference'">$B;29MJ88%(B</s:when>
647     <s:when test="$title-small = 'references'">$B;29MJ88%(B</s:when>
648 wakaba 1.5 <s:when test="$title-small = 'requirements'">$BI,MWMW7o(B</s:when>
649 wakaba 1.1 <s:when test="$title-small = 'security considerations'">$B0BA4@-$K4X$7$F(B</s:when>
650     <s:otherwise><s:if test="$return-en"><s:choose>
651     <s:when test="$node/@title"><s:value-of select="$node/@title" /></s:when>
652     </s:choose></s:if></s:otherwise>
653     </s:choose>
654     </s:template>
655    
656     <!-- Copied from rfc2629.xslt -->
657     <s:template name="section-number">
658     <s:choose>
659     <s:when test="ancestor::back"><s:number count="ed:del|ed:ins|section" level="multiple" format="A.1.1.1.1.1.1.1" /></s:when>
660     <s:otherwise><s:number count="ed:del|ed:ins|section" level="multiple"/></s:otherwise>
661     </s:choose>
662     </s:template>
663     <s:template name="section-paragraph-number">
664     <s:if test="ancestor::section">
665     <s:for-each select="ancestor::section[1]"><s:call-template name="section-number" />.p.</s:for-each><s:number count="t|figure" />
666     </s:if>
667     </s:template>
668    
669     <!-- based on rfc2629.xslt -->
670     <s:template match="t">
671     <s:variable name="paragraph-number">
672     <s:call-template name="section-paragraph-number" />
673     </s:variable>
674    
675     <s:variable name="element-name">
676     <s:choose>
677     <s:when test="ja:pair">div</s:when>
678     <s:when test=".//list">div</s:when>
679     <s:otherwise>p</s:otherwise>
680     </s:choose>
681     </s:variable>
682     <s:element name="{$element-name}">
683     <s:attribute name="class">rfc-t</s:attribute>
684     <s:if test="string-length($paragraph-number) &gt; 0">
685     <s:attribute name="id">rfc.section.<s:value-of select="$paragraph-number" /></s:attribute>
686     </s:if>
687 wakaba 1.3 <s:choose>
688     <s:when test="text() = 'Security issues are not discussed in this memo.'">
689     <div class="t-pair">
690     <p xml:lang="en" class="t-l-en">Security issues are not discussed in this memo.</p>
691     <p xml:lang="ja" class="t-l-ja">$B0BA4@-LdBj$O$3$N%a%b$G$O<h$j07$C$F$$$^$;$s!#(B</p>
692     </div>
693     </s:when>
694     <s:otherwise><s:apply-templates /></s:otherwise>
695     </s:choose>
696 wakaba 1.1 </s:element>
697     </s:template>
698    
699     <s:template match="list[@style='empty' or not(@style)]">
700     <ul class="rfc-list-empty">
701     <s:apply-templates />
702     </ul>
703     </s:template>
704    
705     <s:template match="list[@style='empty' or not(@style)]/t">
706 wakaba 1.5 <li>
707     <s:if test="@ja:anchor"><s:attribute name="id"><s:value-of select="@ja:anchor" /></s:attribute></s:if>
708     <s:apply-templates />
709     </li>
710 wakaba 1.1 </s:template>
711    
712     <s:template match="list[@style='hanging']">
713     <dl class="rfc-list-hanging">
714     <s:apply-templates />
715     </dl>
716     </s:template>
717    
718     <s:template match="list[@style='hanging']/t">
719 wakaba 1.3 <s:choose>
720     <s:when test="@ja:anchor">
721     <dt id="{@ja:anchor}"><a href="#{@ja:anchor}" class="self"><s:value-of select="@hangText" /></a></dt>
722     </s:when>
723     <s:otherwise><dt><s:value-of select="@hangText" /></dt></s:otherwise>
724     </s:choose>
725 wakaba 1.6 <s:if test="@ja:hangText-ja">
726     <dt xml:lang="ja" class="t-l-ja"><s:value-of select="@ja:hangText-ja" /></dt>
727     </s:if>
728 wakaba 1.1 <dd><s:apply-templates /></dd>
729     </s:template>
730    
731     <s:template match="list[@style='numbers']">
732     <ol class="rfc-list-numbers text">
733     <s:apply-templates />
734     </ol>
735     </s:template>
736     <s:template match="list[@style='symbols']">
737     <ul class="rfc-list-symbols text">
738     <s:apply-templates />
739     </ul>
740     </s:template>
741    
742     <s:template match="list[@style='numbers' or @style='symbols']/t">
743     <li>
744     <s:apply-templates />
745     </li>
746     </s:template>
747    
748     <s:template match="figure">
749     <div class="rfc-figure">
750     <s:if test="@anchor!=''">
751     <s:attribute name="id"><s:value-of select="@anchor" /></s:attribute>
752     </s:if>
753    
754     <s:choose>
755     <s:when test="@title!='' or @anchor!=''">
756     <span class="rfc-figure-id"><s:attribute name="id">rfc.figure.<s:number level="any" count="figure[@title!='' or @anchor!='']" /></s:attribute>&#xA0;</span>
757     </s:when>
758     <s:otherwise>
759     <span class="rfc-figure-id"><s:attribute name="id">rfc.figure.u.<s:number level="any" count="figure[not(@title!='' or @anchor!='')]" /></s:attribute>&#xA0;</span>
760     </s:otherwise>
761     </s:choose>
762    
763     <s:apply-templates />
764    
765     <s:if test="@title!='' or @anchor!=''">
766     <s:variable name="n"><s:number level="any" count="figure[@title!='' or @anchor!='']" /></s:variable>
767     <div class="t-pair rfc-figure-title">
768     <div xml:lang="en" class="t-l-en">Figure
769     <s:value-of select="$n"/><s:if test="@title!=''">: <s:value-of select="@title" /></s:if>
770     </div>
771     <div xml:lang="ja" class="t-l-ja">$B?^(B
772     <s:value-of select="$n"/><s:choose>
773     <s:when test="@ja:title-ja!=''">: <s:value-of select="@ja:title-ja" /></s:when>
774     <s:when test="@title!=''">: <s:value-of select="@title" /></s:when>
775     </s:choose></div>
776     </div>
777     </s:if>
778     </div>
779     </s:template>
780    
781     <s:template match="preamble">
782     <div class="rfc-preamble"><s:apply-templates /></div>
783     </s:template>
784    
785     <s:template match="postamble">
786     <div class="rfc-postamble"><s:apply-templates /></div>
787     </s:template>
788    
789     <s:template match="artwork">
790     <pre class="rfc-artwork" xml:space="preserve"><s:value-of select="text()" /></pre>
791     </s:template>
792 wakaba 1.3 <!-- artwork with XML structure -->
793     <s:template match="ja:artwork">
794     <div class="rfc-t-artwork"><s:apply-templates select="*[not(name()='artwork')]" /></div>
795     </s:template>
796    
797     <s:template match="ja:example">
798     <div class="t-example">
799     <s:if test="not(@no-title)">
800     <div class="t-title t-pair">
801     <div class="t-l-en" xml:lang="en"><s:choose>
802     <s:when test="@title"><s:value-of select="@title" /></s:when>
803     <s:otherwise>Example: </s:otherwise>
804     </s:choose></div>
805     <div class="t-l-ja" xml:lang="ja"><s:choose>
806     <s:when test="@title"><s:value-of select="@title-ja" /></s:when>
807     <s:otherwise>$BNc(B: </s:otherwise>
808     </s:choose></div>
809     </div>
810     </s:if>
811    
812     <s:choose>
813     <s:when test="@xml:space = 'preserve'">
814     <pre xml:space="preserve"><s:value-of select="text()" /></pre>
815     </s:when>
816     <s:otherwise><div><s:apply-templates /></div></s:otherwise>
817     </s:choose>
818     </div>
819     </s:template>
820 wakaba 1.1
821     <s:template match="ja:pair">
822     <div class="t-pair">
823 wakaba 1.2 <s:if test="@ja:hide = 'no'">
824     <s:attribute name="class">t-hide-no</s:attribute>
825     </s:if>
826 wakaba 1.1 <s:for-each select="ja:l">
827     <p xml:lang="{@xml:lang}" class="t-l-{@xml:lang}">
828     <s:apply-templates />
829     </p>
830     </s:for-each>
831     </div>
832     </s:template>
833    
834     <s:template match="reference//ja:pair">
835     <span class="t-pair">
836     <s:for-each select="ja:l">
837     <span xml:lang="{@xml:lang}" class="t-l-{@xml:lang}">
838     <s:apply-templates />
839     </span>
840     </s:for-each>
841     </span>
842     </s:template>
843    
844     <s:template name="month-ja">
845     <s:param name="month" />
846     <s:variable name="m"><s:value-of select="translate($month,'ABCDEFGJLMNOPRSTUVY','abcdefgjlmnoprstuvy')" /></s:variable>
847     <s:choose>
848     <s:when test="contains($m, 'jan')">1$B7n(B</s:when>
849     <s:when test="contains($m, 'feb')">2$B7n(B</s:when>
850     <s:when test="contains($m, 'mar')">3$B7n(B</s:when>
851     <s:when test="contains($m, 'apr')">4$B7n(B</s:when>
852     <s:when test="contains($m, 'may')">5$B7n(B</s:when>
853     <s:when test="contains($m, 'jun')">6$B7n(B</s:when>
854     <s:when test="contains($m, 'jul')">7$B7n(B</s:when>
855     <s:when test="contains($m, 'aug')">8$B7n(B</s:when>
856     <s:when test="contains($m, 'sep')">9$B7n(B</s:when>
857     <s:when test="contains($m, 'oct')">10$B7n(B</s:when>
858     <s:when test="contains($m, 'nov')">11$B7n(B</s:when>
859     <s:when test="contains($m, 'dec')">12$B7n(B</s:when>
860     <s:otherwise><s:value-of select="$month" /></s:otherwise>
861     </s:choose>
862     </s:template>
863    
864     <s:template name="category-name">
865     <s:choose>
866     <s:when test="/rfc/@category='bcp'">Best Current Practice</s:when>
867 wakaba 1.6 <s:when test="/rfc/@category='exp'">Experimental</s:when>
868 wakaba 1.1 <s:when test="/rfc/@category='info'">Informational</s:when>
869     <s:when test="/rfc/@category=''">Informational</s:when>
870     <s:when test="/rfc/@category='std'">Standards Track</s:when>
871     <s:otherwise>(category missing or unknown)</s:otherwise>
872     </s:choose>
873     </s:template>
874     <s:template name="category-name-ja">
875     <s:choose>
876     <s:when test="/rfc/@category='bcp'">$B8=>u:GA11?MQ(B</s:when>
877 wakaba 1.6 <s:when test="/rfc/@category='exp'">$B<B83E*(B</s:when>
878 wakaba 1.7 <s:when test="/rfc/@category='info'">$B>pJsDs6!(B</s:when>
879     <s:when test="/rfc/@category=''">$B>pJsDs6!(B</s:when>
880 wakaba 1.1 <s:when test="/rfc/@category='std'">$BI8=`2=2aDx(B</s:when>
881     <s:otherwise>($BJ,N`L5$7$^$?$OITL@(B)</s:otherwise>
882     </s:choose>
883     </s:template>
884    
885     <!-- copied from rfc2629.xslt -->
886     <s:template match="vspace[not(@blankLines) or @blankLines = '0']">
887     <br class="rfc-vspace" />
888     </s:template>
889     <s:template match="vspace[@blankLines = '1']">
890     <br class="rfc-vspace" /><br class="rfc-vspace" />
891     </s:template>
892     <s:template match="vspace[@blankLines &gt; 1]">
893     <br class="rfc-vspace" /><span class="rfc-vspace" style="display: block; visibility: hidden; margin-bottom: {@blankLines - 2}em">&#xA0;</span>
894     </s:template>
895    
896 wakaba 1.6 <s:template match="ja:insert[@ja:section='toc' or @section='toc']">
897 wakaba 1.5 <!--<s:call-template name="table-of-contents" />-->
898     </s:template>
899 wakaba 1.6 <s:template match="ja:insert[@ja:section='index' or @section='index']">
900 wakaba 1.5 <!--<s:call-template name="back-index" />-->
901     </s:template>
902 wakaba 1.6 <s:template match="ja:insert[@ja:section='references' or @section='references']">
903 wakaba 1.3 <s:apply-templates select="/rfc//back/references" />
904     </s:template>
905 wakaba 1.6 <s:template match="ja:insert[@ja:section='author-address' or @section='author-address']">
906 wakaba 1.3 <s:call-template name="back-author-address" />
907     </s:template>
908 wakaba 1.6 <s:template match="ja:insert[@ja:section='full-copyright' or @section='full-copyright']">
909 wakaba 1.3 <s:call-template name="back-copyright" />
910     </s:template>
911 wakaba 1.6 <s:template match="ja:insert[@ja:section='acknowledgement-editor' or @section='acknowledgement-editor']">
912 wakaba 1.3 <s:call-template name="back-acknowledgement-editor" />
913     </s:template>
914    
915 wakaba 1.1 <!-- back -->
916     <s:template match="back">
917 wakaba 1.6 <s:if test="not(//ja:insert[@ja:section='references' or @section='references'])">
918 wakaba 1.3 <s:apply-templates select="references" />
919     </s:if>
920 wakaba 1.6 <s:if test="not(//ja:insert[@ja:section='author-address' or @section='author-address'])">
921 wakaba 1.3 <s:call-template name="back-author-address" />
922     </s:if>
923 wakaba 1.1 <s:apply-templates select="*[not(self::references)]" />
924     <!--<s:if test="//iref">
925     <s:call-template name="back-index" />
926     </s:if>-->
927 wakaba 1.6 <s:if test="not(//ja:insert[@ja:section='full-copyright' or @section='full-copyright'])">
928 wakaba 1.3 <s:call-template name="back-copyright" />
929     </s:if>
930 wakaba 1.6 <s:if test="not(//ja:insert[@ja:section='acknowledgement-editor' or @section='acknowledgement-editor'])">
931 wakaba 1.3 <s:call-template name="back-acknowledgement-editor" />
932     </s:if>
933 wakaba 1.1 </s:template>
934    
935     <s:template name="back-author-address">
936 wakaba 1.6
937 wakaba 1.1 <div id="rfc-authors" class="rfc-section">
938 wakaba 1.6 <s:variable name="title-prefix"><s:value-of select="//ja:insert[@ja:section='author-address' or @section='author-address']/@ja:title-prefix" /></s:variable>
939    
940     <div id="rfc.authors" class="t-pair t-heading">
941     <h1 xml:lang="en" class="t-l-en"><s:value-of select="$title-prefix" />Author's Address<s:if test="count(/rfc/front/author) &gt; 1">es</s:if></h1>
942     <h1 xml:lang="ja" class="t-l-ja"><s:value-of select="$title-prefix" />$BCx<T$NO"Mm@h(B</h1>
943     </div>
944 wakaba 1.1 <s:apply-templates select="/rfc/front/author" />
945     </div>
946     </s:template>
947    
948     <s:template name="back-copyright">
949     <s:choose>
950     <s:when test="/rfc/@ipr = 'none'"></s:when>
951     <s:when test="/rfc/@number &lt; 2220"></s:when>
952     <s:when test="$show-rfc-copyright != 'no'">
953 wakaba 1.6 <s:variable name="section-number">
954     <s:choose>
955     <s:when test="/rfc/back/@ja:full-copyright-numbered"><s:call-template name="section-number" /></s:when>
956     </s:choose>
957     </s:variable>
958    
959     <s:variable name="title-prefix"><s:value-of select="//ja:insert[@ja:section='full-copyright' or @section='full-copyright']/@ja:title-prefix" /></s:variable>
960    
961 wakaba 1.1 <div id="rfc-copyright" class="rfc-section">
962 wakaba 1.6 <div class="t-pair" id="rfc.copyright">
963     <h1 xml:lang="en" class="t-l-en"><s:value-of select="$title-prefix" />Full Copyright Statement</h1>
964     <h1 xml:lang="ja" class="t-l-ja"><s:value-of select="$title-prefix" />$B40A4$JCx:n8"@<L@(B</h1>
965     </div>
966 wakaba 1.1
967 wakaba 1.2 <div class="t-pair t-hide-no">
968     <p class="t-l-en" xml:lang="en">
969 wakaba 1.1 Copyright &#xa9;
970     <a href="http://www.isoc.org/">The Internet Society</a>
971     (<s:value-of select="/rfc/front/date/@year" />).
972     All Rights Reserved.
973     </p>
974     <p class="t-l-ja" xml:lang="ja">
975     $BCx:n8"(B &#xa9;
976     <a href="http://www.isoc.org/">The Internet Society</a>
977     (<s:value-of select="/rfc/front/date/@year" />)$B!#A48"N1J]!#(B
978     </p>
979     </div>
980    
981 wakaba 1.6 <s:comment>$BK]Lu:G=*=$@5(B: 2002$BG/(B6$B7n(B21$BF|(B</s:comment>
982 wakaba 1.1 <div class="rfc-t">
983 wakaba 1.2 <div class="t-pair t-hide-no">
984     <p class="t-l-en" xml:lang="en">
985 wakaba 1.1 This document and translations of it may be copied
986     and furnished
987     to others, and derivative works that comment on or otherwise
988     explain it or assist in its implementation may be prepared,
989     copied, published and distributed, in whole or in part,
990     without restriction of any kind, provided that the
991     above copyright notice
992     and this paragraph are included on all such copies and
993     derivative works. However, this document itself may
994     not be modified in any way, such as by removing the
995     copyright notice or references to the Internet Society
996     or other Internet organizations, except as
997     needed for the purpose of developing Internet standards
998     in which case the procedures for copyrights defined in
999     the Internet Standards process must be followed, or as
1000     required to translate it into languages other than English.
1001     </p>
1002     <p class="t-l-ja" xml:lang="ja">
1003 wakaba 1.6 $B$3$NJ8=q5Z$S$=$NK]Lu$rJ#<L$7B><T$KDs6!$9$k$3$H$d!"$3$l$K$D$$$FCm<a$r2C$($k$+$b$7$/$O@bL@$9$k(B,
1004     $B$"$k$$$O$=$N<BAu$r=u$1$kGI@8E*:n6H$rMQ0U!&J#<L!&=PHG!&G[I[$9$k$3$H$O!">e5-$NCx:n8"I=<(5Z$S$3$N@a$rA4$F$NJ#<LJ*5Z$SGI@8E*:n6H$K4^$`8B$j$K$*$$$F!"$=$NA4It$G$"$l0lIt$G$"$l!"0l@Z$N@)8BL5$7$KG'$a$i$l$k!#$7$+$7!"$3$NJ8=q<+BN$O!"Cx:n8"I=<($"$k$$$O(B
1005 wakaba 1.1 Internet Society $BKt$OB>$N(B Internet
1006     $BAH?%$X$N8@5Z$r<h$j=|$/$J$I!"$$$+$J$kJ}K!$K$;$hJQ99$7$F$O$J$i$J$$!#C"$7!"(B
1007     Internet $BI8=`2=2aDx$GDj5A$5$l$?Cx:n8"$N$?$a$N<jB3$-$K=>$$(B
1008     Internet $BI8=`$r3+H/$9$kL\E*$KI,MW$J>l9g!"$"$k$$$O1Q8l0J30$N8@8l$KK]Lu$9$k$N$KI,MW$J>l9g$r=|$/!#(B
1009     </p>
1010     </div>
1011     </div>
1012    
1013     <div class="rfc-t">
1014 wakaba 1.2 <div class="t-pair t-hide-no">
1015     <p class="t-l-en" xml:lang="en">
1016 wakaba 1.1 The limited permissions granted above are perpetual and will
1017     not be revoked by the Internet Society or its successors or
1018     assigns.
1019     </p>
1020     <p class="t-l-ja" xml:lang="ja">
1021     $B>e5-$GG'$a$?$3$N@)8BIU$-5vBz$O915WE*$J$b$N$G$"$j!"(B
1022     Internet Society $B$b$7$/$O$=$N8e7Q<T$b$7$/$O$=$N>yEO<T$K$h$jGK4~$5$l$k$3$H$O$J$$!#(B
1023     </p>
1024     </div>
1025     </div>
1026    
1027     <div class="rfc-t">
1028 wakaba 1.2 <div class="t-pair t-hide-no">
1029     <p class="t-l-en" xml:lang="en">
1030 wakaba 1.1 This document and the information contained herein is provided
1031     on an $B!H(B<strong>AS IS</strong>$B!I(B basis and
1032     <strong>THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
1033     TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
1034     INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF
1035     THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY
1036     IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR
1037     A PARTICULAR PURPOSE</strong>.
1038     </p>
1039     <p class="t-l-ja" xml:lang="ja">
1040     $B$3$NJ8=q5Z$S$3$3$K4^$^$l$k>pJs$O!V(B<strong>$B8=>uM-;Q(B</strong>$B!W$GDs6!$5$l!"(B
1041     <strong>Internet Society $B$*$h$S(B
1042 wakaba 1.6 <a href="http://www.ietf.org/">Internet Engineering Task Force
1043     (Internet $B5;=QFCJLD4::0Q0w2q(B)</a>
1044     $B$O!"$3$3$K4^$^$l$k>pJs$N;HMQ$,$$$+$J$k8"Mx$r$b?/32$7$J$$$H$$$&J]>Z$^$?$O;T>l@-$"$k$$$OFCDjL\E*$X$NE,Ev@-$K$D$$$F$N0EL[E*J]>Z$r4^$`$,$3$l$K8B$i$J$$!"L@<($"$k$$$O0E<($K$h$k!"0l@Z$NJ]>Z$rH]G'$9$k(B</strong>$B!#(B
1045 wakaba 1.1 </p>
1046     </div>
1047     </div>
1048    
1049     <ins class="t-note t-l-ja" xml:lang="ja">
1050     <p class="rfc-t">
1051     (<span class="t-note-title">$BLuCm(B:</span>
1052     $B@5<0$JCx:n8"@<L@$O1Q8l$N86J8$N$_$G$"$j!"Lu<T$O0l@Z$NJ]>Z(B
1053     ($BK]LuJ8$,86J8$H87L)$K0lCW$7$F$$$k$+$r4^$`$,!"$3$l$K8BDj$5$l$J$$!#(B)
1054 wakaba 1.6 $B$r(B<strong title="NOT">$B$7$J$$(B</strong>$B!#(B<a href="#rfc-t-copyright">$BLuJ8$K$D$$$F$NCx:n8"@<L@(B</a>$B$b;2>H$;$h!#(B)
1055 wakaba 1.1 </p>
1056     </ins>
1057     </div>
1058     </s:when>
1059     </s:choose>
1060     </s:template>
1061    
1062     <s:template name="back-acknowledgement-editor">
1063     <s:choose>
1064     <s:when test="/rfc/@number &lt; 2560 and $show-rfc-acknowledgement-editor != 'yes'"></s:when>
1065     <s:when test="/rfc/@ipr and $show-rfc-acknowledgement-editor != 'yes'"></s:when>
1066     <s:when test="$show-rfc-acknowledgement-editor != 'no'">
1067     <div id="rfc-acknowledgement-editor" class="rfc-section">
1068     <div class="t-heading t-pair">
1069     <h1 xml:lang="en" class="t-l-en">Acknowledgement</h1>
1070     <h1 xml:lang="ja" class="t-l-ja">$B<U<-(B</h1>
1071     </div>
1072    
1073     <div class="rfc-t">
1074     <div class="t-pair">
1075     <p class="t-l-en" xml:lang="en">
1076     Funding for the
1077     <a href="http://www.rfceditor.org/">RFC editor</a>
1078     function is currently provided by the
1079     <a href="http://www.isoc.org/">Internet Society</a>.
1080     </p>
1081     <p class="t-l-ja" xml:lang="ja">
1082     <a href="http://www.rfceditor.org/" xml:lang="en">RFC
1083     $BJT=8<T(B</a>$B6HL3$N;q6b1g=u$O8=:_(B
1084     <a href="http://www.isoc.org/">Internet Society</a>
1085     $B$K$h$j9T$o$l$F$$$^$9!#(B
1086     </p>
1087     </div>
1088     </div>
1089     </div>
1090     </s:when>
1091     </s:choose>
1092     </s:template>
1093    
1094     <s:template match="ja:note">
1095     <ins class="t-note t-l-ja" xml:lang="ja">
1096 wakaba 1.5 <span class="t-note-title">$BLuCm(B: </span> <s:apply-templates />
1097 wakaba 1.1 </ins>
1098     </s:template>
1099    
1100     <s:template match="t//ja:note">
1101     <ins class="t-note t-l-ja" xml:lang="ja">
1102 wakaba 1.5 (<span class="t-note-title">$BLuCm(B: </span> <s:apply-templates />)
1103 wakaba 1.1 </ins>
1104     </s:template>
1105     <s:template match="preamble//ja:note">
1106     <ins class="t-note t-l-ja" xml:lang="ja">
1107     (<span class="t-note-title">$BLuCm(B:</span> <s:apply-templates />)
1108     </ins>
1109     </s:template>
1110     <s:template match="postamble//ja:note">
1111     <ins class="t-note t-l-ja" xml:lang="ja">
1112     (<span class="t-note-title">$BLuCm(B:</span> <s:apply-templates />)
1113     </ins>
1114     </s:template>
1115    
1116     <s:template match="ja:uri-ref">
1117     &lt;<a href="{@target}"><s:value-of select="@target" /></a>&gt;
1118     </s:template>
1119    
1120     <!-- "section" attribute is not supported yet. -->
1121     <s:template match="ja:link[@type = 'rfc']">
1122     <a>
1123     <s:attribute name="href"><s:value-of select="$uri-rfc-prefix" /><s:value-of select="@number" /></s:attribute>
1124     <s:attribute name="title">RFC <s:value-of select="@number" /></s:attribute>
1125 wakaba 1.3 <s:if test="not(node())">RFC <s:value-of select="@number" /></s:if>
1126 wakaba 1.1 <s:apply-templates />
1127     </a>
1128     </s:template>
1129     <s:template match="ja:link[@type = 'std']">
1130     <a>
1131     <s:attribute name="href"><s:value-of select="$uri-std-prefix" /><s:value-of select="@number" /></s:attribute>
1132     <s:attribute name="title">STD <s:value-of select="@number" /></s:attribute>
1133 wakaba 1.3 <s:if test="not(node())">STD <s:value-of select="@number" /></s:if>
1134 wakaba 1.1 <s:apply-templates />
1135     </a>
1136     </s:template>
1137    
1138 wakaba 1.6 <!-- Internet mail address [RFC2822]. Don't make HTML anchor
1139     because of spam:-) (But is this effective?) -->
1140     <s:template match="ja:mail">
1141     &lt;<s:apply-templates />&gt;
1142     </s:template>
1143    
1144     <!-- <ja:definition word="defined word">definition</ja:definition> -->
1145     <s:template match="ja:definition">
1146     <s:apply-templates />
1147     </s:template>
1148    
1149     <s:template match="ja:word">
1150     <s:variable name="word"><s:choose>
1151     <s:when test="@name"><s:value-of select="@name" /></s:when>
1152     <s:otherwise><s:value-of select="text()" /></s:otherwise>
1153     </s:choose></s:variable>
1154     <!-- We should check language of ja:definition and ja:word,
1155     but what stupid a function XPath's lang() is! -->
1156     <s:variable name="content"><s:choose>
1157     <s:when test="text()"><s:apply-templates /></s:when>
1158     <s:when test="//ja:definition[@word = $word]/@translation"><s:value-of select="//ja:definition[@word = $word]/@translation" /></s:when>
1159     <s:otherwise><s:value-of select="$word" /></s:otherwise>
1160     </s:choose></s:variable>
1161     <span title="{$content}: {normalize-space(//ja:definition[@word = $word])}" class="ja-word"><s:value-of select="$content" /></span>
1162     </s:template>
1163    
1164 wakaba 1.1 <s:template match="h:*">
1165     <s:element name="{local-name()}">
1166     <s:for-each select="@*">
1167     <s:attribute name="{name()}"><s:value-of select="." /></s:attribute>
1168     </s:for-each>
1169     <s:apply-templates />
1170     </s:element>
1171     </s:template>
1172    
1173     <s:template match="h:samp">
1174     <samp><s:for-each select="@*">
1175     <s:attribute name="{name()}"><s:value-of select="." /></s:attribute>
1176 wakaba 1.7 </s:for-each><s:choose>
1177     <s:when test="$autoquote-samp-element='no'"><s:apply-templates /></s:when>
1178     <s:otherwise>$B!H(B<s:apply-templates />$B!I(B</s:otherwise>
1179     </s:choose></samp>
1180 wakaba 1.5 </s:template>
1181     <s:template match="ja:l[@xml:lang = 'ja']//h:samp">
1182     <samp><s:for-each select="@*">
1183     <s:attribute name="{name()}"><s:value-of select="." /></s:attribute>
1184 wakaba 1.7 </s:for-each><s:choose>
1185     <s:when test="$autoquote-samp-element='no'"><s:apply-templates /></s:when>
1186     <s:otherwise>$B!V(B<s:apply-templates />$B!W(B</s:otherwise>
1187     </s:choose></samp>
1188 wakaba 1.1 </s:template>
1189    
1190 wakaba 1.3 <!-- $B8@8l>pJs$+$i0zMQId$rJ,$1$k$N$O87L)$K$O@5$7$/$"$j$^$;$s(B
1191     ($BMQ;z7O$b%A%'%C%/$7$J$$$H$$$1$^$;$s(B ($BF|K\8lMeGO;z$H$+(B
1192     $B$"$j$^$9$+$i!#(B)) $B$,!"$=$l$O$+$J$j$7$s$I$$$N$G!"(B
1193     $B6a;w$H$$$&$3$H$G!&!&!&(B -->
1194     <s:template match="h:q">
1195     <q><s:for-each select="@*">
1196     <s:attribute name="{name()}"><s:value-of select="." /></s:attribute>
1197     </s:for-each>$B!H(B<s:apply-templates />$B!I(B</q>
1198     </s:template>
1199 wakaba 1.5 <s:template match="ja:l[@xml:lang = 'ja']//h:q|ja:front//h:q|ja:back//h:q|ja:title//h:q">
1200 wakaba 1.3 <q><s:for-each select="@*">
1201     <s:attribute name="{name()}"><s:value-of select="." /></s:attribute>
1202     </s:for-each>$B!V(B<s:apply-templates />$B!W(B</q>
1203     </s:template>
1204    
1205 wakaba 1.7 <s:template match="h:ul[@ja:list-item]">
1206     <ul class="ja-list-item-{@ja:list-item}"><s:for-each select="@*">
1207     <s:attribute name="{name()}"><s:value-of select="." /></s:attribute>
1208     </s:for-each><s:apply-templates /></ul>
1209     </s:template>
1210    
1211 wakaba 1.1 <s:template match="abstract">
1212     <div class="rfc-section" id="rfc.abstract">
1213     <div class="t-pair t-heading">
1214     <h1 xml:lang="en" class="t-l-en">Abstract</h1>
1215     <h1 xml:lang="ja" class="t-l-ja">$B35MW(B</h1>
1216     </div>
1217     <s:apply-templates />
1218     </div>
1219     </s:template>
1220    
1221     <s:template match="author">
1222     <ul class="rfc-author">
1223     <s:if test="@fullname"><li class="rfc-author-fullname"><s:value-of select="@fullname" /></li></s:if>
1224 wakaba 1.5 <s:for-each select="organization|ja:organization"><li class="rfc-organization"><s:value-of select="text()" /></li></s:for-each>
1225 wakaba 1.1 <s:for-each select="(address/postal/street|address/postal/city|address/postal/region|address/postal/code|address/postal/country)">
1226 wakaba 1.4 <s:choose>
1227     <s:when test="@ja:show = 'no'"></s:when>
1228     <s:when test="@ja:text"><li class="rfc-{local-name()}"><s:value-of select="@ja:text" /></li></s:when>
1229     <s:otherwise><li class="rfc-{local-name()}"><s:value-of select="." /></li></s:otherwise>
1230     </s:choose>
1231 wakaba 1.1 </s:for-each>
1232     <s:if test="address/phone">
1233 wakaba 1.3 <li class="rfc-phone">$BEEOC(B: <s:choose>
1234     <s:when test="address/phone/@ja:text"><s:value-of select="address/phone/@ja:text" /></s:when>
1235     <s:otherwise><s:value-of select="address/phone" /></s:otherwise>
1236     </s:choose></li>
1237 wakaba 1.1 </s:if>
1238     <s:if test="address/facsimile">
1239 wakaba 1.3 <li class="rfc-facsimile">FAX: <s:choose>
1240     <s:when test="address/facsimile/@ja:text"><s:value-of select="address/facsimile/@ja:text" /></s:when>
1241     <s:otherwise><s:value-of select="address/facsimile" /></s:otherwise>
1242     </s:choose></li>
1243 wakaba 1.1 </s:if>
1244 wakaba 1.5 <s:for-each select="address/email|address/ja:email">
1245     <li class="rfc-email">$BEE;R%a%$%k(B: &lt;<a href="mailto:{text()}"><s:value-of select="text()" /></a>&gt;</li>
1246     </s:for-each>
1247 wakaba 1.1 <s:if test="address/uri">
1248     <li class="rfc-uri">URI: &lt;<a href="{address/uri}"><s:value-of select="address/uri" /></a>&gt;</li>
1249     </s:if>
1250     </ul>
1251     </s:template>
1252    
1253     <!-- based on rfc2629.xslt -->
1254     <s:template match="reference">
1255     <s:variable name="target">
1256     <s:choose>
1257     <s:when test="@target"><s:value-of select="@target" /></s:when>
1258     <s:when test="@ja:target"><s:value-of select="@ja:target" /></s:when>
1259     </s:choose>
1260     </s:variable>
1261    
1262     <dt id="{@anchor}"><s:call-template name="reference-name">
1263     <s:with-param name="node" select="." />
1264     </s:call-template></dt>
1265     <dd>
1266     <s:choose>
1267     <s:when test="string-length($target) &gt; 0">$B!X(B<cite><a href="{$target}" title="URI: &lt;{$target}&gt;"><s:value-of select="front/title" /></a></cite>$B!Y(B</s:when>
1268     <s:otherwise>$B!X(B<cite><s:value-of select="front/title" /></cite>$B!Y(B</s:otherwise>
1269     </s:choose>
1270     <s:if test="front/ja:title[@xml:lang='ja']">
1271     <span class="t-pair"><span xml:lang="ja" class="t-l-ja"><s:choose>
1272 wakaba 1.3 <s:when test="@ja:target-ja">, $B!X(B<cite><a href="{@ja:target-ja}" title="URI: &lt;{@ja:target-ja}&gt;"><s:value-of select="front/ja:title[@xml:lang='ja']" /></a></cite>$B!Y(B</s:when>
1273 wakaba 1.5 <s:otherwise>, $B!X(B<cite><s:value-of select="front/ja:title[@xml:lang='ja']" /></cite>$B!Y(B</s:otherwise>
1274 wakaba 1.1 </s:choose></span></span>
1275     </s:if>
1276    
1277 wakaba 1.5 <s:for-each select="front/author|front/ja:publisher">
1278 wakaba 1.1 <s:choose>
1279 wakaba 1.3 <s:when test="@ja:text">, <s:value-of select="@ja:text" /></s:when>
1280 wakaba 1.1 <s:when test="@surname and @fullname">, <span title="@fullname"><s:value-of select="concat(@surname,', ',@initials)" /></span></s:when>
1281     <s:when test="@surname">, <s:value-of select="concat(@surname,', ',@initials)" /></s:when>
1282     <s:when test="@fullname">, <s:value-of select="@fullname" /></s:when>
1283     </s:choose>
1284     </s:for-each>
1285    
1286     <s:for-each select="seriesInfo">
1287     <s:choose>
1288     <s:when test="not(@name) and not(@value) and ./text()">, <s:value-of select="." /></s:when>
1289 wakaba 1.5 <s:when test="@name='RFC'">, <a href="{concat($uri-rfc-prefix,@value)}" title="URI: &lt;{concat($uri-rfc-prefix,@value)}&gt;">RFC <s:value-of select="@value" /></a></s:when>
1290     <s:when test="@name='STD'">, <a href="{concat($uri-std-prefix,@value)}" title="URI: &lt;{concat($uri-std-prefix,@value)}&gt;">STD <s:value-of select="@value" /></a></s:when>
1291     <s:when test="@name='BCP'">, <a href="{concat($uri-bcp-prefix,@value)}" title="URI: &lt;{concat($uri-bcp-prefix,@value)}&gt;">BCP <s:value-of select="@value" /></a></s:when>
1292     <s:when test="@name='FYI'">, <a href="{concat($uri-fyi-prefix,@value)}" title="URI: &lt;{concat($uri-fyi-prefix,@value)}&gt;">FYI <s:value-of select="@value" /></a></s:when>
1293 wakaba 1.1 <s:otherwise>, <s:value-of select="@name" />
1294     &#xA0;<s:value-of select="@value" /></s:otherwise>
1295     </s:choose>
1296     </s:for-each>
1297    
1298 wakaba 1.3 <s:choose>
1299     <s:when test="@year">,
1300     <span class="t-pair"><span xml:lang="en" class="t-l-en">
1301 wakaba 1.1 <s:value-of select="front/date/@day" />
1302     &#xA0;<s:value-of select="front/date/@month" />&#xA0;
1303     <s:value-of select="front/date/@year" />.
1304     </span>, <span xml:lang="ja" class="t-l-ja">
1305     <s:value-of select="front/date/@year" />$BG/(B<s:call-template name="month-ja">
1306     <s:with-param name="month" select="front/date/@month" />
1307     </s:call-template><s:if test="front/date/@day"><s:value-of select="front/date/@day" />$BF|(B</s:if>$B!#(B
1308 wakaba 1.3 </span></span></s:when>
1309     <s:otherwise>$B!#(B</s:otherwise>
1310     </s:choose>
1311 wakaba 1.1
1312 wakaba 1.5 <s:if test="ja:add-info">
1313     <s:apply-templates select="ja:add-info" />
1314 wakaba 1.1 </s:if>
1315     </dd>
1316     </s:template>
1317    
1318 wakaba 1.5 <s:template match="ja:add-info">
1319     <span class="t-add-info"><s:apply-templates /></span>
1320     </s:template>
1321    
1322 wakaba 1.1 <!-- copied from rfc2629.xslt -->
1323     <s:template name="reference-name">
1324     <s:param name="node" />
1325    
1326     <s:choose>
1327 wakaba 1.5 <s:when test="$use-symbolic-reference='yes' and $node/@ja:text">[<s:value-of select="$node/@ja:text" />]</s:when>
1328 wakaba 1.1 <s:when test="$use-symbolic-reference='yes'">[<s:value-of select="$node/@anchor" />]</s:when>
1329     <s:otherwise><s:for-each select="$node">[<s:number />]</s:for-each></s:otherwise>
1330     </s:choose>
1331     </s:template>
1332    
1333     <s:template match="references">
1334 wakaba 1.6 <s:variable name="section-number">
1335     <s:choose>
1336     <s:when test="@ja:numbered"><s:call-template name="section-number" /></s:when>
1337     </s:choose>
1338     </s:variable>
1339    
1340 wakaba 1.1 <s:variable name="title"><s:choose>
1341     <s:when test="@title"><s:value-of select="@title" /></s:when>
1342     <s:otherwise>References</s:otherwise>
1343     </s:choose></s:variable>
1344     <s:variable name="title-ja"><s:choose>
1345     <s:when test="@ja:title-ja"><s:value-of select="@ja:title-ja" /></s:when>
1346     <s:when test="@title = '' or @title = 'References' or @title = 'Bibliography'">$B;29MJ88%(B</s:when>
1347 wakaba 1.6 <s:otherwise>$B;29MJ88%(B</s:otherwise>
1348 wakaba 1.1 </s:choose></s:variable>
1349    
1350 wakaba 1.6 <div class="rfc-section" id="rfc.references">
1351     <s:variable name="title-prefix"><s:value-of select="//ja:insert[@ja:section='references' or @section='references']/@ja:title-prefix" /></s:variable>
1352 wakaba 1.1
1353     <s:choose>
1354     <s:when test="$title-ja">
1355     <div class="t-pair t-heading">
1356 wakaba 1.6 <h1 xml:lang="en" class="t-l-en"><s:value-of select="$title-prefix" /><s:value-of select="$title" /></h1>
1357     <h1 xml:lang="ja" class="t-l-ja"><s:value-of select="$title-prefix" /><s:value-of select="$title-ja" /></h1>
1358 wakaba 1.1 </div>
1359     </s:when>
1360 wakaba 1.6 <s:otherwise><h1><s:value-of select="$title-prefix" /><s:value-of select="@title" /></h1></s:otherwise>
1361 wakaba 1.1 </s:choose>
1362     <dl><s:apply-templates /></dl>
1363     </div>
1364     </s:template>
1365    
1366     <!-- copied from rfc2629.xslt -->
1367     <s:template match="eref[node()]">
1368 wakaba 1.5 <a href="{@target}" title="URI: &lt;{@target}&gt;" class="rfc-eref"><s:apply-templates /></a>
1369     </s:template>
1370    
1371     <s:template match="eref[not(node())]">
1372     &lt;<a href="{@target}" class="rfc-eref"><s:value-of select="@target" /></a>&gt;
1373 wakaba 1.1 </s:template>
1374    
1375     <!-- copied from rfc2629.xslt -->
1376     <s:template match="iref">
1377     <span class="rfc-iref"><s:attribute name="id">rfc.iref.<s:number level="any"/></s:attribute>&#xA0;</span>
1378     </s:template>
1379    
1380     <s:template match="xref">
1381     <s:variable name="target" select="@target" />
1382 wakaba 1.3 <s:variable name="node" select="//*[@anchor=$target or @ja:anchor=$target]" />
1383 wakaba 1.1
1384     <span class="rfc-xref">
1385     <a href="#{$target}"><s:choose>
1386 wakaba 1.6 <s:when test="node()"><s:attribute name="title"><s:value-of select="normalize-space($node/front/title)" /></s:attribute><s:apply-templates />
1387 wakaba 1.1 <s:if test="/rfc/back/references/reference[@anchor=$target]">
1388     &#xA0;<sup><s:call-template name="reference-name">
1389     <s:with-param name="node" select="/rfc/back/references/reference[@anchor=$target]" />
1390     </s:call-template></sup></s:if></s:when>
1391     <s:when test="local-name($node)='section'"><s:for-each select="$node">
1392     <s:attribute name="title"><s:value-of select="@title" /></s:attribute>
1393     section <s:number level="multiple" />
1394     </s:for-each></s:when>
1395     <s:when test="local-name($node)='figure'">figure
1396     <s:for-each select="$node">
1397     <s:number level="any" count="figure[@title!='' or @anchor!='']" />
1398     </s:for-each></s:when>
1399 wakaba 1.3 <s:when test="$node/@hangText"><s:value-of select="$node/@hangText" /></s:when>
1400 wakaba 1.1 <s:otherwise>
1401     <s:attribute name="title"><s:value-of select="normalize-space($node/front/title)" /></s:attribute>
1402     <s:call-template name="reference-name">
1403     <s:with-param name="node" select="/rfc/back/references/reference[@anchor=$target]" />
1404     </s:call-template>
1405     </s:otherwise>
1406     </s:choose></a>
1407     </span>
1408     </s:template>
1409     <s:template match="ja:l[@xml:lang = 'ja']//xref|ja:front//xref|ja:back//xref">
1410     <s:variable name="target" select="@target" />
1411 wakaba 1.3 <s:variable name="node" select="//*[@anchor=$target or @ja:anchor=$target]" />
1412 wakaba 1.1
1413     <a href="#{$target}"><s:choose>
1414     <s:when test="node()"><s:attribute name="title"><s:choose>
1415 wakaba 1.6 <s:when test="$node/front/ja:title[@xml:lang='ja']"><s:value-of select="normalize-space($node/front/ja:title[@xml:lang='ja'])" /></s:when>
1416     <s:otherwise><s:value-of select="normalize-space($node/front/title)" /></s:otherwise>
1417 wakaba 1.1 </s:choose></s:attribute><s:apply-templates />
1418     <s:if test="/rfc/back/references/reference[@anchor=$target]">
1419     &#xA0;<sup><s:call-template name="reference-name">
1420     <s:with-param name="node" select="/rfc/back/references/reference[@anchor=$target]" />
1421     </s:call-template></sup></s:if></s:when>
1422     <s:when test="local-name($node)='section' and $node/ancestor::back"><s:for-each select="$node">
1423     <s:attribute name="title"><s:call-template name="section-name-ja">
1424     <s:with-param name="node" select="$node" />
1425     <s:with-param name="return-en" select="'yes'" />
1426     </s:call-template></s:attribute>
1427     $BImB0=q(B<s:number level="multiple" format="A.1.1.1.1.1.1.1" />
1428     </s:for-each></s:when>
1429     <s:when test="local-name($node)='section'"><s:for-each select="$node">
1430     <s:attribute name="title"><s:call-template name="section-name-ja">
1431     <s:with-param name="node" select="$node" />
1432     <s:with-param name="return-en" select="yes" />
1433     </s:call-template></s:attribute>
1434     <s:number level="multiple" />$B@a(B</s:for-each></s:when>
1435     <s:when test="local-name($node)='figure'">$B?^(B<s:for-each select="$node">
1436     <s:number level="any" count="figure[@title!='' or @anchor!='']" />
1437     </s:for-each></s:when>
1438 wakaba 1.3 <s:when test="$node/@ja:hangText-ja"><s:value-of select="$node/@ja:hangText-ja" /></s:when>
1439     <s:when test="$node/@hangText"><s:value-of select="$node/@hangText" /></s:when>
1440 wakaba 1.1 <s:otherwise>
1441     <s:choose>
1442 wakaba 1.6 <s:when test="$node/front/ja:title[@xml:lang='ja']"><s:attribute name="title"><s:value-of select="normalize-space($node/front/ja:title[@xml:lang='ja'])" /></s:attribute></s:when>
1443     <s:otherwise><s:attribute name="title"><s:value-of select="normalize-space($node/front/title)" /></s:attribute></s:otherwise>
1444 wakaba 1.1 </s:choose>
1445     <s:call-template name="reference-name">
1446     <s:with-param name="node" select="/rfc/back/references/reference[@anchor=$target]" />
1447     </s:call-template>
1448     </s:otherwise>
1449     </s:choose></a>
1450     </s:template>
1451    
1452     <!-- from rfc2629.xslt: mark unmatched elements red -->
1453     <s:template match="*">
1454     <span style="color: red">&lt;<s:value-of select="name()" />&gt;</span>
1455     <s:copy><s:apply-templates select="node()|@*" /></s:copy>
1456     <span style="color: red">&lt;/<s:value-of select="name()" />&gt;</span>
1457     </s:template>
1458    
1459     <!-- translation:back -->
1460    
1461     <s:template name="translation-back">
1462     <ins id="rfc-translators-note" class="t-note t-l-ja" xml:lang="ja">
1463     <s:for-each select="/rfc/ja:back/section">
1464     <s:apply-templates select="." />
1465     </s:for-each>
1466     <s:apply-templates select="/rfc/ja:front/ja:change" />
1467     <div class="rfc-section" id="rfc-t-copyright">
1468     <h1>$BLuJ8$K$D$$$F$NCx:n8"@<L@(B</h1>
1469     <s:apply-templates select="/rfc/ja:front/ja:copyright" />
1470    
1471 wakaba 1.3 <s:choose>
1472     <s:when test="/rfc/ja:front/ja:copyright/ja:full-statement"></s:when>
1473     <s:when test="/rfc/@ipr = 'none'"></s:when>
1474     <s:when test="/rfc/@number &lt; 2220">
1475     <p>$B$3$NK]LuJ8$O!"<+M3$KJ#@=!&G[I[!&2~JQ$7$F9=$$$^$;$s!#(B
1476     (rfc-copyright-story $B$b;2>H$7$F2<$5$$!#(B)</p>
1477     </s:when>
1478     <s:when test="$show-rfc-copyright != 'no'">
1479     <p><a href="#rfc-copyright">$B86J8$NCx:n8"@<L@(B</a>$B$,!"LuJ8$K$D$$$F$bF1MM$KE,MQ$5$l$^$9!#(B</p>
1480     <p>$B$^$?!"2~Lu$=$NB>$N86J8$NCx:n8"@<L@$KH?$7$J$$HO0O$K$*$1$k2~JQ$O!"0l@Z$N5v2DL5$/9T$C$F9=$$$^$;$s!#(B</p>
1481     </s:when>
1482     </s:choose>
1483 wakaba 1.1 </div>
1484     </ins>
1485     </s:template>
1486    
1487     <s:template match="ja:change">
1488     <div class="rfc-section" id="t-change">
1489     <h1>$BK]Lu$NJQ99MzNr(B</h1>
1490    
1491     <dl>
1492     <s:for-each select="ja:item"><s:apply-templates select="." /></s:for-each>
1493     </dl>
1494     </div>
1495     </s:template>
1496    
1497     <s:template match="ja:change/ja:item">
1498 wakaba 1.6 <dt><s:choose>
1499     <s:when test="@year"><s:value-of select="concat(@year,'-',@month,'-',@day,' ')" /></s:when>
1500     <s:when test="@ja:year"><s:value-of select="concat(@ja:year,'-',@ja:month,'-',@ja:day,' ')" /></s:when>
1501     </s:choose>
1502 wakaba 1.1 <s:variable name="author-id" select="author/@ja:ref" />
1503     <s:variable name="name"><s:choose>
1504     <s:when test="$author-id and /rfc/ja:front/author[@ja:id = $author-id]"><s:value-of select="/rfc/ja:front/author[@ja:id = $author-id]/@fullname" /></s:when>
1505     <s:when test="$author-id and /rfc/front/author[@ja:id = $author-id]"><s:value-of select="/rfc/front/author[@ja:id = $author-id]/@fullname" /></s:when>
1506     <s:otherwise><s:value-of select="author/@fullname" /></s:otherwise>
1507     </s:choose></s:variable>
1508     <s:variable name="mail"><s:choose>
1509     <s:when test="$author-id and /rfc/ja:front/author[@ja:id = $author-id]"><s:value-of select="/rfc/ja:front/author[@ja:id = $author-id]/address/email" /></s:when>
1510     <s:when test="$author-id and /rfc/front/author[@ja:id = $author-id]"><s:value-of select="/rfc/front/author[@ja:id = $author-id]/address/email" /></s:when>
1511     <s:otherwise><s:value-of select="author/address/email" /></s:otherwise>
1512     </s:choose></s:variable>
1513     <s:variable name="uri"><s:choose>
1514     <s:when test="$author-id and /rfc/ja:front/author[@ja:id = $author-id]"><s:value-of select="/rfc/ja:front/author[@ja:id = $author-id]/address/uri" /></s:when>
1515     <s:when test="$author-id and /rfc/front/author[@ja:id = $author-id]"><s:value-of select="/rfc/front/author[@ja:id = $author-id]/address/uri" /></s:when>
1516     <s:otherwise><s:value-of select="author/address/uri" /></s:otherwise>
1517     </s:choose></s:variable>
1518    
1519     <s:choose>
1520     <s:when test="$mail != ''"><a href="mailto:{$mail}" title="$BEE;R%a%$%k(B: &lt;{$mail}&gt;"><s:value-of select="$name" /></a></s:when>
1521     <s:when test="$uri != ''"><a href="{$uri}" title="URI: &lt;{$uri}&gt;"><s:value-of select="$name" /></a></s:when>
1522     <s:otherwise><s:value-of select="$name" /></s:otherwise>
1523     </s:choose>
1524     </dt>
1525     <dd><ul><s:for-each select="t"><s:apply-templates select="." /></s:for-each></ul></dd>
1526     </s:template>
1527    
1528     <s:template match="ja:change/ja:item/t">
1529     <li><s:apply-templates /></li>
1530     </s:template>
1531     <s:template match="ja:change/ja:item/t/ja:section">
1532     <span class="t-change-section">(<s:apply-templates />)</span>:
1533     </s:template>
1534    
1535     <s:template match="ja:copyright">
1536     <ul>
1537     <s:for-each select="ja:item">
1538     <s:apply-templates select="." />
1539     </s:for-each>
1540     </ul>
1541     </s:template>
1542     <s:template match="ja:copyright/ja:item">
1543     <li><s:apply-templates /></li>
1544     </s:template>
1545    
1546     <s:template name="footer">
1547    
1548     </s:template>
1549    
1550     </s:stylesheet>
1551 wakaba 1.6 <!-- rfc-ja.xsl *** RFC 2629 + $BF|K\8lLu(B XML $B7A<0(B $B"*(B XHTML 1.1
1552 wakaba 1.1 XSLT $B%9%?%$%k%7!<%H(B
1553 wakaba 1.7 $Date: 2002/07/26 11:58:31 $
1554 wakaba 1.1 -->
1555     <!-- $B<U<-(B
1556     $B$3$N(B XSLT $B$O!"(B xml2rfc 1.12 package $B$N(B rfc2629.xslt $B$+$i(B
1557     $B4v$D$+$NItJ,$r<ZMQ$7$F$$$^$9!#(B
1558    
1559     > XSLT transformation from RFC2629 XML format to HTML
1560     >
1561     > Copyright (c) 2001 Julian F. Reschke (julian.reschke@greenbytes.de)
1562     >
1563     > placed into the public domain
1564     -->
1565     <!-- TODO:
1566     $B!&:w0zIU$1$KBP1~(B
1567     $B!&L\<!@8@.$KBP1~(B
1568     -->
1569     <!-- SEE ALSO
1570     $B!&(B<urn:ietf:rfc:2629>
1571     $B!&(B<http://suika.fam.cx/~wakaba/lang/rfc/translation/>
1572     $B!&(B<http://suika.fam.cx/~wakaba/document/rfc-ja/>
1573     -->
1574     <!-- LICENSE
1575    
1576     Copyright 2002 wakaba <w@suika.fam.cx>.
1577    
1578     This program is free software; you can redistribute it and/or modify
1579     it under the terms of the GNU General Public License as published by
1580     the Free Software Foundation; either version 2 of the License, or
1581     (at your option) any later version.
1582    
1583     This program is distributed in the hope that it will be useful,
1584     but WITHOUT ANY WARRANTY; without even the implied warranty of
1585     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1586     GNU General Public License for more details.
1587    
1588     You should have received a copy of the GNU General Public License
1589     along with this program; see the file COPYING. If not, write to
1590     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
1591     Boston, MA 02111-1307, USA.
1592    
1593     -->
1594     <!-- rfc-ja.xsl ends here -->

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24