/[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.6 - (hide annotations) (download) (as text)
Fri Jul 26 11:58:31 2002 UTC (22 years, 3 months ago) by wakaba
Branch: MAIN
Changes since 1.5: +109 -45 lines
File MIME type: application/xml
2002-07-25  Wakaba <w@suika.fam.cx>

	* rfc_ja.xsl:
	- (ja:mail, ja:word, ja:definition): New elements.
	- Yes, I know XSLT is not a schemer:-)

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24