-
Notifications
You must be signed in to change notification settings - Fork 79
/
Copy patheventhandlers.xml
130 lines (128 loc) · 4.47 KB
/
eventhandlers.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 47065812c2450dce5dcc8d62e80f1e75698c6163 Maintainer: takagi Status: ready -->
<article xml:id="xml.eventhandlers" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>イベントハンドラ</title>
<para>
XML イベントハンドラは次のように定義されます。
<table>
<title>サポートされる XML ハンドラ</title>
<tgroup cols="2">
<thead>
<row>
<entry>ハンドラ設定用の PHP 関数</entry>
<entry>イベントの説明</entry>
</row>
</thead>
<tbody>
<row>
<entry><function>xml_set_element_handler</function></entry>
<entry>
要素イベントは、XML パーサーが開始または終了タグに出会うたび
に発行されます。開始タグと終了タグについて別のハンドラがあり
ます。
</entry>
</row>
<row>
<entry>
<function>xml_set_character_data_handler</function>
</entry>
<entry>
文字データは、タグの間の空白を含めて XML ドキュメントにおけ
るほぼ全ての非マークアップ部分の内容です。XML パーサーは、
空白を加えたり削除したりしないことに注意してください。空白が
意味を有するかどうかを決めるのは、アプリケーション側の責任
です。
</entry>
</row>
<row>
<entry>
<function>xml_set_processing_instruction_handler</function>
</entry>
<entry>
PHP プログラマは、既に処理用命令 (PI) に既に慣れているに違
いありません。<?php ?> は処理用命令であり、この場合、
<replaceable>php</replaceable> は "PI ターゲット"と呼ばれます。
これらの処理はアプリケーション依存ですが、全ての PI ターゲッ
トが "XML" から始まることだけは、規定されています。
</entry>
</row>
<row>
<entry><function>xml_set_default_handler</function></entry>
<entry>
別のハンドラでしないことをデフォルトのハンドラで行います。
XML およびドキュメント型の宣言のようなことをデフォルトハンドラで
行います。
</entry>
</row>
<row>
<entry>
<function>xml_set_unparsed_entity_decl_handler</function>
</entry>
<entry>
このハンドラは、処理されない (NDATA) エンティティの宣言用に
コールされます。
</entry>
</row>
<row>
<entry>
<function>xml_set_notation_decl_handler</function>
</entry>
<entry>
このハンドラは、表記の宣言用にコールされます。
</entry>
</row>
<row>
<entry>
<function>xml_set_external_entity_ref_handler</function>
</entry>
<entry>
このハンドラは、XML パーサーが外部処理された通常のエンティティ
への参照を見つけた際にコールされます。これは、例えば、ファ
イルまたは URL への参照とすることが可能です。例としては、
<link linkend="example.xml-external-entity">外部エンティティ
の例</link> を参照ください。
</entry>
</row>
<row>
<entry>
<function>xml_set_start_namespace_decl_handler</function>
</entry>
<entry>
このハンドラは、名前空間宣言の開始時にコールされます。
</entry>
</row>
<row>
<entry>
<function>xml_set_end_namespace_decl_handler</function>
</entry>
<entry>
このハンドラは、名前空間宣言の終了時にコールされます。このイベントは
libXML によりトリガー<emphasis>されない</emphasis> ことに注意しましょう。
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</article>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->