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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24