source: rfc2629xslt/samples/sample.ipr.rfc.200907.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: 11.0 KB
Line 
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">
6   <head profile="http://dublincore.org/documents/2008/08/04/dc-html/">
7      <title>Default RFC IPR as of July 2009</title>
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>
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;
133  font-family: cambria, georgia, serif;
134  font-size: 12pt;
135  margin: 2em auto;
136  max-width: 1000px;
137}
138samp, tt, code, pre {
139  font-family: consolas, monaco, monospace;
140}
141cite {
142  font-style: normal;
143}
144dl {
145  margin-left: 2em;
146}
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}
163ul.empty {
164  list-style-type: none;
165}
166ul.empty li {
167  margin-top: .5em;
168}
169dl p {
170  margin-left: 0em;
171}
172h1 {
173  font-size: 130%;
174  line-height: 21pt;
175  page-break-after: avoid;
176}
177h1.np {
178  page-break-before: always;
179}
180h2 {
181  font-size: 120%;
182  line-height: 15pt;
183  page-break-after: avoid;
184}
185h3 {
186  font-size: 110%;
187  page-break-after: avoid;
188}
189h4, h5, h6 {
190  page-break-after: avoid;
191}
192h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
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 {
217  font-size: 11pt;
218  margin-left: 3em;
219  background-color: lightyellow;
220  padding: .25em;
221  page-break-inside: avoid;
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;
231  page-break-inside: auto;
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%;
250  font-size: 11pt;
251  color: white;
252}
253td.top {
254  vertical-align: top;
255}
256td.topnowrap {
257  vertical-align: top;
258  white-space: nowrap;
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;
285  font-size: 11pt;
286  margin-left: 0em;
287}
288li.excluded {
289  font-size: 0pt;
290}
291ul p {
292  margin-left: 0em;
293}
294.title, .filename, h1, h2, h3, h4 {
295  font-family: candara, calibri, segoe, optima, arial, sans-serif;
296}
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;
312  font-size: 10pt;
313}
314.filename {
315  color: #333333;
316  font-size: 75%;
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 {
331  color: green;
332  font-size: 150%;
333  line-height: 18pt;
334  font-weight: bold;
335  text-align: center;
336  margin-top: 36pt;
337}
338.warning {
339  font-size: 130%;
340  background-color: yellow;
341}
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}
357
358@media screen {
359  pre.text, pre.text2 {
360    width: 69em;
361  }
362}
363
364@media print {
365  .noprint {
366    display: none;
367  }
368
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;
383    font-size: 110%;
384  }
385
386  ul.toc a:last-child::after {
387    content: leader('.') target-counter(attr(href), page);
388  }
389
390  ul.ind li li a {
391    content: target-counter(attr(href), page);
392  }
393
394  pre {
395    font-size: 10pt;
396  }
397
398  .print2col {
399    column-count: 2;
400    -moz-column-count: 2;
401    column-fill: auto;
402  }
403}
404
405@page {
406  @top-left {
407       content: "RFC 9999";
408  }
409  @top-right {
410       content: "July 2009";
411  }
412  @top-center {
413       content: "default RFC IPR example";
414  }
415  @bottom-left {
416       content: "Doe";
417  }
418  @bottom-center {
419       content: "Informational";
420  }
421  @bottom-right {
422       content: "[Page " counter(page) "]";
423  }
424}
425
426@page:first {
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="2009-07"/>
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>
452   <body onload="getMeta(9999,&#34;rfc.meta&#34;);">
453      <table class="header" id="rfc.headerblock">
454         <tbody>
455            <tr>
456               <td class="left">Network Working Group</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">July 2009</td>
462            </tr>
463            <tr>
464               <td class="left">Category: Informational</td>
465               <td class="right"/>
466            </tr>
467         </tbody>
468      </table>
469      <p class="title" id="rfc.title">Default RFC IPR as of July 2009</p>
470      <h1 id="rfc.abstract">
471         <a href="#rfc.abstract">Abstract</a>
472      </h1>
473      <p>Dummy Abstract.</p>
474      <div id="rfc.meta" style="float: right; border: 1px solid black; margin: 2em; padding: 1em; display: none;"/>
475      <div id="rfc.status">
476         <h1>
477            <a href="#rfc.status">Status of this Memo</a>
478         </h1>
479         <p>This memo provides information for the Internet community. It does not specify an Internet standard of any kind. Distribution of this memo is unlimited.</p>
480      </div>
481      <div id="rfc.copyrightnotice">
482         <h1>
483            <a href="#rfc.copyrightnotice">Copyright Notice</a>
484         </h1>
485         <p>Copyright © 2009 IETF Trust and the persons identified as the document authors. All rights reserved.</p>
486         <p>This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents in effect on the date of publication of this document (<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>). Please review these documents carefully, as they describe your rights and restrictions with respect to this document.</p>
487      </div>
488      <div>
489         <h1 id="rfc.section.1" class="np">
490            <a href="#rfc.section.1">1.</a> Dummy Section</h1>
491         <div id="rfc.section.1.p.1">
492            <p>Dummy Section.<a class="self" href="#rfc.section.1.p.1">¶</a>
493            </p>
494         </div>
495      </div>
496      <div class="avoidbreakinside">
497         <h1 id="rfc.authors">
498            <a href="#rfc.authors">Author's Address</a>
499         </h1>
500         <p>
501            <b>John Doe</b>
502         </p>
503      </div>
504   </body>
505</html>
Note: See TracBrowser for help on using the repository browser.