rgen 0.5.4 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +28 -0
- data/Rakefile +3 -4
- data/lib/ea_support/uml13_ea_metamodel.rb +3 -3
- data/lib/ea_support/uml13_ea_to_uml13.rb +33 -2
- data/lib/ea_support/uml13_to_uml13_ea.rb +7 -0
- data/lib/mmgen/mm_ext/ecore_mmgen_ext.rb +4 -4
- data/lib/mmgen/templates/metamodel_generator.tpl +143 -143
- data/lib/rgen/ecore/ecore.rb +11 -1
- data/lib/rgen/ecore/ecore_interface.rb +47 -0
- data/lib/rgen/ecore/ecore_to_ruby.rb +166 -0
- data/lib/rgen/ecore/{ecore_transformer.rb → ruby_to_ecore.rb} +11 -11
- data/lib/rgen/environment.rb +15 -2
- data/lib/rgen/fragment/dump_file_cache.rb +63 -0
- data/lib/rgen/fragment/fragmented_model.rb +139 -0
- data/lib/rgen/fragment/model_fragment.rb +268 -0
- data/lib/rgen/instantiator/abstract_xml_instantiator.rb +44 -72
- data/lib/rgen/instantiator/default_xml_instantiator.rb +2 -2
- data/lib/rgen/instantiator/ecore_xml_instantiator.rb +16 -1
- data/lib/rgen/instantiator/json_instantiator.rb +16 -2
- data/lib/rgen/instantiator/nodebased_xml_instantiator.rb +118 -138
- data/lib/rgen/instantiator/qualified_name_resolver.rb +5 -1
- data/lib/rgen/instantiator/reference_resolver.rb +126 -24
- data/lib/rgen/instantiator/xmi11_instantiator.rb +6 -2
- data/lib/rgen/metamodel_builder.rb +18 -6
- data/lib/rgen/metamodel_builder/builder_extensions.rb +431 -407
- data/lib/rgen/metamodel_builder/builder_runtime.rb +8 -8
- data/lib/rgen/metamodel_builder/constant_order_helper.rb +4 -4
- data/lib/rgen/metamodel_builder/data_types.rb +5 -1
- data/lib/rgen/metamodel_builder/intermediate/feature.rb +167 -0
- data/lib/rgen/metamodel_builder/module_extension.rb +2 -2
- data/lib/rgen/model_builder.rb +10 -5
- data/lib/rgen/model_builder/builder_context.rb +17 -1
- data/lib/rgen/serializer/opposite_reference_filter.rb +18 -0
- data/lib/rgen/serializer/qualified_name_provider.rb +45 -0
- data/lib/rgen/template_language/template_container.rb +3 -1
- data/lib/rgen/{auto_class_creator.rb → util/auto_class_creator.rb} +6 -1
- data/lib/rgen/util/cached_glob.rb +67 -0
- data/lib/rgen/util/file_cache_map.rb +104 -0
- data/lib/rgen/util/file_change_detector.rb +78 -0
- data/lib/rgen/{method_delegation.rb → util/method_delegation.rb} +18 -3
- data/lib/rgen/{model_comparator.rb → util/model_comparator.rb} +17 -5
- data/lib/rgen/{model_comparator_base.rb → util/model_comparator_base.rb} +6 -1
- data/lib/rgen/{model_dumper.rb → util/model_dumper.rb} +6 -1
- data/lib/rgen/{name_helper.rb → util/name_helper.rb} +6 -1
- data/lib/rgen/util/pattern_matcher.rb +329 -0
- data/lib/transformers/uml13_to_ecore.rb +103 -60
- data/test/ecore_self_test.rb +43 -42
- data/test/json_test.rb +15 -0
- data/test/metamodel_builder_test.rb +361 -206
- data/test/metamodel_from_ecore_test.rb +45 -0
- data/test/metamodel_order_test.rb +10 -4
- data/test/metamodel_roundtrip_test.rb +2 -2
- data/test/metamodel_roundtrip_test/TestModel_Regenerated.rb +1 -1
- data/test/metamodel_roundtrip_test/houseMetamodel_Regenerated.ecore +50 -50
- data/test/method_delegation_test.rb +9 -9
- data/test/model_builder/ecore_internal.rb +19 -9
- data/test/model_builder/serializer_test.rb +1 -1
- data/test/reference_resolver_test.rb +79 -12
- data/test/rgen_test.rb +2 -0
- data/test/template_language_test.rb +7 -0
- data/test/template_language_test/templates/callback_indent_test/a.tpl +12 -0
- data/test/template_language_test/templates/callback_indent_test/b.tpl +5 -0
- data/test/testmodel/ea_testmodel_regenerated.xml +588 -583
- data/test/transformer_test.rb +3 -3
- data/test/util/file_cache_map_test.rb +91 -0
- data/test/util/file_cache_map_test/testdir/fileA +1 -0
- data/test/util_test.rb +4 -0
- data/test/xml_instantiator_test.rb +139 -135
- metadata +49 -104
- data/lib/rgen/ecore/ecore_instantiator.rb +0 -31
- data/lib/rgen/metamodel_builder/metamodel_description.rb +0 -232
- data/redist/xmlscan/ChangeLog +0 -1301
- data/redist/xmlscan/README +0 -34
- data/redist/xmlscan/THANKS +0 -11
- data/redist/xmlscan/doc/changes.html +0 -74
- data/redist/xmlscan/doc/changes.rd +0 -80
- data/redist/xmlscan/doc/en/conformance.html +0 -136
- data/redist/xmlscan/doc/en/conformance.rd +0 -152
- data/redist/xmlscan/doc/en/manual.html +0 -356
- data/redist/xmlscan/doc/en/manual.rd +0 -402
- data/redist/xmlscan/doc/ja/conformance.ja.html +0 -118
- data/redist/xmlscan/doc/ja/conformance.ja.rd +0 -134
- data/redist/xmlscan/doc/ja/manual.ja.html +0 -325
- data/redist/xmlscan/doc/ja/manual.ja.rd +0 -370
- data/redist/xmlscan/doc/src/Makefile +0 -41
- data/redist/xmlscan/doc/src/conformance.rd.src +0 -256
- data/redist/xmlscan/doc/src/langsplit.rb +0 -110
- data/redist/xmlscan/doc/src/manual.rd.src +0 -614
- data/redist/xmlscan/install.rb +0 -41
- data/redist/xmlscan/lib/xmlscan/encoding.rb +0 -311
- data/redist/xmlscan/lib/xmlscan/htmlscan.rb +0 -289
- data/redist/xmlscan/lib/xmlscan/namespace.rb +0 -352
- data/redist/xmlscan/lib/xmlscan/parser.rb +0 -299
- data/redist/xmlscan/lib/xmlscan/scanner.rb +0 -1109
- data/redist/xmlscan/lib/xmlscan/version.rb +0 -22
- data/redist/xmlscan/lib/xmlscan/visitor.rb +0 -158
- data/redist/xmlscan/lib/xmlscan/xmlchar.rb +0 -441
- data/redist/xmlscan/memo/CONFORMANCE +0 -1249
- data/redist/xmlscan/memo/PRODUCTIONS +0 -195
- data/redist/xmlscan/memo/contentspec.ry +0 -335
- data/redist/xmlscan/samples/chibixml.rb +0 -105
- data/redist/xmlscan/samples/getxmlchar.rb +0 -122
- data/redist/xmlscan/samples/rexml.rb +0 -159
- data/redist/xmlscan/samples/xmlbench.rb +0 -88
- data/redist/xmlscan/samples/xmlbench/parser/chibixml.rb +0 -22
- data/redist/xmlscan/samples/xmlbench/parser/nqxml.rb +0 -29
- data/redist/xmlscan/samples/xmlbench/parser/rexml.rb +0 -62
- data/redist/xmlscan/samples/xmlbench/parser/xmlparser.rb +0 -22
- data/redist/xmlscan/samples/xmlbench/parser/xmlscan-0.0.10.rb +0 -62
- data/redist/xmlscan/samples/xmlbench/parser/xmlscan-chibixml.rb +0 -22
- data/redist/xmlscan/samples/xmlbench/parser/xmlscan-rexml.rb +0 -22
- data/redist/xmlscan/samples/xmlbench/parser/xmlscan.rb +0 -99
- data/redist/xmlscan/samples/xmlbench/xmlbench-lib.rb +0 -116
- data/redist/xmlscan/samples/xmlconftest.rb +0 -200
- data/redist/xmlscan/test.rb +0 -7
- data/redist/xmlscan/tests/deftestcase.rb +0 -73
- data/redist/xmlscan/tests/runtest.rb +0 -47
- data/redist/xmlscan/tests/testall.rb +0 -14
- data/redist/xmlscan/tests/testencoding.rb +0 -438
- data/redist/xmlscan/tests/testhtmlscan.rb +0 -752
- data/redist/xmlscan/tests/testnamespace.rb +0 -457
- data/redist/xmlscan/tests/testparser.rb +0 -591
- data/redist/xmlscan/tests/testscanner.rb +0 -1749
- data/redist/xmlscan/tests/testxmlchar.rb +0 -143
- data/redist/xmlscan/tests/visitor.rb +0 -34
@@ -1,118 +0,0 @@
|
|
1
|
-
<?xml version="1.0" ?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
6
|
-
<head>
|
7
|
-
<title>ja/conformance.ja.rd</title>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
<h1><a name="label-0" id="label-0">xmlscan �ε��ʤؤ�Ŭ����</a></h1><!-- RDLabel: "xmlscan �ε��ʤؤ�Ŭ����" -->
|
11
|
-
<p>����ʸ��Ǥϡ�xmlscan �˴ޤޤ��ƥѡ����� XML ��Ϣ���ʤؤ�
|
12
|
-
Ŭ�����ˤĤ��ƽҤ٤ޤ���</p>
|
13
|
-
<h2><a name="label-1" id="label-1">����</a></h2><!-- RDLabel: "����" -->
|
14
|
-
<p>xmlscan �� XML 1.0 Sepcification <a href="#label-6">[XML]</a> �Ǥ����Ȥ�����
|
15
|
-
���������ڤ��ʤ��ץ������פǤ����������ڤ��ʤ��ץ�������
|
16
|
-
��������ΤۤȤ�ɤ��������Ƥ��ޤ������������Թ�塢���
|
17
|
-
���Τ褦��������ޤ����ܺ٤ϳƥ��饹��ε��ҤȤ��Ƥ���������</p>
|
18
|
-
<ul>
|
19
|
-
<li>UTF-16 �ǽ줿XMLʸ���ľ�ܲ��ϤǤ��ޤ���</li>
|
20
|
-
<li>�ǥե���ȤǤϡ�XMLʸ����ǡ����Ϥ���ʸ̮�ǻ��Ѥ�ǧ����ʤ�
|
21
|
-
ʸ�����ޤޤ�Ƥ��ʤ����Ȥ����ޤ���</li>
|
22
|
-
<li>�����볰�����Τ��ɤ߹��ߤޤ����������оݼ��Τ˴ؤ���
|
23
|
-
����������ϥ����å�����ޤ���</li>
|
24
|
-
<li>����DTD���֥��åȤ��ɤ����Ф��ޤ� (����ΥС������ǥ��ݡ���ͽ��)��
|
25
|
-
DTD�˴ؤ�������������ϥ����å�����ޤ���</li>
|
26
|
-
</ul>
|
27
|
-
<h2><a name="label-2" id="label-2">XMLScan::XMLScanner �ε��ʤؤ�Ŭ����</a></h2><!-- RDLabel: "XMLScan::XMLScanner �ε��ʤؤ�Ŭ����" -->
|
28
|
-
<p>XMLScan::XMLScanner ��XMLʸ�����Ϥ���XML�����ʸ�����������̿�ᡢ
|
29
|
-
�����ȡ����ϥ�������λ�����������ǥ�����CDATA����������̼��λ��ȡ�
|
30
|
-
�����ʸ�����Ȥ�ǧ�ΤΤߤ�Ԥ��ޤ����ʲ��˽Ҥ٤��������ơ�
|
31
|
-
����餬����ƤϤʤ�ʤ�ʸ̮�Ǹ��줿�Ȥ��Ƥ⡢���顼�ˤʤ�ޤ���</p>
|
32
|
-
<p>XML�����ʸ����� (����DTD���֥��åȤ����)������̿�ᡢ�����ȡ�
|
33
|
-
���ϥ�������λ�����������ǥ�����CDATA����������̼��λ��ȡ������
|
34
|
-
ʸ�����Ȥ� XML 1.0 Specification <a href="#label-6">[XML]</a> ������������§��
|
35
|
-
�ޥå����ʤ���硢���ϥ��顼�Ȥʤ�ޤ���</p>
|
36
|
-
<p>����Ū�ʽ���®�٤����뤿�ᡢstrict_char ���ץ�����ꤵ��Ƥ��ʤ�
|
37
|
-
��硢̾����ʸ���ǡ������˻��Ѥ�ǧ����ʤ�ʸ�����ޤޤ�Ƥ��ʤ����Ȥ�
|
38
|
-
�������ޤ�����ʸ̮�Ƕ��ڤ�ҤȤ���ǧ�������٤�ʸ������������Ƥ�
|
39
|
-
ʸ������ǧ����ޤ�������Ū�ˤϡ�strict_char ���ץ�����ꤵ���
|
40
|
-
���ʤ���С�������§ Char[2], Name[5], Nmtoken[7], EntityValue[9],
|
41
|
-
AttValue[10], SystemLiteral[11], PubidChar[13], CharData[14],
|
42
|
-
VersionNum[26], EncName[81] �ϸ�̩�˥����å�����ޤ���</p>
|
43
|
-
<p>��������������Ԥ��ޤ���</p>
|
44
|
-
<p>Ruby ���Τ����ݡ��Ȥ��Ƥ��ʤ����ᡢUTF-16 �ǽ줿ʸ���
|
45
|
-
ľ�ܲ��Ϥ��뤳�ȤϤǤ��ޤ��������˰�ö UTF-8 ���Ѵ�����
|
46
|
-
ɬ�פ�����ޤ���</p>
|
47
|
-
<p>ʸ�����Ƭ�ʳ��� `<?xml' �����줿���ϡ���������̿��Ȥߤʤ��ޤ���</p>
|
48
|
-
<p>������ɥ�����ʸ������� yes �ޤ��� no �Ǥ��뤫������å����ޤ���</p>
|
49
|
-
<p>����̿��Υ������åȤ� xml �Ǥʤ����Ȥ�����å����ޤ���</p>
|
50
|
-
<p>ʸ����������ʳ��˸��줿��硢�ޤ�2��ʾ帽�줿����
|
51
|
-
���ϥ��顼�Ȥʤ�ޤ���</p>
|
52
|
-
<p>°���ͤ���� `<' ��ʸ����ľ�ܸ��줿��硢�����������ȿ���顼��
|
53
|
-
�ʤ�ޤ���strict_char ���ץ�����ꤵ��Ƥ����硢����������
|
54
|
-
"Legal Character" ������å����ޤ�������ʳ�������������Ϥޤä���
|
55
|
-
�����å�����ޤ���</p>
|
56
|
-
<p>����DTD���֥��åȤ��ɤ����Ф��ޤ���</p>
|
57
|
-
<h2><a name="label-3" id="label-3">XMLScan::XMLParser �ε��ʤؤ�Ŭ����</a></h2><!-- RDLabel: "XMLScan::XMLParser �ε��ʤؤ�Ŭ����" -->
|
58
|
-
<p>XMLScan::XMLParser �ϡ��������ڤ��ʤ�XML�ץ������Ȥ��Ƶ�����
|
59
|
-
���ΤۤȤ�����Ƥ����������Ȥ���ɸ�ˤ��Ƥ��ޤ���</p>
|
60
|
-
<p>XMLScan::XMLScanner �� strict_char ���ץ����˴ؤ��뵭�ҡ��ڤ�
|
61
|
-
UTF-16 �˴ؤ��뵭�Ҥϡ����Τޤ� XMLScan::XMLParser �ˤ����ƤϤޤ�ޤ���
|
62
|
-
ʸ�����Ȥ˴ؤ���ʲ�������ϡ�strict_char ���ץ�����ꤵ�줿
|
63
|
-
���Τߥ����å�����ޤ���</p>
|
64
|
-
<ul>
|
65
|
-
<li>Well-formedness constraint: Legal Character</li>
|
66
|
-
</ul>
|
67
|
-
<p>��������������Ԥ��ޤ���</p>
|
68
|
-
<p>����DTD���֥��åȤ��ɤ����Ф��ޤ�������DTD���֥��åȤ˴ؤ���ʲ���
|
69
|
-
����������ϥ����å�����ޤ���</p>
|
70
|
-
<ul>
|
71
|
-
<li>Well-formedness constraint: PEs in Internal Subset</li>
|
72
|
-
<li>Well-formedness constraint: PE Between Declarations</li>
|
73
|
-
<li>Well-formedness constraint: No External Entity References</li>
|
74
|
-
<li>Well-formedness constraint: Entity Declared</li>
|
75
|
-
<li>Well-formedness constraint: Parsed Entity</li>
|
76
|
-
<li>Well-formedness constraint: No Recursion</li>
|
77
|
-
<li>Well-formedness constraint: In DTD</li>
|
78
|
-
</ul>
|
79
|
-
<p>����Ѥ��� (lt,gt,amp,quot,apos) ��������Ƥΰ��̼��λ��Ȥϡ�
|
80
|
-
������ɤ߹��ޤ�Ƥ��ʤ����Τؤλ��ȤȤ�����𤵤�ޤ���</p>
|
81
|
-
<p>����DTD���֥��åȤϼ����ߤޤ�����DTD���֥��åȤ˴ؤ���ʲ���
|
82
|
-
����������ϥ����å�����ޤ���</p>
|
83
|
-
<ul>
|
84
|
-
<li>Well-formedness constraint: External Subset</li>
|
85
|
-
</ul>
|
86
|
-
<p>������ɤ߹���Ǥ��ʤ����Τ��ִ��ƥ����Ȥ� < ���ޤޤ�Ƥ��뤳�Ȥ�
|
87
|
-
��ǧ�Ǥ��ʤ����ᡢ�ʲ�������������ϥ����å�����ޤ���</p>
|
88
|
-
<ul>
|
89
|
-
<li>Well-formedness constraint: No < in Attribute Values</li>
|
90
|
-
</ul>
|
91
|
-
<h2><a name="label-4" id="label-4">XMLScan::XMLNamespace �ε��ʤؤ�Ŭ����</a></h2><!-- RDLabel: "XMLScan::XMLNamespace �ε��ʤؤ�Ŭ����" -->
|
92
|
-
<p>XMLScan::XMLNamespace �� Namespaces in XML �ڤӤ��� errata <a href="#label-7">[Namespaces]</a>
|
93
|
-
�����������Ƥ����������å����� XML ʸ��̾������������
|
94
|
-
(namespace-well-formed) �Ǥ��뤳�Ȥ��ǧ���ޤ���</p>
|
95
|
-
<p>XMLScan::XMLParser �˵����������¤ϡ����Τޤ� XMLScan::XMLNamespace
|
96
|
-
�ˤ�Ѿ�����ޤ���</p>
|
97
|
-
<h2><a name="label-5" id="label-5">����ʸ��</a></h2><!-- RDLabel: "����ʸ��" -->
|
98
|
-
<dl>
|
99
|
-
<dt><a name="label-6" id="label-6">[XML]</a></dt><!-- RDLabel: "[XML]" -->
|
100
|
-
<dd>
|
101
|
-
W3C (World Wide Web Consortium).
|
102
|
-
Extensible Markup Language (XML) 1.0 (Second Edition),
|
103
|
-
January 2000.
|
104
|
-
<a href="http://www.w3.org/TR/2000/REC-xml-20001006"><URL:http://www.w3.org/TR/2000/REC-xml-20001006></a>
|
105
|
-
</dd>
|
106
|
-
<dt><a name="label-7" id="label-7">[Namespaces]</a></dt><!-- RDLabel: "[Namespaces]" -->
|
107
|
-
<dd>
|
108
|
-
W3C (World Wide Web Consortium).
|
109
|
-
Namespaces in XML,
|
110
|
-
January 1999.
|
111
|
-
<a href="http://www.w3.org/TR/1999/REC-xml-names-19990114"><URL:http://www.w3.org/TR/1999/REC-xml-names-19990114></a>.
|
112
|
-
���פ������� <a href="http://www.w3.org/XML/xml-names-19990114-errata"><URL:http://www.w3.org/XML/xml-names-19990114-errata></a>
|
113
|
-
�˴ޤޤ�Ƥ���.
|
114
|
-
</dd>
|
115
|
-
</dl>
|
116
|
-
|
117
|
-
</body>
|
118
|
-
</html>
|
@@ -1,134 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
# $Id: conformance.rd.src,v 1.1 2003/01/22 16:41:45 katsu Exp $
|
3
|
-
|
4
|
-
= xmlscan �ε��ʤؤ�Ŭ����
|
5
|
-
|
6
|
-
����ʸ��Ǥϡ�xmlscan �˴ޤޤ��ƥѡ����� XML ��Ϣ���ʤؤ�
|
7
|
-
Ŭ�����ˤĤ��ƽҤ٤ޤ���
|
8
|
-
|
9
|
-
== ����
|
10
|
-
|
11
|
-
xmlscan �� XML 1.0 Sepcification ((<[XML]>)) �Ǥ����Ȥ�����
|
12
|
-
���������ڤ��ʤ��ץ������פǤ����������ڤ��ʤ��ץ�������
|
13
|
-
��������ΤۤȤ�ɤ��������Ƥ��ޤ������������Թ�塢���
|
14
|
-
���Τ褦��������ޤ����ܺ٤ϳƥ��饹��ε��ҤȤ��Ƥ���������
|
15
|
-
|
16
|
-
* UTF-16 �ǽ줿XMLʸ���ľ�ܲ��ϤǤ��ޤ���
|
17
|
-
* �ǥե���ȤǤϡ�XMLʸ����ǡ����Ϥ���ʸ̮�ǻ��Ѥ�ǧ����ʤ�
|
18
|
-
ʸ�����ޤޤ�Ƥ��ʤ����Ȥ����ޤ���
|
19
|
-
* �����볰�����Τ��ɤ߹��ߤޤ����������оݼ��Τ˴ؤ���
|
20
|
-
����������ϥ����å�����ޤ���
|
21
|
-
* ����DTD���֥��åȤ��ɤ����Ф��ޤ� (����ΥС������ǥ��ݡ���ͽ��)��
|
22
|
-
DTD�˴ؤ�������������ϥ����å�����ޤ���
|
23
|
-
|
24
|
-
|
25
|
-
== XMLScan::XMLScanner �ε��ʤؤ�Ŭ����
|
26
|
-
|
27
|
-
XMLScan::XMLScanner ��XMLʸ�����Ϥ���XML�����ʸ�����������̿�ᡢ
|
28
|
-
�����ȡ����ϥ�������λ�����������ǥ�����CDATA����������̼��λ��ȡ�
|
29
|
-
�����ʸ�����Ȥ�ǧ�ΤΤߤ�Ԥ��ޤ����ʲ��˽Ҥ٤��������ơ�
|
30
|
-
����餬����ƤϤʤ�ʤ�ʸ̮�Ǹ��줿�Ȥ��Ƥ⡢���顼�ˤʤ�ޤ���
|
31
|
-
|
32
|
-
XML�����ʸ����� (����DTD���֥��åȤ����)������̿�ᡢ�����ȡ�
|
33
|
-
���ϥ�������λ�����������ǥ�����CDATA����������̼��λ��ȡ������
|
34
|
-
ʸ�����Ȥ� XML 1.0 Specification ((<[XML]>)) ������������§��
|
35
|
-
�ޥå����ʤ���硢���ϥ��顼�Ȥʤ�ޤ���
|
36
|
-
|
37
|
-
����Ū�ʽ���®�٤����뤿�ᡢstrict_char ���ץ�����ꤵ��Ƥ��ʤ�
|
38
|
-
��硢̾����ʸ���ǡ������˻��Ѥ�ǧ����ʤ�ʸ�����ޤޤ�Ƥ��ʤ����Ȥ�
|
39
|
-
�������ޤ�����ʸ̮�Ƕ��ڤ�ҤȤ���ǧ�������٤�ʸ������������Ƥ�
|
40
|
-
ʸ������ǧ����ޤ�������Ū�ˤϡ�strict_char ���ץ�����ꤵ���
|
41
|
-
���ʤ���С�������§ Char[2], Name[5], Nmtoken[7], EntityValue[9],
|
42
|
-
AttValue[10], SystemLiteral[11], PubidChar[13], CharData[14],
|
43
|
-
VersionNum[26], EncName[81] �ϸ�̩�˥����å�����ޤ���
|
44
|
-
|
45
|
-
��������������Ԥ��ޤ���
|
46
|
-
|
47
|
-
Ruby ���Τ����ݡ��Ȥ��Ƥ��ʤ����ᡢUTF-16 �ǽ줿ʸ���
|
48
|
-
ľ�ܲ��Ϥ��뤳�ȤϤǤ��ޤ��������˰�ö UTF-8 ���Ѵ�����
|
49
|
-
ɬ�פ�����ޤ���
|
50
|
-
|
51
|
-
ʸ�����Ƭ�ʳ��� `<?xml' �����줿���ϡ���������̿��Ȥߤʤ��ޤ���
|
52
|
-
|
53
|
-
������ɥ�����ʸ������� yes �ޤ��� no �Ǥ��뤫������å����ޤ���
|
54
|
-
|
55
|
-
����̿��Υ������åȤ� xml �Ǥʤ����Ȥ�����å����ޤ���
|
56
|
-
|
57
|
-
ʸ����������ʳ��˸��줿��硢�ޤ�2��ʾ帽�줿����
|
58
|
-
���ϥ��顼�Ȥʤ�ޤ���
|
59
|
-
|
60
|
-
°���ͤ���� `<' ��ʸ����ľ�ܸ��줿��硢�����������ȿ���顼��
|
61
|
-
�ʤ�ޤ���strict_char ���ץ�����ꤵ��Ƥ����硢����������
|
62
|
-
"Legal Character" ������å����ޤ�������ʳ�������������Ϥޤä���
|
63
|
-
�����å�����ޤ���
|
64
|
-
|
65
|
-
����DTD���֥��åȤ��ɤ����Ф��ޤ���
|
66
|
-
|
67
|
-
|
68
|
-
== XMLScan::XMLParser �ε��ʤؤ�Ŭ����
|
69
|
-
|
70
|
-
XMLScan::XMLParser �ϡ��������ڤ��ʤ�XML�ץ������Ȥ��Ƶ�����
|
71
|
-
���ΤۤȤ�����Ƥ����������Ȥ���ɸ�ˤ��Ƥ��ޤ���
|
72
|
-
|
73
|
-
XMLScan::XMLScanner �� strict_char ���ץ����˴ؤ��뵭�ҡ��ڤ�
|
74
|
-
UTF-16 �˴ؤ��뵭�Ҥϡ����Τޤ� XMLScan::XMLParser �ˤ����ƤϤޤ�ޤ���
|
75
|
-
ʸ�����Ȥ˴ؤ���ʲ�������ϡ�strict_char ���ץ�����ꤵ�줿
|
76
|
-
���Τߥ����å�����ޤ���
|
77
|
-
|
78
|
-
* Well-formedness constraint: Legal Character
|
79
|
-
|
80
|
-
��������������Ԥ��ޤ���
|
81
|
-
|
82
|
-
����DTD���֥��åȤ��ɤ����Ф��ޤ�������DTD���֥��åȤ˴ؤ���ʲ���
|
83
|
-
����������ϥ����å�����ޤ���
|
84
|
-
|
85
|
-
* Well-formedness constraint: PEs in Internal Subset
|
86
|
-
* Well-formedness constraint: PE Between Declarations
|
87
|
-
* Well-formedness constraint: No External Entity References
|
88
|
-
* Well-formedness constraint: Entity Declared
|
89
|
-
* Well-formedness constraint: Parsed Entity
|
90
|
-
* Well-formedness constraint: No Recursion
|
91
|
-
* Well-formedness constraint: In DTD
|
92
|
-
|
93
|
-
����Ѥ��� (lt,gt,amp,quot,apos) ��������Ƥΰ��̼��λ��Ȥϡ�
|
94
|
-
������ɤ߹��ޤ�Ƥ��ʤ����Τؤλ��ȤȤ�����𤵤�ޤ���
|
95
|
-
|
96
|
-
����DTD���֥��åȤϼ����ߤޤ�����DTD���֥��åȤ˴ؤ���ʲ���
|
97
|
-
����������ϥ����å�����ޤ���
|
98
|
-
|
99
|
-
* Well-formedness constraint: External Subset
|
100
|
-
|
101
|
-
������ɤ߹���Ǥ��ʤ����Τ��ִ��ƥ����Ȥ� < ���ޤޤ�Ƥ��뤳�Ȥ�
|
102
|
-
��ǧ�Ǥ��ʤ����ᡢ�ʲ�������������ϥ����å�����ޤ���
|
103
|
-
|
104
|
-
* Well-formedness constraint: No < in Attribute Values
|
105
|
-
|
106
|
-
|
107
|
-
== XMLScan::XMLNamespace �ε��ʤؤ�Ŭ����
|
108
|
-
|
109
|
-
XMLScan::XMLNamespace �� Namespaces in XML �ڤӤ��� errata ((<[Namespaces]>))
|
110
|
-
�����������Ƥ����������å����� XML ʸ��̾������������
|
111
|
-
(namespace-well-formed) �Ǥ��뤳�Ȥ��ǧ���ޤ���
|
112
|
-
|
113
|
-
XMLScan::XMLParser �˵����������¤ϡ����Τޤ� XMLScan::XMLNamespace
|
114
|
-
�ˤ�Ѿ�����ޤ���
|
115
|
-
|
116
|
-
|
117
|
-
== ����ʸ��
|
118
|
-
|
119
|
-
: [XML]
|
120
|
-
W3C (World Wide Web Consortium).
|
121
|
-
Extensible Markup Language (XML) 1.0 (Second Edition),
|
122
|
-
January 2000.
|
123
|
-
((<URL:http://www.w3.org/TR/2000/REC-xml-20001006>))
|
124
|
-
|
125
|
-
: [Namespaces]
|
126
|
-
W3C (World Wide Web Consortium).
|
127
|
-
Namespaces in XML,
|
128
|
-
January 1999.
|
129
|
-
((<URL:http://www.w3.org/TR/1999/REC-xml-names-19990114>)).
|
130
|
-
���פ������� ((<URL:http://www.w3.org/XML/xml-names-19990114-errata>))
|
131
|
-
�˴ޤޤ�Ƥ���.
|
132
|
-
|
133
|
-
|
134
|
-
=end
|
@@ -1,325 +0,0 @@
|
|
1
|
-
<?xml version="1.0" ?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
6
|
-
<head>
|
7
|
-
<title>ja/manual.ja.rd</title>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
<h1><a name="label-0" id="label-0">xmlscan version 0.2 ��ե���ޥ˥奢��</a></h1><!-- RDLabel: "xmlscan version 0.2 ��ե���ޥ˥奢��" -->
|
11
|
-
<h2><a name="label-1" id="label-1">����</a></h2><!-- RDLabel: "����" -->
|
12
|
-
<p>xmlscan �� Ruby �����ǽ줿 non-validating XML parser �Ǥ���</p>
|
13
|
-
<p>���Τ褦����Ĺ������ޤ���</p>
|
14
|
-
<dl>
|
15
|
-
<dt><a name="label-2" id="label-2">100% pure Ruby</a></dt><!-- RDLabel: "100% pure Ruby" -->
|
16
|
-
<dd>
|
17
|
-
��ĥ�饤�֥������ɬ�פȤ��ʤ��Τǡ�1.6 �ʾ�� Ruby ���ץ����
|
18
|
-
����д�����ư��ޤ���(ɸ��ź�դγ�ĥ�饤�֥���ɬ�פȤ��ޤ���)
|
19
|
-
</dd>
|
20
|
-
<dt><a name="label-3" id="label-3">���ʤؤ�Ŭ����</a></dt><!-- RDLabel: "���ʤؤ�Ŭ����" -->
|
21
|
-
<dd>
|
22
|
-
xmlscan �ϡ�XML 1.0 Specification �ǽҤ٤��Ƥ��롢�������ڤ��ʤ�
|
23
|
-
�ץ������˵��������Ƥξ������������Ȥ���ɸ�˳�ȯ���ʤ����
|
24
|
-
���ޤ���
|
25
|
-
</dd>
|
26
|
-
<dt><a name="label-4" id="label-4">��®</a></dt><!-- RDLabel: "��®" -->
|
27
|
-
<dd>
|
28
|
-
xmlscan �β��Ϥ�®���ϡ������餯����¸���� Ruby �ǽ줿
|
29
|
-
XML/HTML parser ����Ǻ�®�Ǥ���
|
30
|
-
</dd>
|
31
|
-
<dt><a name="label-5" id="label-5">�͡���CES���б�</a></dt><!-- RDLabel: "�͡���CES���б�" -->
|
32
|
-
<dd>
|
33
|
-
xmlscan �Ͼ��ʤ��Ȥ� iso-8859-*, EUC-*, Shift_JIS, UTF-8 �ǽ줿
|
34
|
-
XMLʸ��Τޤ��ϤǤ��ޤ��������� UTF-16 �ϰ����ޤ���
|
35
|
-
</dd>
|
36
|
-
<dt><a name="label-6" id="label-6">���Ϥ������</a></dt><!-- RDLabel: "���Ϥ������" -->
|
37
|
-
<dd>
|
38
|
-
xmlscan �����ϡ�����XMLʸ�����Ϥ��뤳�Ȥ����Ǥ���XMLʸ���
|
39
|
-
���ؤ˼�갷������ι��٥�ʵ�ǽ�����ޤ���xmlscan ��
|
40
|
-
���Τ褦�ʵ�ǽ������饤�֥��Υ�����ʬ�Ȥ��ƻȤ��뤳�Ȥ�
|
41
|
-
���ꤷ�Ƥ��ޤ���
|
42
|
-
</dd>
|
43
|
-
<dt><a name="label-7" id="label-7">HTML</a></dt><!-- RDLabel: "HTML" -->
|
44
|
-
<dd>
|
45
|
-
���ޥ��� HTML ��ʸ���Ϥ��� htmlscan ���դ��Ƥ��ޤ���
|
46
|
-
</dd>
|
47
|
-
</dl>
|
48
|
-
<h2><a name="label-8" id="label-8">ʸ�������ǥ��ˤĤ���</a></h2><!-- RDLabel: "ʸ�������ǥ��ˤĤ���" -->
|
49
|
-
<p>�ǥե���ȤǤϡ�xmlscan ���ɤ� CES (Character Encoding Scheme) ��
|
50
|
-
XMLʸ�����Ϥ��뤫�ϥ������Х��ѿ� $KCODE ���ͤˤ�äƷ�ޤ�ޤ���
|
51
|
-
EUC-*, Shift_JIS, UTF-8 �ǽ줿XMLʸ�����Ϥ���ˤ� $KCODE ��
|
52
|
-
<!-- Reference, RDLabel "XMLScan::XMLScanner#kcode=" doesn't exist --><em class="label-not-found">XMLScan::XMLScanner#kcode=</em><!-- Reference end --> ��Ŭ�ڤ��ͤ����ꤹ��ɬ�פ�����ޤ���</p>
|
53
|
-
<p>UTF-16 ��ľ�ܥ��ݡ��Ȥ��Ƥ��ޤ��������˰�ö UTF-8 ���Ѵ�����
|
54
|
-
ɬ�פ�����ޤ���</p>
|
55
|
-
<h2><a name="label-9" id="label-9">XML̾�����֤ˤĤ���</a></h2><!-- RDLabel: "XML̾�����֤ˤĤ���" -->
|
56
|
-
<p>XML̾�����֤� xmlscan/namespace.rb �Ǽ�������Ƥ��ޤ����������ե�������
|
57
|
-
�礭���ѹ�����ͽ�꤬���뤿�� undocumented �Ȥ��ޤ���</p>
|
58
|
-
<h2><a name="label-10" id="label-10">���饹��ե����</a></h2><!-- RDLabel: "���饹��ե����" -->
|
59
|
-
<h3><a name="label-11" id="label-11">XMLScan::Error</a></h3><!-- RDLabel: "XMLScan::Error" -->
|
60
|
-
<p>xmlscan �˴ؤ������Ƥ��㳰�Υ����ѡ����饹��</p>
|
61
|
-
<p>�������㳰�ϡ�XMLScan::Visitor �Υ�������XMLScan::XMLScanner ��
|
62
|
-
XMLScan::XMLParser ���饨�顼���������ä��Ȥ��ˡ��ǥե���Ȥ�ȯ��������
|
63
|
-
��ΤǤ����ƥѡ�����ľ�ܤ������㳰���ꤲ�뤳�ȤϤ���ޤ���</p>
|
64
|
-
<dl>
|
65
|
-
<dt><a name="label-12" id="label-12">XMLScan::ParseError</a></dt><!-- RDLabel: "XMLScan::ParseError" -->
|
66
|
-
<dd>
|
67
|
-
������§�˥ޥå����ʤ����������ȿ�ʳ��Υ��顼��
|
68
|
-
</dd>
|
69
|
-
<dt><a name="label-13" id="label-13">XMLScan::NotWellFormedError</a></dt><!-- RDLabel: "XMLScan::NotWellFormedError" -->
|
70
|
-
<dd>
|
71
|
-
����������˰�ȿ���Ƥ��롣
|
72
|
-
</dd>
|
73
|
-
<dt><a name="label-14" id="label-14">XMLScan::NotValidError</a></dt><!-- RDLabel: "XMLScan::NotValidError" -->
|
74
|
-
<dd>
|
75
|
-
����������˰�ȿ���Ƥ��롣
|
76
|
-
</dd>
|
77
|
-
</dl>
|
78
|
-
<h3><a name="label-15" id="label-15">XMLScan::Visitor</a></h3><!-- RDLabel: "XMLScan::Visitor" -->
|
79
|
-
<p>XMLʸ��β��Ϸ�̤������뤿��� Mix-in �Ǥ���</p>
|
80
|
-
<p>xmlscan �˴ޤޤ��� parser �ϡ�ʸ�����Ƭ���鹽ʸ���Ϥ�Ԥ�����������
|
81
|
-
��ʸ���ǤĤ��뤿�Ӥˡ��ѡ�����Ϳ����줿 XMLScan::Visitor ��
|
82
|
-
����������Υ�åɤ�ƤӽФ��ޤ������θƤӽФ��ϡ�ɬ��ʸ���
|
83
|
-
��Ƭ������֤˹Ԥ��ޤ���</p>
|
84
|
-
<h4><a name="label-16" id="label-16">��å�:</a></h4><!-- RDLabel: "��å�:" -->
|
85
|
-
<p>�ä˵��Ҥ�̵���¤ꡢ�ƥ�åɤϥǥե���ȤǤϲ��⤷�ޤ���</p>
|
86
|
-
<dl>
|
87
|
-
<dt><a name="label-17" id="label-17"><code>XMLScan::Visitor#parse_error(<var>msg</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#parse_error" -->
|
88
|
-
<dd>
|
89
|
-
������§�˥ޥå����ʤ����������ȿ�ʳ��Υ��顼��ȯ����������
|
90
|
-
�ƤӽФ���ޤ����ǥե���ȤǤ� <a href="#label-12">XMLScan::ParseError</a>�㳰��
|
91
|
-
ȯ�������ޤ����㳰�����������æ�Ф�Ԥ鷺�����̤������
|
92
|
-
�ѡ������֤��ȡ��ѡ����ϥ��顼��������Ʋ��Ϥ�³���ޤ���</dd>
|
93
|
-
<dt><a name="label-18" id="label-18"><code>XMLScan::Visitor#wellformed_error(<var>msg</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#wellformed_error" -->
|
94
|
-
<dd>
|
95
|
-
�����������ȿ��ȯ���������˸ƤӽФ���ޤ����ǥե���ȤǤ�
|
96
|
-
<a href="#label-13">XMLScan::NotWellFormedError</a>�㳰��ȯ�������ޤ����㳰��������
|
97
|
-
���æ�Ф�Ԥ鷺�����̤������ѡ������֤��ȡ��ѡ����ϥ��顼��
|
98
|
-
�������Ʋ��Ϥ�³���ޤ���</dd>
|
99
|
-
<dt><a name="label-19" id="label-19"><code>XMLScan::Visitor#valid_error(<var>msg</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#valid_error" -->
|
100
|
-
<dd>
|
101
|
-
<p>�����������ȿ��ȯ���������˸ƤӽФ���ޤ����ǥե���ȤǤ�
|
102
|
-
<a href="#label-14">XMLScan::NotValidError</a>�㳰��ȯ�������ޤ����㳰��������
|
103
|
-
���æ�Ф�Ԥ鷺�����̤������ѡ������֤��ȡ��ѡ����ϥ��顼��
|
104
|
-
�������Ʋ��Ϥ�³���ޤ���</p>
|
105
|
-
<p>�ʤ������ߤ� xmlscan �ˤ��������ڤ���XML�ץ�������
|
106
|
-
�ޤޤ�Ƥ��ޤ����Υ�åɤϾ�����ǤΤ����ͽ��Ƥ��ޤ���</p></dd>
|
107
|
-
<dt><a name="label-20" id="label-20"><code>XMLScan::Visitor#warning(<var>msg</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#warning" -->
|
108
|
-
<dd>
|
109
|
-
���顼�ǤϤʤ����侩����ʤ������䡢xmlscan �ǤϽ�ʬ�˲��ϤǤ��ʤ�
|
110
|
-
��ʸ��ȯ���������˸ƤӽФ���ޤ���</dd>
|
111
|
-
<dt><a name="label-21" id="label-21"><code>XMLScan::Visitor#on_start_document</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_start_document" -->
|
112
|
-
<dd>
|
113
|
-
XMLʸ��β��Ϥ�Ϥ��ľ���˸ƤӽФ���ޤ������Υ�åɤ��ƤӽФ��줿
|
114
|
-
��ˤ�ɬ�����б����� <a href="#label-22">XMLScan::Visitor#on_end_document</a> ��åɤ�
|
115
|
-
�ƤӽФ���ޤ���</dd>
|
116
|
-
<dt><a name="label-22" id="label-22"><code>XMLScan::Visitor#on_end_document</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_end_document" -->
|
117
|
-
<dd>
|
118
|
-
XMLʸ��ν�ü�ޤDz��Ϥ����ä���˸ƤӽФ���ޤ���</dd>
|
119
|
-
<dt><a name="label-23" id="label-23"><code>XMLScan::Visitor#on_xmldecl</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_xmldecl" -->
|
120
|
-
<dt><a name="label-24" id="label-24"><code>XMLScan::Visitor#on_xmldecl_version(<var>str</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_xmldecl_version" -->
|
121
|
-
<dt><a name="label-25" id="label-25"><code>XMLScan::Visitor#on_xmldecl_encoding(<var>str</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_xmldecl_encoding" -->
|
122
|
-
<dt><a name="label-26" id="label-26"><code>XMLScan::Visitor#on_xmldecl_standalone(<var>str</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_xmldecl_standalone" -->
|
123
|
-
<dt><a name="label-27" id="label-27"><code>XMLScan::Visitor#on_xmldecl_other(<var>name</var>, <var>value</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_xmldecl_other" -->
|
124
|
-
<dt><a name="label-28" id="label-28"><code>XMLScan::Visitor#on_xmldecl_end</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_xmldecl_end" -->
|
125
|
-
<dd>
|
126
|
-
<p>XML�����ȯ���������˸ƤӽФ���ޤ���</p>
|
127
|
-
<pre><?xml version="1.0" encoding="euc-jp" standalone="yes" ?>
|
128
|
-
^ ^ ^ ^ ^
|
129
|
-
1 2 3 4 5
|
130
|
-
|
131
|
-
method argument
|
132
|
-
--------------------------------------
|
133
|
-
1: on_xmldecl
|
134
|
-
2: on_xmldecl_version ("1.0")
|
135
|
-
3: on_xmldecl_encoding ("euc-jp")
|
136
|
-
4: on_xmldecl_standalone ("yes")
|
137
|
-
5: on_xmldecl_end</pre>
|
138
|
-
<p>XML�����ȯ��������硢on_xmldecl �� on_xmldecl_end ��ɬ��
|
139
|
-
�ƤӽФ���ޤ���¾�Υ�åɤ��б����빽ʸ��XML������
|
140
|
-
����ʤ��ä����ϸƤӽФ���ޤ���</p>
|
141
|
-
<p>on_xmldecl_other �� version, encoding, standalone �ʳ��������
|
142
|
-
XML�������ˤ��ä����˸ƤӽФ���ޤ������Τ褦������Ϲ�ʸ��
|
143
|
-
������Ƥ��ʤ����ᡢon_xmldecl_other ���ƤӽФ�������ˤ�ɬ��
|
144
|
-
<a href="#label-17">XMLScan::Visitor#parse_error</a> ��åɤ��ƤӽФ���뤳�Ȥ�
|
145
|
-
���դ��Ʋ�������</p></dd>
|
146
|
-
<dt><a name="label-29" id="label-29"><code>XMLScan::Visitor#on_doctype(<var>root</var>, <var>pubid</var>, <var>sysid</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_doctype" -->
|
147
|
-
<dd>
|
148
|
-
<p>ʸ�������ȯ���������˸ƤӽФ���ޤ���</p>
|
149
|
-
<pre>document argument</pre>
|
150
|
-
<pre>--------------------------------------------------------------
|
151
|
-
1: <!DOCTYPE foo> ('foo', nil, nil)
|
152
|
-
2: <!DOCTYPE foo SYSTEM "bar"> ('foo', nil, 'bar')
|
153
|
-
3: <!DOCTYPE foo PUBLIC "bar"> ('foo', 'bar', nil )
|
154
|
-
4: <!DOCTYPE foo PUBLIC "bar" "baz"> ('foo', 'bar', 'baz')</pre></dd>
|
155
|
-
<dt><a name="label-30" id="label-30"><code>XMLScan::Visitor#on_prolog_space(<var>str</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_prolog_space" -->
|
156
|
-
<dd>
|
157
|
-
������˶����ȯ���������˸ƤӽФ���ޤ���</dd>
|
158
|
-
<dt><a name="label-31" id="label-31"><code>XMLScan::Visitor#on_comment(<var>str</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_comment" -->
|
159
|
-
<dd>
|
160
|
-
�����Ȥ�ȯ���������˸ƤӽФ���ޤ���</dd>
|
161
|
-
<dt><a name="label-32" id="label-32"><code>XMLScan::Visitor#on_pi(<var>target</var>, <var>pi</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_pi" -->
|
162
|
-
<dd>
|
163
|
-
����̿���ȯ���������˸ƤӽФ���ޤ���</dd>
|
164
|
-
<dt><a name="label-33" id="label-33"><code>XMLScan::Visitor#on_chardata(<var>str</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_chardata" -->
|
165
|
-
<dd>
|
166
|
-
ʸ���ǡ�����ȯ���������˸ƤӽФ���ޤ���</dd>
|
167
|
-
<dt><a name="label-34" id="label-34"><code>XMLScan::Visitor#on_cdata(<var>str</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_cdata" -->
|
168
|
-
<dd>
|
169
|
-
CDATA����������ȯ���������˸ƤӽФ���ޤ���</dd>
|
170
|
-
<dt><a name="label-35" id="label-35"><code>XMLScan::Visitor#on_entityref(<var>ref</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_entityref" -->
|
171
|
-
<dd>
|
172
|
-
°���ͤ���ʳ��ξ��ǰ��̼��λ��Ȥ�ȯ���������˸ƤӽФ���ޤ���</dd>
|
173
|
-
<dt><a name="label-36" id="label-36"><code>XMLScan::Visitor#on_charref(<var>code</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_charref" -->
|
174
|
-
<dt><a name="label-37" id="label-37"><code>XMLScan::Visitor#on_charref_hex(<var>code</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_charref_hex" -->
|
175
|
-
<dd>
|
176
|
-
°���ͤ���ʳ��ξ���ʸ�����Ȥ�ȯ���������˸ƤӽФ���ޤ���
|
177
|
-
ʸ�������ɤ�10�ʿ��ǻ��ꤵ��Ƥ������� on_charref��16�ʿ���
|
178
|
-
���ꤵ��Ƥ������� on_charref_hex ���ƤӽФ���ޤ���
|
179
|
-
<var>code</var>�������Ǥ���</dd>
|
180
|
-
<dt><a name="label-38" id="label-38"><code>XMLScan::Visitor#on_stag(<var>name</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_stag" -->
|
181
|
-
<dt><a name="label-39" id="label-39"><code>XMLScan::Visitor#on_attribute(<var>name</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_attribute" -->
|
182
|
-
<dt><a name="label-40" id="label-40"><code>XMLScan::Visitor#on_attr_value(<var>str</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_attr_value" -->
|
183
|
-
<dt><a name="label-41" id="label-41"><code>XMLScan::Visitor#on_attr_entityref(<var>ref</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_attr_entityref" -->
|
184
|
-
<dt><a name="label-42" id="label-42"><code>XMLScan::Visitor#on_attr_charref(<var>code</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_attr_charref" -->
|
185
|
-
<dt><a name="label-43" id="label-43"><code>XMLScan::Visitor#on_attr_charref_hex(<var>code</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_attr_charref_hex" -->
|
186
|
-
<dt><a name="label-44" id="label-44"><code>XMLScan::Visitor#on_attribute_end(<var>name</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_attribute_end" -->
|
187
|
-
<dt><a name="label-45" id="label-45"><code>XMLScan::Visitor#on_stag_end_empty(<var>name</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_stag_end_empty" -->
|
188
|
-
<dt><a name="label-46" id="label-46"><code>XMLScan::Visitor#on_stag_end(<var>name</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_stag_end" -->
|
189
|
-
<dd>
|
190
|
-
<p>���ϥ�����ȯ���������˸ƤӽФ���ޤ���</p>
|
191
|
-
<pre><hoge fuga="foo&bar;&#38;&#x26;baz" >
|
192
|
-
^ ^ ^ ^ ^ ^ ^ ^ ^
|
193
|
-
1 2 3 4 5 6 7 8 9
|
194
|
-
|
195
|
-
method argument
|
196
|
-
------------------------------------
|
197
|
-
1: on_stag ('hoge')
|
198
|
-
2: on_attribute ('fuga')
|
199
|
-
3: on_attr_value ('foo')
|
200
|
-
4: on_attr_entityref ('bar')
|
201
|
-
5: on_attr_charref (38)
|
202
|
-
6: on_attr_charref_hex (38)
|
203
|
-
7: on_attr_value ('baz')
|
204
|
-
8: on_attribute_end ('fuga')
|
205
|
-
9: on_stag_end ('hoge')
|
206
|
-
or
|
207
|
-
on_stag_end_empty ('hoge')</pre>
|
208
|
-
<p>���ϥ�����ȯ��������硢on_stag �ȡ��б����� on_stag_end ����
|
209
|
-
on_stag_end_empty ��ɬ���ƤӽФ���ޤ���¾�Υ�åɤϡ����ϥ�����
|
210
|
-
���°��������ʤ��ä����ϸƤӽФ���ޤ���</p>
|
211
|
-
<p>°����ȯ��������硢on_attribute �� on_attribute_end ��ɬ��
|
212
|
-
�ƤӽФ���ޤ���°���ͤ��� (fuga="") �λ��ϡ�����2�ĤΥ�åɤΤߤ�
|
213
|
-
�ƤӽФ���ޤ���</p>
|
214
|
-
<p>on_attr_entityref ��°���ͤ���ǰ��̼��λ��Ȥ�ȯ����������
|
215
|
-
�ƤӽФ���ޤ���on_charref �ڤ� on_charref_hex ��°���ͤ����
|
216
|
-
ʸ�����Ȥ�ȯ���������˸ƤӽФ���ޤ���</p>
|
217
|
-
<p>�����������ǥ������ä����ϡ�on_stag_end ��åɤ������
|
218
|
-
on_stag_end_empty ��åɤ��ƤӽФ���ޤ���</p></dd>
|
219
|
-
<dt><a name="label-47" id="label-47"><code>XMLScan::Visitor#on_etag(<var>name</var>)</code></a></dt><!-- RDLabel: "XMLScan::Visitor#on_etag" -->
|
220
|
-
<dd>
|
221
|
-
��λ������ȯ���������˸ƤӽФ���ޤ���</dd>
|
222
|
-
</dl>
|
223
|
-
<h3><a name="label-48" id="label-48">XMLScan::XMLScanner</a></h3><!-- RDLabel: "XMLScan::XMLScanner" -->
|
224
|
-
<p>XMLʸ��������Ϥ�����������ǧ�����륹����ʤǤ���</p>
|
225
|
-
<p>XMLScan::XMLScanner �ε���Ŭ�����ˤĤ��Ƥϡ�¾��ʸ��ǽҤ٤Ƥ��ޤ���</p>
|
226
|
-
<h4><a name="label-49" id="label-49">�����ѡ����饹:</a></h4><!-- RDLabel: "�����ѡ����饹:" -->
|
227
|
-
<ul>
|
228
|
-
<li>Object</li>
|
229
|
-
</ul>
|
230
|
-
<h4><a name="label-50" id="label-50">���饹��å�:</a></h4><!-- RDLabel: "���饹��å�:" -->
|
231
|
-
<dl>
|
232
|
-
<dt><a name="label-51" id="label-51"><code>XMLScan::XMLScanner.new(<var>visitor</var>[, <var>option</var> ...])</code></a></dt><!-- RDLabel: "XMLScan::XMLScanner.new" -->
|
233
|
-
<dd>
|
234
|
-
<p>XMLScan::XMLScanner ���֥������Ȥ��������ޤ���<var>visitor</var>��
|
235
|
-
XMLScan::Visitor �Υ����ǡ�XMLScan::XMLScanner ���֥������Ȥ���
|
236
|
-
���Ϸ�̤�������ޤ���</p>
|
237
|
-
<p><var>option</var>��ʸ�������ϥ���ܥ�ǻ��ꤷ�ޤ���option�ˤ�
|
238
|
-
���Τ�Τ�����ޤ���</p>
|
239
|
-
<dl>
|
240
|
-
<dt><a name="label-52" id="label-52">'strict_char'</a></dt><!-- RDLabel: "'strict_char'" -->
|
241
|
-
<dd>
|
242
|
-
<code>require 'xmlscan/xmlchar'</code> ����Ȼ���Ǥ���褦�ˤʤ�ޤ���
|
243
|
-
������ʸ�����Ȥ��Ƥ��ʤ����ɤ����Υ����å���Ԥ��ޤ���
|
244
|
-
�ѥե����ޥ��������㲼���ޤ���
|
245
|
-
</dd>
|
246
|
-
</dl></dd>
|
247
|
-
</dl>
|
248
|
-
<h4><a name="label-53" id="label-53">��å�:</a></h4><!-- RDLabel: "��å�:" -->
|
249
|
-
<dl>
|
250
|
-
<dt><a name="label-54" id="label-54"><code>XMLScan::XMLScanner#kcode= <var>arg</var></code></a></dt><!-- RDLabel: "XMLScan::XMLScanner#kcode= arg" -->
|
251
|
-
<dd>
|
252
|
-
CES����ꤷ�ޤ���<var>arg</var>�β��ϡ�nil ������� $KCODE ��Ʊ���Ǥ���
|
253
|
-
<var>arg</var>�� nil �ΤȤ��ϡ��ɤ� CES �Dz��Ϥ�Ԥ����� $KCODE ���ͤˤ�ä�
|
254
|
-
��ޤ�ޤ���</dd>
|
255
|
-
<dt><a name="label-55" id="label-55"><code>XMLScan::XMLScanner#kcode</code></a></dt><!-- RDLabel: "XMLScan::XMLScanner#kcode" -->
|
256
|
-
<dd>
|
257
|
-
�ɤ� CES �Dz��Ϥ�Ԥ����� Regexp#kcode ��Ʊ���������֤��ޤ���
|
258
|
-
nil�ΤȤ���$KCODE�˰�¸���뤳�Ȥ�ɽ���ޤ���</dd>
|
259
|
-
<dt><a name="label-56" id="label-56"><code>XMLScan::XMLScanner#parse(<var>source</var>)</code></a></dt><!-- RDLabel: "XMLScan::XMLScanner#parse" -->
|
260
|
-
<dd>
|
261
|
-
<var>source</var> ��XMLʸ��Ȥ��Ʋ��Ϥ��ޤ���<var>source</var> ��ʸ����
|
262
|
-
ʸ������������� IO#gets ��Ʊ�������� gets ��åɤ����
|
263
|
-
���֥������ȤǤʤ���Фʤ�ޤ���</dd>
|
264
|
-
</dl>
|
265
|
-
<h3><a name="label-57" id="label-57">XMLScan::XMLParser</a></h3><!-- RDLabel: "XMLScan::XMLParser" -->
|
266
|
-
<p>�������ڤ��ʤ� XML parser �Ǥ���</p>
|
267
|
-
<p>XMLScan::XMLParser �ε���Ŭ�����ˤĤ��Ƥϡ�¾��ʸ��ǽҤ٤Ƥ��ޤ���</p>
|
268
|
-
<h4><a name="label-58" id="label-58">�����ѡ����饹:</a></h4><!-- RDLabel: "�����ѡ����饹:" -->
|
269
|
-
<ul>
|
270
|
-
<li><a href="#label-48">XMLScan::XMLScanner</a></li>
|
271
|
-
</ul>
|
272
|
-
<h4><a name="label-59" id="label-59">���饹��å�:</a></h4><!-- RDLabel: "���饹��å�:" -->
|
273
|
-
<dl>
|
274
|
-
<dt><a name="label-60" id="label-60"><code>XMLScan::XMLParser.new(<var>visitor</var>[, <var>option</var> ...])</code></a></dt><!-- RDLabel: "XMLScan::XMLParser.new" -->
|
275
|
-
<dd>
|
276
|
-
<p>XMLScan::XMLParser ���֥������Ȥ�<var>visitor</var>�γƥ�åɤˤĤ��ơ�
|
277
|
-
���Τ��Ȥ��ݾڤ��ޤ���</p>
|
278
|
-
<dl>
|
279
|
-
<dt><a name="label-61" id="label-61"><a href="#label-38">XMLScan::Visitor#on_stag</a></a></dt><!-- RDLabel: "XMLScan::Visitor#on_stag" -->
|
280
|
-
<dd>
|
281
|
-
���Υ�åɤ�ƤӽФ�����ˡ��б����� <a href="#label-47">XMLScan::Visitor#on_etag</a>
|
282
|
-
��åɤ�ɬ���ƤӽФ��ޤ���
|
283
|
-
</dd>
|
284
|
-
</dl>
|
285
|
-
<p>�ä��ơ����顼������Ԥ�ʤ���С���������XMLʸ��Ǥϵ��������ʤ�
|
286
|
-
��åɸƤӽФ���������������ޤ���</p></dd>
|
287
|
-
</dl>
|
288
|
-
<h3><a name="label-62" id="label-62">XMLScan::HTMLScanner</a></h3><!-- RDLabel: "XMLScan::HTMLScanner" -->
|
289
|
-
<p><a href="#label-48">XMLScan::XMLScanner</a> �ˤ��� HTML �ѡ����Ǥ���</p>
|
290
|
-
<p>XMLScan::HTMLScanner �ε���Ŭ�����ˤĤ��Ƥϡ�¾��ʸ��ǽҤ٤Ƥ��ޤ���</p>
|
291
|
-
<h4><a name="label-63" id="label-63">�����ѡ����饹:</a></h4><!-- RDLabel: "�����ѡ����饹:" -->
|
292
|
-
<ul>
|
293
|
-
<li><a href="#label-48">XMLScan::XMLScanner</a></li>
|
294
|
-
</ul>
|
295
|
-
<h4><a name="label-64" id="label-64">���饹��å�:</a></h4><!-- RDLabel: "���饹��å�:" -->
|
296
|
-
<dl>
|
297
|
-
<dt><a name="label-65" id="label-65"><code>XMLScan::HTMLScanner.new(<var>visitor</var>[, <var>option</var> ...])</code></a></dt><!-- RDLabel: "XMLScan::HTMLScanner.new" -->
|
298
|
-
<dd>
|
299
|
-
XMLScan::HTMLScanner ���֥������Ȥ�<var>visitor</var>�γƥ�åɤˤĤ��ơ�
|
300
|
-
���Τ��Ȥ��ݾڤ��ޤ���
|
301
|
-
<dl>
|
302
|
-
<dt><a name="label-66" id="label-66"><a href="#label-23">XMLScan::Visitor#on_xmldecl</a></a></dt><!-- RDLabel: "XMLScan::Visitor#on_xmldecl" -->
|
303
|
-
<dt><a name="label-67" id="label-67"><a href="#label-24">XMLScan::Visitor#on_xmldecl_version</a></a></dt><!-- RDLabel: "XMLScan::Visitor#on_xmldecl_version" -->
|
304
|
-
<dt><a name="label-68" id="label-68"><a href="#label-25">XMLScan::Visitor#on_xmldecl_encoding</a></a></dt><!-- RDLabel: "XMLScan::Visitor#on_xmldecl_encoding" -->
|
305
|
-
<dt><a name="label-69" id="label-69"><a href="#label-26">XMLScan::Visitor#on_xmldecl_standalone</a></a></dt><!-- RDLabel: "XMLScan::Visitor#on_xmldecl_standalone" -->
|
306
|
-
<dt><a name="label-70" id="label-70"><a href="#label-28">XMLScan::Visitor#on_xmldecl_end</a></a></dt><!-- RDLabel: "XMLScan::Visitor#on_xmldecl_end" -->
|
307
|
-
<dd>
|
308
|
-
HTML �ˤ� XML�����¸�ߤ��ʤ��Τǡ������Υ�åɤ�ƤӽФ����Ȥ�
|
309
|
-
����ޤ���
|
310
|
-
</dd>
|
311
|
-
<dt><a name="label-71" id="label-71"><a href="#label-45">XMLScan::Visitor#on_stag_end_empty</a></a></dt><!-- RDLabel: "XMLScan::Visitor#on_stag_end_empty" -->
|
312
|
-
<dd>
|
313
|
-
HTML �ˤ϶����ǥ�����¸�ߤ��ʤ��Τǡ����Υ�åɤ�ƤӽФ����Ȥ�
|
314
|
-
����ޤ������ǥ����ϲ��ϥ��顼�ˤʤ�ޤ���
|
315
|
-
</dd>
|
316
|
-
<dt><a name="label-72" id="label-72"><a href="#label-18">XMLScan::Visitor#wellformed_error</a></a></dt><!-- RDLabel: "XMLScan::Visitor#wellformed_error" -->
|
317
|
-
<dd>
|
318
|
-
HTML �ˤ�����������¸�ߤ��ʤ��Τǡ����Υ�åɤ�ƤӽФ����Ȥ�
|
319
|
-
����ޤ���
|
320
|
-
</dd>
|
321
|
-
</dl></dd>
|
322
|
-
</dl>
|
323
|
-
|
324
|
-
</body>
|
325
|
-
</html>
|