/[suikacvs]/messaging/manakai/doc/template/disdump-test.ja.xhtml
Suika

Contents of /messaging/manakai/doc/template/disdump-test.ja.xhtml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Sep 29 09:46:15 2007 UTC (18 years, 6 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
++ ChangeLog	29 Sep 2007 09:26:20 -0000
2007-09-29  Wakaba  <wakaba@suika.fam.cx>

	* MANIFEST.SKIP: manakai-*.tar.gz is added.

++ manakai/doc/ChangeLog	29 Sep 2007 09:31:49 -0000
2007-09-29  Wakaba  <wakaba@suika.fam.cx>

	* Makefile: Unused rules are removed.

++ manakai/doc/style/ChangeLog	29 Sep 2007 09:40:12 -0000
2007-09-29  Wakaba  <wakaba@suika.fam.cx>

	* disdump-style.css: Removed.

++ manakai/doc/template/ChangeLog	29 Sep 2007 09:45:20 -0000
2007-09-29  Wakaba  <wakaba@suika.fam.cx>

	* ddlist.ja.xsl, ddspec.en.xsl, disdump-test.ja.xhtml, disdump.ja.xsl,
	disdump2htmls.ja.xhtml, splitddhtmls.pl: Removed.

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24