File size: 5,284 Bytes
6baed57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
xml_decl="<?xml version='1.0'?>"
xml_decl_standalone="<?xml version='1.0' standalone='1'?>"
xml_decl_latin1="<?xml version='1.0' encoding='ISO-8859-1'?>"

elem_start_end="<a></a>"
elem_empty="<a/>"
elem_ns_start_end="<a:a xmlns:a='a'></a:a>"
elem_ns_empty="<a:a xmlns:a='a'/>"

attr=" a='a'"

ns_decl=" xmlns:a='a'"
ns_default=" xmlns='a'"
ns_prefix="a:"

cdata_section="<![CDATA[ ]]>"

comment="<!-- -->"

pi="<?a?>"

doctype="<!DOCTYPE a []>"
doctype_system="<!DOCTYPE a SYSTEM 'a' []>"
doctype_system="<!DOCTYPE a PUBLIC 'a' 'a' []>"

elem_decl_any="<!ELEMENT a ANY>"
elem_decl_empty="<!ELEMENT a EMPTY>"
elem_decl_children="<!ELEMENT a (a)>"
elem_decl_mixed="<!ELEMENT a (#PCDATA|a)>"
elem_children_choice="|a"
elem_children_seq=",a"
elem_children_sub_choice="|(a)"
elem_children_sub_seq=",(a)"
elem_quant_any="*"
elem_quant_opt="?"
elem_quant_some="+"

attr_decl_cdata_req="<!ATTLIST a a CDATA #REQUIRED>"
attr_decl_cdata_imp="<!ATTLIST a a CDATA #IMPLIED>"
attr_decl_cdata_def="<!ATTLIST a a CDATA 'a'>"
attr_decl_cdata_fix="<!ATTLIST a a CDATA #FIXED 'a'>"
attr_decl_id_imp="<!ATTLIST a a ID #IMPLIED>"
attr_decl_id_req="<!ATTLIST a a ID #REQUIRED>"
attr_decl_id_def="<!ATTLIST a a ID 'a'>"
attr_decl_id_fix="<!ATTLIST a a ID #FIXED 'a'>"
attr_decl_idref_imp="<!ATTLIST a a IDREF #IMPLIED>"
attr_decl_idref_req="<!ATTLIST a a IDREF #REQUIRED>"
attr_decl_idref_def="<!ATTLIST a a IDREF 'a'>"
attr_decl_idref_fix="<!ATTLIST a a IDREF #FIXED 'a'>"
attr_decl_idrefs_imp="<!ATTLIST a a IDREFS #IMPLIED>"
attr_decl_idrefs_req="<!ATTLIST a a IDREFS #REQUIRED>"
attr_decl_idrefs_def="<!ATTLIST a a IDREFS 'a'>"
attr_decl_idrefs_fix="<!ATTLIST a a IDREFS #FIXED 'a'>"
attr_decl_entity_imp="<!ATTLIST a a ENTITY #IMPLIED>"
attr_decl_entity_req="<!ATTLIST a a ENTITY #REQUIRED>"
attr_decl_entity_def="<!ATTLIST a a ENTITY 'a'>"
attr_decl_entity_fix="<!ATTLIST a a ENTITY #FIXED 'a'>"
attr_decl_entities_imp="<!ATTLIST a a ENTITIES #IMPLIED>"
attr_decl_entities_req="<!ATTLIST a a ENTITIES #REQUIRED>"
attr_decl_entities_def="<!ATTLIST a a ENTITIES 'a'>"
attr_decl_entities_fix="<!ATTLIST a a ENTITIES #FIXED 'a'>"
attr_decl_nmtoken_imp="<!ATTLIST a a NMTOKEN #IMPLIED>"
attr_decl_nmtoken_req="<!ATTLIST a a NMTOKEN #REQUIRED>"
attr_decl_nmtoken_def="<!ATTLIST a a NMTOKEN 'a'>"
attr_decl_nmtoken_fix="<!ATTLIST a a NMTOKEN #FIXED 'a'>"
attr_decl_nmtokens_imp="<!ATTLIST a a NMTOKENS #IMPLIED>"
attr_decl_nmtokens_req="<!ATTLIST a a NMTOKENS #REQUIRED>"
attr_decl_nmtokens_def="<!ATTLIST a a NMTOKENS 'a'>"
attr_decl_nmtokens_fix="<!ATTLIST a a NMTOKENS #FIXED 'a'>"
attr_decl_enum_imp="<!ATTLIST a a (a) #IMPLIED>"
attr_decl_enum_req="<!ATTLIST a a (a) #REQUIRED>"
attr_decl_enum_def="<!ATTLIST a a (a) 'a'>"
attr_decl_enum_fix="<!ATTLIST a a (a) #FIXED 'a'>"
attr_decl_notation_imp="<!ATTLIST a a NOTATION (a) #IMPLIED>"
attr_decl_notation_req="<!ATTLIST a a NOTATION (a) #REQUIRED>"
attr_decl_notation_def="<!ATTLIST a a NOTATION (a) 'a'>"
attr_decl_notation_fix="<!ATTLIST a a NOTATION (a) #FIXED 'a'>"

include_sect="<![INCLUDE[ ]]>"
ignore_sect="<![IGNORE[ ]]>"

ge_decl="<!ENTITY a 'a'>"
ge_decl_system="<!ENTITY a SYSTEM 'a'>"
ge_decl_system_ndata="<!ENTITY a SYSTEM 'a' NDATA a>"
ge_decl_public="<!ENTITY a PUBLIC 'a' 'a'>"
ge_decl_public_ndata="<!ENTITY a PUBLIC 'a' 'a' NDATA a>"

pe_decl="<!ENTITY % a 'a'>"
pe_decl_system="<!ENTITY % a SYSTEM 'a'>"
pe_decl_public="<!ENTITY % a PUBLIC 'a' 'a'>"

char_ref_dec="&#60;"
char_ref_hex="&#x3c;"
char_ref_quoted="&#38;#60;"

ge_ref_lt="&lt;"
ge_ref_gt="&gt;"
ge_ref_amp="&amp;"
ge_ref_apos="&apos;"
ge_ref_quot="&quot;"
ge_ref="&a;"
ge_ref_quoted="&#38;a;"

pe_ref="%a;"
pe_ref_quoted="&#37;a;"

notation_decl_public="<!NOTATION a PUBLIC 'a'>"
notation_decl_system="<!NOTATION a SYSTEM 'a'>"

cs_utf8="UTF-8"
cs_utf16="UTF-16"
cs_utf16le="UTF-16LE"
cs_utf16be="UTF-16BE"
cs_ucs2="UCS-2"
cs_ucs4="UCS-4"
cs_latin1="ISO-8859-1"
cs_ascii="ASCII"
cs_ebcdic="EBCDIC"
cs_iso2022jp="ISO-2022-JP"
cs_shift_jis="SHIFT_JIS"
cs_euc_jp="EUC-JP"

# XPath

axis_ancestor="ancestor::"
axis_ancestor_or_self="ancestor-or-self::"
axis_attribute="attribute::"
axis_attribute_abbrev="@"
axis_child="child::"
axis_descendant="descendant::"
axis_descendant_or_self="descendant-or-self::"
axis_following="following::"
axis_following_sibling="following-sibling::"
axis_namespace="namespace::"
axis_parent="parent::"
axis_preceding="preceding::"
axis_preceding_siblings="preceding-sibling::"
axis_self="self::"

node_test_ns="a:"

val_num="=(1.0)"
val_str_sq="=('a')"
val_str_dq="=(\"a\")"
val_node_set="=(*)"
val_elem="=(b)"

step_root="/"
step_descendant="//"
step_any="//*"
step_any_l="*//"
step_elem="//b"
step_ns_elem="//a:a"
step_comment="//comment()"
step_node="//node()"
step_node_l="node()//"
step_pi="//processing-instruction()"
step_text="//text()"
step_parent="../"

op_plus="+1"
op_minus=" - 1"
op_neg="-"
op_mul="*1"
op_div=" div 1"
op_mod=" mod 1"
op_and=" and 1"
op_or=" or 1"
op_ne="!=1"
op_lt="<1"
op_gt=">1"
op_le="<=1"
op_ge=">=1"
op_predicate_num="[1]"
op_predicate_last="[last()]"
op_predicate_str="['a']"
op_predicate="[1=1]"
op_arg_num=",1"
op_arg_str=",'a'"
op_arg_node=",*"
op_union="|//b"

var_num="=$f"
var_bool="=$b"
var_str="=$s"
var_node_set="=$n"

# Unicode

utf8_2="\xC3\x84"
utf8_3="\xE2\x80\x9C"
utf8_4="\xF0\x9F\x98\x80"