/[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.4 - (hide annotations) (download) (as text)
Thu May 9 09:54:06 2002 UTC (22 years, 6 months ago) by wakaba
Branch: MAIN
Changes since 1.3: +6 -5 lines
File MIME type: application/xml
2002-05-09  wakaba <w@suika.fam.cx>

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24