source: rfc2629xslt/samples/sample.ipr.rfc.201001.ietf.exp.nc.test.xhtml @ 2734

Last change on this file since 2734 was 2734, checked in by julian.reschke@…, 6 years ago

update XSLTs, switch to Saxon 9.6 HE in Makefile, regen specs

  • Property svn:eol-style set to native
File size: 12.0 KB
RevLine 
[1276]1<?xml version="1.0" encoding="UTF-8"?>
2
3<!DOCTYPE html
4  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
5<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
[2365]6   <head profile="http://dublincore.org/documents/2008/08/04/dc-html/">
[1276]7      <title>IETF Experimental w/o consensus</title>
[2734]8      <script>
9function getMeta(rfcno, container) {
10
11  var xhr = new XMLHttpRequest();
12  xhr.open("GET", "http://tools.ietf.org/draft/rfc" + rfcno + "/state.xml", true);
13  xhr.onload = function (e) {
14    if (xhr.readyState === 4) {
15      if (xhr.status === 200) {
16        var doc = xhr.responseXML;
17        var info = getChildByName(doc.documentElement, "info");
18 
19        var cont = document.getElementById(container);
20        // empty the container
21        while (cont.firstChild) {
22          cont.removeChild(myNode.firstChild);
23        }     
24 
25        var c = getChildByName(info, "stdstatus");
26        if (c !== null) {
27          var bld = newElementWithText("b", c.textContent);
28          cont.appendChild(bld);
29        }
30 
31        c = getChildByName(info, "updatedby");
32        if (c !== null) {
33          cont.appendChild(newElement("br"));
34          cont.appendChild(newText("Updated by: "));
35          appendRfcLinks(cont, c.textContent);
36        }
37 
38        c = getChildByName(info, "obsoletedby");
39        if (c !== null) {
40          cont.appendChild(newElement("br"));
41          cont.appendChild(newText("Obsoleted by: "));
42          appendRfcLinks(cont, c.textContent);
43        }
44       
45        c = getChildByName(info, "errata");
46        if (c !== null) {
47          cont.appendChild(newElement("br"));
48          var link = newElementWithText("a", "errata");
49          link.setAttribute("href", "http://www.rfc-editor.org/errata_search.php?rfc=" + rfcno);
50          var errata = newElementWithText("i", "This document has ");
51          errata.appendChild(link);
52          errata.appendChild(newText("."));
53          cont.appendChild(errata);
54        }
55
56        cont.style.display = "block";
57      } else {
58        console.error(xhr.statusText);
59      }
60    }
61  };
62  xhr.onerror = function (e) {
63    console.error(xhr.status + " " + xhr.statusText);
64  };
65  xhr.send(null);
66}
67
68// DOM helpers
69function newElement(name) {
70  return document.createElement(name);
71}
72function newElementWithText(name, txt) {
73  var e = document.createElement(name);
74  e.appendChild(newText(txt));
75  return e;
76}
77function newText(text) {
78  return document.createTextNode(text);
79}
80
81function getChildByName(parent, name) {
82  if (parent === null) {
83    return null;
84  }
85  else {
86    for (var c = parent.firstChild; c !== null; c = c.nextSibling) {
87      if (name == c.nodeName) {
88        return c;
89      }
90    }
91    return null;
92  }
93}
94
95function appendRfcLinks(parent, text) {
96  var updates = text.split(",");
97  for (var i = 0; i &lt; updates.length; i++) {
98    var rfc = updates[i].trim();
99    if (rfc.substring(0, 3) == "rfc") {
100      var link = newElement("a");
101      link.setAttribute("href", "http://tools.ietf.org/html/" + rfc);
102      link.appendChild(newText(rfc.substring(3)));
103      parent.appendChild(link);
104    } else {
105      parent.appendChild(newText(rfc));
106    }
107    if (i != updates.length - 1) {
108      parent.appendChild(newText(", "));
109    }
110  }
111}
112</script>
[1276]113      <style type="text/css" title="Xml2Rfc (sans serif)">
114a {
115  text-decoration: none;
116}
117a.smpl {
118  color: black;
119}
120a:hover {
121  text-decoration: underline;
122}
123a:active {
124  text-decoration: underline;
125}
126address {
127  margin-top: 1em;
128  margin-left: 2em;
129  font-style: normal;
130}
131body {
132  color: black;
[2734]133  font-family: cambria, georgia, serif;
134  font-size: 12pt;
135  margin: 2em auto;
136  max-width: 1000px;
[1276]137}
[2734]138samp, tt, code, pre {
139  font-family: consolas, monaco, monospace;
140}
[1276]141cite {
142  font-style: normal;
143}
144dl {
145  margin-left: 2em;
146}
[2734]147dl &gt; dt {
148  float: left;
149  margin-right: 1em;
150}
151dl.nohang &gt; dt {
152  float: none;
153}
154dl &gt; dd {
155  margin-bottom: .5em;
156}
157dl.compact &gt; dd {
158  margin-bottom: .0em;
159}
160dl &gt; dd &gt; dl {
161  margin-top: 0.5em;
162}
[1276]163ul.empty {
164  list-style-type: none;
165}
166ul.empty li {
167  margin-top: .5em;
168}
169dl p {
170  margin-left: 0em;
171}
172h1 {
[2418]173  font-size: 130%;
[1276]174  line-height: 21pt;
175  page-break-after: avoid;
176}
177h1.np {
178  page-break-before: always;
179}
180h2 {
[2418]181  font-size: 120%;
[1276]182  line-height: 15pt;
183  page-break-after: avoid;
184}
[2501]185h3 {
[2418]186  font-size: 110%;
[1276]187  page-break-after: avoid;
188}
[2501]189h4, h5, h6 {
190  page-break-after: avoid;
191}
[2418]192h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
[1276]193  color: black;
194}
195img {
196  margin-left: 3em;
197}
198li {
199  margin-left: 2em;
200}
201ol {
202  margin-left: 2em;
203}
204ol.la {
205  list-style-type: lower-alpha;
206}
207ol.ua {
208  list-style-type: upper-alpha;
209}
210ol p {
211  margin-left: 0em;
212}
213p {
214  margin-left: 2em;
215}
216pre {
[2734]217  font-size: 11pt;
[1276]218  margin-left: 3em;
219  background-color: lightyellow;
220  padding: .25em;
[1667]221  page-break-inside: avoid;
[1276]222}
223pre.text2 {
224  border-style: dotted;
225  border-width: 1px;
226  background-color: #f0f0f0;
227}
228pre.inline {
229  background-color: white;
230  padding: 0em;
[2734]231  page-break-inside: auto;
[1276]232}
233pre.text {
234  border-style: dotted;
235  border-width: 1px;
236  background-color: #f8f8f8;
237}
238pre.drawing {
239  border-style: solid;
240  border-width: 1px;
241  background-color: #f8f8f8;
242  padding: 2em;
243}
244table {
245  margin-left: 2em;
246}
247table.header {
248  border-spacing: 1px;
249  width: 95%;
[2418]250  font-size: 11pt;
[1276]251  color: white;
252}
253td.top {
254  vertical-align: top;
255}
256td.topnowrap {
257  vertical-align: top;
[2272]258  white-space: nowrap;
[1276]259}
260table.header td {
261  background-color: gray;
262  width: 50%;
263}
264td.reference {
265  vertical-align: top;
266  white-space: nowrap;
267  padding-right: 1em;
268}
269thead {
270  display:table-header-group;
271}
272ul.toc, ul.toc ul {
273  list-style: none;
274  margin-left: 1.5em;
275  padding-left: 0em;
276}
277ul.toc li {
278  line-height: 150%;
279  font-weight: bold;
280  margin-left: 0em;
281}
282ul.toc li li {
283  line-height: normal;
284  font-weight: normal;
[2734]285  font-size: 11pt;
[1276]286  margin-left: 0em;
287}
288li.excluded {
289  font-size: 0pt;
290}
291ul p {
292  margin-left: 0em;
293}
[2418]294.title, .filename, h1, h2, h3, h4 {
[2734]295  font-family: candara, calibri, segoe, optima, arial, sans-serif;
[2418]296}
[1276]297
298.comment {
299  background-color: yellow;
300}
301.center {
302  text-align: center;
303}
304.error {
305  color: red;
306  font-style: italic;
307  font-weight: bold;
308}
309.figure {
310  font-weight: bold;
311  text-align: center;
[2418]312  font-size: 10pt;
[1276]313}
314.filename {
315  color: #333333;
[2418]316  font-size: 75%;
[1276]317  font-weight: bold;
318  line-height: 21pt;
319  text-align: center;
320}
321.fn {
322  font-weight: bold;
323}
324.left {
325  text-align: left;
326}
327.right {
328  text-align: right;
329}
330.title {
[2418]331  color: green;
332  font-size: 150%;
[1276]333  line-height: 18pt;
334  font-weight: bold;
335  text-align: center;
336  margin-top: 36pt;
337}
338.warning {
[2418]339  font-size: 130%;
[1276]340  background-color: yellow;
341}
[2734]342.self {
343    color: #999999;
344    margin-left: .3em;
345    text-decoration: none;
346    visibility: hidden;
347    -webkit-user-select: none;
348    -moz-user-select: none;
349    -ms-user-select: none;
350}
351.self:hover {
352    text-decoration: none;
353}
354p:hover .self {
355    visibility: visible;
356}
[1276]357
[2734]358@media screen {
359  pre.text, pre.text2 {
360    width: 69em;
361  }
362}
[1276]363
364@media print {
365  .noprint {
366    display: none;
367  }
[2272]368
[1276]369  a {
370    color: black;
371    text-decoration: none;
372  }
373
374  table.header {
375    width: 90%;
376  }
377
378  td.header {
379    width: 50%;
380    color: black;
381    background-color: white;
382    vertical-align: top;
[2418]383    font-size: 110%;
[1276]384  }
385
[2734]386  ul.toc a:last-child::after {
[1276]387    content: leader('.') target-counter(attr(href), page);
388  }
[2272]389
[1276]390  ul.ind li li a {
391    content: target-counter(attr(href), page);
392  }
[2272]393
[2734]394  pre {
395    font-size: 10pt;
396  }
397
[1276]398  .print2col {
399    column-count: 2;
[1528]400    -moz-column-count: 2;
[1276]401    column-fill: auto;
402  }
403}
404
405@page {
406  @top-left {
[2272]407       content: "RFC 9999";
408  }
[1276]409  @top-right {
[2272]410       content: "January 2010";
411  }
[1276]412  @top-center {
[2272]413       content: "IETF Experimental w/o consensus";
414  }
[1276]415  @bottom-left {
[2272]416       content: "Doe";
417  }
[1276]418  @bottom-center {
[2272]419       content: "Experimental";
420  }
[1276]421  @bottom-right {
[2272]422       content: "[Page " counter(page) "]";
423  }
[1276]424}
425
[2272]426@page:first {
[1276]427    @top-left {
428      content: normal;
429    }
430    @top-right {
431      content: normal;
432    }
433    @top-center {
434      content: normal;
435    }
436}
437</style>
438      <link rel="Author" href="#rfc.authors"/>
439      <link rel="Copyright" href="#rfc.copyrightnotice"/>
440      <link rel="Chapter" title="1 Dummy Section" href="#rfc.section.1"/>
441      <link rel="Alternate" title="Authorative ASCII Version" href="http://www.ietf.org/rfc/rfc9999.txt"/>
442      <link rel="Help" title="RFC-Editor's Status Page" href="http://www.rfc-editor.org/info/rfc9999"/>
443      <link rel="Help" title="Additional Information on tools.ietf.org" href="http://tools.ietf.org/html/rfc9999"/>
444      <link rel="schema.dct" href="http://purl.org/dc/terms/"/>
445      <meta name="dct.creator" content="Doe, J."/>
446      <meta name="dct.identifier" content="urn:ietf:rfc:9999"/>
447      <meta name="dct.issued" scheme="ISO8601" content="2010-01"/>
448      <meta name="dct.abstract" content="Dummy Abstract."/>
449      <meta name="dct.isPartOf" content="urn:issn:2070-1721"/>
450      <meta name="description" content="Dummy Abstract."/>
451   </head>
[2734]452   <body onload="getMeta(9999,&#34;rfc.meta&#34;);">
453      <table class="header" id="rfc.headerblock">
[1276]454         <tbody>
455            <tr>
456               <td class="left">Internet Engineering Task Force (IETF)</td>
457               <td class="right">J. Doe</td>
458            </tr>
459            <tr>
460               <td class="left">Request for Comments: 9999</td>
461               <td class="right">January 2010</td>
462            </tr>
463            <tr>
464               <td class="left">Category: Experimental</td>
465               <td class="right"/>
466            </tr>
467            <tr>
468               <td class="left">ISSN: 2070-1721</td>
469               <td class="right"/>
470            </tr>
471         </tbody>
472      </table>
[2734]473      <p class="title" id="rfc.title">IETF Experimental w/o consensus</p>
[1276]474      <h1 id="rfc.abstract">
475         <a href="#rfc.abstract">Abstract</a>
[2272]476      </h1>
477      <p>Dummy Abstract.</p>
[2734]478      <div id="rfc.meta" style="float: right; border: 1px solid black; margin: 2em; padding: 1em; display: none;"/>
[2418]479      <div id="rfc.status">
480         <h1>
481            <a href="#rfc.status">Status of This Memo</a>
482         </h1>
483         <p>This document is not an Internet Standards Track specification; it is published for examination, experimental implementation, and evaluation.</p>
484         <p>This document defines an Experimental Protocol for the Internet community. This document is a product of the Internet Engineering Task Force (IETF). It has been approved for publication by the Internet Engineering Steering Group (IESG). Not all documents approved by the IESG are a candidate for any level of Internet Standard; see Section 2 of RFC 5741.</p>
485         <p>Information about the current status of this document, any errata, and how to provide feedback on it may be obtained at <a href="http://www.rfc-editor.org/info/rfc9999">http://www.rfc-editor.org/info/rfc9999</a>.</p>
486      </div>
487      <div id="rfc.copyrightnotice">
488         <h1>
489            <a href="#rfc.copyrightnotice">Copyright Notice</a>
490         </h1>
491         <p>Copyright © 2010 IETF Trust and the persons identified as the document authors. All rights reserved.</p>
492         <p>This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.</p>
493      </div>
494      <div>
495         <h1 id="rfc.section.1" class="np">
496            <a href="#rfc.section.1">1.</a> Dummy Section</h1>
[2734]497         <div id="rfc.section.1.p.1">
498            <p>Dummy Section.<a class="self" href="#rfc.section.1.p.1">¶</a>
499            </p>
500         </div>
[2418]501      </div>
[2734]502      <div class="avoidbreakinside">
[1276]503         <h1 id="rfc.authors">
504            <a href="#rfc.authors">Author's Address</a>
505         </h1>
[2418]506         <p>
507            <b>John Doe</b>
508         </p>
[1276]509      </div>
510   </body>
511</html>
Note: See TracBrowser for help on using the repository browser.