| 1 |
wakaba |
1.1 |
<?xml version="1.0" encoding="iso-2022-jp"?> |
| 2 |
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"> |
| 3 |
|
|
<head> |
| 4 |
|
|
<title>disdump.ja.xsl $B$K$h$kJQ49$N%F%9%H(B</title> |
| 5 |
|
|
<link rel="stylesheet" href="../style/disdump-style.css" media="all"/> |
| 6 |
|
|
|
| 7 |
|
|
<script type="text/javascript"> |
| 8 |
|
|
<![CDATA[ |
| 9 |
|
|
var sourceDocumentURI = '../doc.xml'; |
| 10 |
|
|
var stylesheetDocumentURI = '../template/disdump.ja.xsl'; |
| 11 |
|
|
var ddlistStylesheetDocumentURI = '../template/ddlist.ja.xsl'; |
| 12 |
|
|
|
| 13 |
|
|
function loadDocument (uri, onload) { |
| 14 |
|
|
var doc = document.implementation.createDocument (null, "dummy", null); |
| 15 |
|
|
doc.addEventListener ("load", function () {onload (doc)}, false); |
| 16 |
|
|
doc.load (uri); |
| 17 |
|
|
return doc; |
| 18 |
|
|
} |
| 19 |
|
|
|
| 20 |
|
|
function t (el) { |
| 21 |
|
|
const ddoct = 'http://suika.fam.cx/~wakaba/archive/2005/8/disdump-xslt#'; |
| 22 |
|
|
var xp3 = new XSLTProcessor (); |
| 23 |
|
|
xp3.setParameter (null, 'mode', el.getAttributeNS (ddoct, 'mode')); |
| 24 |
|
|
xp3.setParameter (null, 'uri', el.getAttributeNS (ddoct, 'uri')); |
| 25 |
|
|
loadDocument (sourceDocumentURI, function (srcDoc) { |
| 26 |
|
|
loadDocument (stylesheetDocumentURI, function (doc) { |
| 27 |
|
|
xp3.importStylesheet (doc); |
| 28 |
|
|
var tfra = xp3.transformToFragment (srcDoc, document); |
| 29 |
|
|
|
| 30 |
|
|
var r2 = document.getElementById ('result2'); |
| 31 |
|
|
r2.textContent = ''; |
| 32 |
|
|
r2.appendChild (tfra); |
| 33 |
|
|
}); |
| 34 |
|
|
}); |
| 35 |
|
|
} |
| 36 |
|
|
]]> |
| 37 |
|
|
</script> |
| 38 |
|
|
</head> |
| 39 |
|
|
|
| 40 |
|
|
<body> |
| 41 |
|
|
<h1>disdump.ja.xsl $B$K$h$kJQ49$N%F%9%H(B</h1> |
| 42 |
|
|
|
| 43 |
|
|
<div class="section"> |
| 44 |
|
|
<h2>$BJQ49%b!<%I(B</h2> |
| 45 |
|
|
<div id="result1" lang="" xml:lang=""/> |
| 46 |
|
|
</div> |
| 47 |
|
|
|
| 48 |
|
|
<div class="section"> |
| 49 |
|
|
<h2>$BJQ497k2L(B</h2> |
| 50 |
|
|
<div id="result2" lang="" xml:lang=""/> |
| 51 |
|
|
</div> |
| 52 |
|
|
|
| 53 |
|
|
<script type="text/javascript"> |
| 54 |
|
|
<![CDATA[ |
| 55 |
|
|
document.SourceDocument = loadDocument (sourceDocumentURI, function (srcDoc) { |
| 56 |
|
|
var xp = new XSLTProcessor (); |
| 57 |
|
|
loadDocument (stylesheetDocumentURI, function (doc) { |
| 58 |
|
|
xp.importStylesheet (doc); |
| 59 |
|
|
|
| 60 |
|
|
xp.setParameter (null, 'mode', 'list'); |
| 61 |
|
|
|
| 62 |
|
|
var tdoc = xp.transformToDocument (srcDoc); |
| 63 |
|
|
|
| 64 |
|
|
loadDocument (ddlistStylesheetDocumentURI, function (ddlistt) { |
| 65 |
|
|
var xp2 = new XSLTProcessor (); |
| 66 |
|
|
xp2.importStylesheet (ddlistt); |
| 67 |
|
|
xp2.setParameter (null, 'mode', 'html-list'); |
| 68 |
|
|
document.getElementById ('result1') |
| 69 |
|
|
.appendChild (xp2.transformToFragment (tdoc, document)); |
| 70 |
|
|
}); |
| 71 |
|
|
}); |
| 72 |
|
|
}); |
| 73 |
|
|
|
| 74 |
|
|
]]> |
| 75 |
|
|
</script> |
| 76 |
|
|
</body> |
| 77 |
|
|
</html> |
| 78 |
|
|
|
| 79 |
|
|
<!-- Revision: $Date: 2005/04/27 01:33:25 $ --> |
| 80 |
|
|
|
| 81 |
|
|
<!-- ***** BEGIN LICENSE BLOCK ***** |
| 82 |
|
|
- Copyright 2005 Wakaba <w@suika.fam.cx>. All rights reserved. |
| 83 |
|
|
- |
| 84 |
|
|
- This program is free software; you can redistribute it and/or |
| 85 |
|
|
- modify it under the same terms as Perl itself. |
| 86 |
|
|
- |
| 87 |
|
|
- Alternatively, the contents of this file may be used |
| 88 |
|
|
- under the following terms (the "MPL/GPL/LGPL"), |
| 89 |
|
|
- in which case the provisions of the MPL/GPL/LGPL are applicable instead |
| 90 |
|
|
- of those above. If you wish to allow use of your version of this file only |
| 91 |
|
|
- under the terms of the MPL/GPL/LGPL, and not to allow others to |
| 92 |
|
|
- use your version of this file under the terms of the Perl, indicate your |
| 93 |
|
|
- decision by deleting the provisions above and replace them with the notice |
| 94 |
|
|
- and other provisions required by the MPL/GPL/LGPL. If you do not delete |
| 95 |
|
|
- the provisions above, a recipient may use your version of this file under |
| 96 |
|
|
- the terms of any one of the Perl or the MPL/GPL/LGPL. |
| 97 |
|
|
- |
| 98 |
|
|
- "MPL/GPL/LGPL": |
| 99 |
|
|
- |
| 100 |
|
|
- The contents of this file are subject to the Mozilla Public License Version |
| 101 |
|
|
- 1.1 (the "License"); you may not use this file except in compliance with |
| 102 |
|
|
- the License. You may obtain a copy of the License at |
| 103 |
|
|
- http://www.mozilla.org/MPL/ |
| 104 |
|
|
- |
| 105 |
|
|
- Software distributed under the License is distributed on an "AS IS" basis, |
| 106 |
|
|
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
| 107 |
|
|
- for the specific language governing rights and limitations under the |
| 108 |
|
|
- License. |
| 109 |
|
|
- |
| 110 |
|
|
- The Original Code is manakai disdump. |
| 111 |
|
|
- |
| 112 |
|
|
- The Initial Developer of the Original Code is |
| 113 |
|
|
- Wakaba <w@suika.fam.cx>. |
| 114 |
|
|
- Portions created by the Initial Developer are Copyright (C) 2005 |
| 115 |
|
|
- the Initial Developer. All Rights Reserved. |
| 116 |
|
|
- |
| 117 |
|
|
- Contributor(s): |
| 118 |
|
|
- Wakaba <w@suika.fam.cx> |
| 119 |
|
|
- |
| 120 |
|
|
- Alternatively, the contents of this file may be used under the terms of |
| 121 |
|
|
- either the GNU General Public License Version 2 or later (the "GPL"), or |
| 122 |
|
|
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), |
| 123 |
|
|
- in which case the provisions of the GPL or the LGPL are applicable instead |
| 124 |
|
|
- of those above. If you wish to allow use of your version of this file only |
| 125 |
|
|
- under the terms of either the GPL or the LGPL, and not to allow others to |
| 126 |
|
|
- use your version of this file under the terms of the MPL, indicate your |
| 127 |
|
|
- decision by deleting the provisions above and replace them with the notice |
| 128 |
|
|
- and other provisions required by the LGPL or the GPL. If you do not delete |
| 129 |
|
|
- the provisions above, a recipient may use your version of this file under |
| 130 |
|
|
- the terms of any one of the MPL, the GPL or the LGPL. |
| 131 |
|
|
- |
| 132 |
|
|
- ***** END LICENSE BLOCK ***** --> |