316 |
$self->_parse_DocumentEntity; |
$self->_parse_DocumentEntity; |
317 |
|
|
318 |
## Replacement tree for general |Entity| nodes |
## Replacement tree for general |Entity| nodes |
319 |
my @ent = values %{$self->{general_entities}}; |
my @ent = values %{$self->{general_entity}}; |
320 |
if (@ent) { |
for my $ent (@ent) { |
321 |
for my $ent (@ent) { |
if (exists $ent->{has_replacement_text}) { |
|
if (exists $ent->{reptxt}) { |
|
322 |
my $ent_name = $ent->{name}; |
my $ent_name = $ent->{name}; |
323 |
$self->{entity} = [<Code::getCopyOfEntityState:: |
$self->{entity} = [<Code::getCopyOfEntityState:: |
324 |
$entity_type = 'general_entity', |
$entity_type = 'general_entity', |
329 |
## TODO: External entity support |
## TODO: External entity support |
330 |
$self->_parse_InternalGeneralParsedEntity ($ent->{node}); |
$self->_parse_InternalGeneralParsedEntity ($ent->{node}); |
331 |
$ent->{node}-><AS::x|Entity.hasReplacementTree> (true); |
$ent->{node}-><AS::x|Entity.hasReplacementTree> (true); |
|
} |
|
|
## TODO: Read-only if configuration (for all entities) |
|
332 |
} |
} |
333 |
|
## TODO: Read-only if configuration (for all entities) |
334 |
} |
} |
335 |
|
|
336 |
$r-><AS::Document.strictErrorChecking> (true); |
$r-><AS::Document.strictErrorChecking> (true); |
2139 |
## TODO: Namespace well-formedness |
## TODO: Namespace well-formedness |
2140 |
$er = $doc-><M::Document.createEntityReference> |
$er = $doc-><M::Document.createEntityReference> |
2141 |
($name); |
($name); |
2142 |
|
$er-><AS::Node.textContent> (''); |
2143 |
|
## NOTE: When document entity (and entities referenced directly |
2144 |
|
## or indirectly from it) is parsed, no general entity |
2145 |
|
## node have its replacement tree. During general |
2146 |
|
## entity node collection construction, however, |
2147 |
|
## some entity node has replacement tree. |
2148 |
$parent-><M::Node.appendChild> ($er); |
$parent-><M::Node.appendChild> ($er); |
2149 |
|
|
2150 |
my $ent = $self->{general_entity}->{$name}; |
my $ent = $self->{general_entity}->{$name}; |
2165 |
} |
} |
2166 |
} # Otherwise VC error |
} # Otherwise VC error |
2167 |
push @{$self->{entity}}, <Code::getEmptyEntityState>; |
push @{$self->{entity}}, <Code::getEmptyEntityState>; |
2168 |
|
$er-><AS::x|EntityReference.isExpanded> (false); |
2169 |
|
|
2170 |
} else { # there IS entity declaration |
} else { # there IS entity declaration |
2171 |
if (($self->{standalone} or not $self->{has_xref}) and |
if (($self->{standalone} or not $self->{has_xref}) and |
2264 |
## TODO: Entity declared constraints |
## TODO: Entity declared constraints |
2265 |
|
|
2266 |
$er = $self->{doc}-><M::Document.createEntityReference> ($name); |
$er = $self->{doc}-><M::Document.createEntityReference> ($name); |
2267 |
|
$er-><AS::Node.textContent> (''); |
2268 |
|
## NOTE: When document entity (and entities referenced directly |
2269 |
|
## or indirectly from it) is parsed, no general entity |
2270 |
|
## node have its replacement tree. During general |
2271 |
|
## entity node collection construction, however, |
2272 |
|
## some entity node has replacement tree. |
2273 |
my $ent = $self->{general_entity}->{$name}; |
my $ent = $self->{general_entity}->{$name}; |
2274 |
push @{$vals->{nodes}}, $er; |
if (not $ent) { # no entity declaration |
2275 |
$er-><AS::x|EntityReference.isExpanded> |
if ($self->{standalone} or not $self->{has_xref}) { # WFC error |
2276 |
|
my $location; |
2277 |
|
__CODE{xp|get-location-from-token:: |
2278 |
|
$token => {$token}, |
2279 |
|
$result => {$location}, |
2280 |
|
}__; |
2281 |
|
my $continue = __DOMCore:ERROR{xp|wf-entity-declared:: |
2282 |
|
xp|error-token => {$token}, |
2283 |
|
c|location => {$location}, |
2284 |
|
xp|name => {$name}, |
2285 |
|
}__; |
2286 |
|
unless ($continue) { |
2287 |
|
__EXCEPTION{DOMLS|PARSE_ERR}__; |
2288 |
|
} |
2289 |
|
} # Otherwise VC error |
2290 |
|
push @{$self->{entity}}, <Code::getEmptyEntityState>; |
2291 |
|
$er-><AS::x|EntityReference.isExpanded> (false); |
2292 |
|
|
2293 |
|
} else { # there IS entity declaration |
2294 |
|
if (($self->{standalone} or not $self->{has_xref}) and |
2295 |
|
$ent->{is_externally_declared} and |
2296 |
|
not $self->{entity}->[-1]->{is_externally_declared}) { |
2297 |
|
my $location; |
2298 |
|
__CODE{xp|get-location-from-token:: |
2299 |
|
$token => {$token}, |
2300 |
|
$result => {$location}, |
2301 |
|
}__; |
2302 |
|
my $continue = __DOMCore:ERROR{xp|wf-entity-declared:: |
2303 |
|
xp|error-token => {$token}, |
2304 |
|
c|location => {$location}, |
2305 |
|
xp|name => {$name}, |
2306 |
|
}__; |
2307 |
|
unless ($continue) { |
2308 |
|
__EXCEPTION{DOMLS|PARSE_ERR}__; |
2309 |
|
} |
2310 |
|
} |
2311 |
|
|
2312 |
|
if ($ent->{is_external_entity}) { |
2313 |
|
my $location; |
2314 |
|
__CODE{xp|get-location-from-token:: |
2315 |
|
$token => {$token}, |
2316 |
|
$result => {$location}, |
2317 |
|
}__; |
2318 |
|
my $continue = __c|ERROR{xp|wf-no-external-entity-references:: |
2319 |
|
xp|error-token => {$token}, |
2320 |
|
c|location => {$location}, |
2321 |
|
xp|name => {$name}, |
2322 |
|
}__; |
2323 |
|
unless ($continue) { |
2324 |
|
__EXCEPTION{DOMLS|PARSE_ERR:: |
2325 |
|
}__; |
2326 |
|
} |
2327 |
|
} # if external entity |
2328 |
|
|
2329 |
|
$er-><AS::x|EntityReference.isExpanded> |
2330 |
($ent->{has_replacement_text}); |
($ent->{has_replacement_text}); |
2331 |
push @{$self->{entity}}, <Code::getCopyOfEntityState:: |
push @{$self->{entity}}, <Code::getCopyOfEntityState:: |
2332 |
$entity_type = 'general_entity', |
$entity_type = 'general_entity', |
2333 |
$entity_name = $name>; |
$entity_name = $name>; |
2334 |
|
} |
2335 |
|
push @{$vals->{nodes}}, $er; |
2336 |
$self->{location} = $self->{entity}->[-1]; |
$self->{location} = $self->{entity}->[-1]; |
2337 |
push @{$self->{entity_token}}, $self->{token}; |
push @{$self->{entity_token}}, $self->{token}; |
2338 |
$self->{token} = []; |
$self->{token} = []; |
2339 |
push @{$self->{entity_char}}, $self->{char}; |
push @{$self->{entity_char}}, $self->{char}; |
2340 |
$self->{char} = []; |
$self->{char} = []; |
|
|
|
|
if ($self->{entity}->[-1]->{is_external_entity}) { |
|
|
my $location; |
|
|
__CODE{xp|get-location-from-token:: |
|
|
$token => {$token}, |
|
|
$result => {$location}, |
|
|
}__; |
|
|
my $continue = __DOMCore:ERROR{xp|wf-no-external-entity-references:: |
|
|
xp|error-token => {$token}, |
|
|
c|location => {$location}, |
|
|
xp|name => {$name}, |
|
|
}__; |
|
|
unless ($continue) { |
|
|
__EXCEPTION{DOMLS|PARSE_ERR:: |
|
|
}__; |
|
|
} |
|
|
} # if external entity |
|
2341 |
} |
} |
2342 |
|
|
2343 |
?lexmode AttributeValueLiteralE; |
?lexmode AttributeValueLiteralE; |
2404 |
## TODO: Entity declared constraints |
## TODO: Entity declared constraints |
2405 |
|
|
2406 |
$er = $self->{doc}-><M::Document.createEntityReference> ($name); |
$er = $self->{doc}-><M::Document.createEntityReference> ($name); |
2407 |
|
$er-><AS::Node.textContent> (''); |
2408 |
|
## NOTE: When document entity (and entities referenced directly |
2409 |
|
## or indirectly from it) is parsed, no general entity |
2410 |
|
## node have its replacement tree. During general |
2411 |
|
## entity node collection construction, however, |
2412 |
|
## some entity node has replacement tree. |
2413 |
my $ent = $self->{general_entity}->{$name}; |
my $ent = $self->{general_entity}->{$name}; |
2414 |
$parent-><M::Node.appendChild> ($er); |
$parent-><M::Node.appendChild> ($er); |
2415 |
$er-><AS::x|EntityReference.isExpanded> |
$er-><AS::x|EntityReference.isExpanded> |
7068 |
]> |
]> |
7069 |
<a b="c&ent;"/> |
<a b="c&ent;"/> |
7070 |
@@@c:erred: <[[xp|wf-no-lt-in-attribute-values]]> { (1, 3); } |
@@@c:erred: <[[xp|wf-no-lt-in-attribute-values]]> { (1, 3); } |
7071 |
|
@@@c:erred: |
7072 |
|
@@@@@: <[[xp|wf-syntax-error]]> { (1, 3)..(1, 6); } |
7073 |
|
@@@@enImplNote: When entity node is created. |
7074 |
@@XMLTest: |
@@XMLTest: |
7075 |
@@@QName: xp.no.lt.in.attr.value.2.test |
@@@QName: xp.no.lt.in.attr.value.2.test |
7076 |
@@@DEnt: |
@@@DEnt: |
7081 |
]> |
]> |
7082 |
<a b="c&ent2;"/> |
<a b="c&ent2;"/> |
7083 |
@@@c:erred: <[[xp|wf-no-lt-in-attribute-values]]> { (1, 3); } |
@@@c:erred: <[[xp|wf-no-lt-in-attribute-values]]> { (1, 3); } |
7084 |
|
@@@c:erred: |
7085 |
|
@@@@@: <[[xp|wf-syntax-error]]> { (1, 3)..(1, 6); } |
7086 |
|
@@@@enImplNote: When entity node is created. |
7087 |
@@XMLTest: |
@@XMLTest: |
7088 |
@@@QName: xp.no.lt.in.attr.value.3.test |
@@@QName: xp.no.lt.in.attr.value.3.test |
7089 |
@@@DEnt: |
@@@DEnt: |
7093 |
]> |
]> |
7094 |
<a b="c&ent;"/> |
<a b="c&ent;"/> |
7095 |
@@@c:erred: <[[xp|wf-no-lt-in-attribute-values]]> { (1, 3); } |
@@@c:erred: <[[xp|wf-no-lt-in-attribute-values]]> { (1, 3); } |
7096 |
|
@@@c:erred: |
7097 |
|
@@@@@: <[[xp|wf-syntax-error]]> { (1, 3)..(1, 6); } |
7098 |
|
@@@@enImplNote: When entity node is created. |
7099 |
@@XMLTest: |
@@XMLTest: |
7100 |
@@@QName: xp.no.lt.in.attr.value.4.test |
@@@QName: xp.no.lt.in.attr.value.4.test |
7101 |
@@@DEnt: |
@@@DEnt: |
7106 |
]> |
]> |
7107 |
<a b="c&ent2;"/> |
<a b="c&ent2;"/> |
7108 |
@@@c:erred: <[[xp|wf-no-lt-in-attribute-values]]> { (1, 3); } |
@@@c:erred: <[[xp|wf-no-lt-in-attribute-values]]> { (1, 3); } |
7109 |
|
@@@c:erred: |
7110 |
|
@@@@@: <[[xp|wf-syntax-error]]> { (1, 3)..(1, 6); } |
7111 |
|
@@@@enImplNote: When entity node is created. |
7112 |
@@XMLTest: |
@@XMLTest: |
7113 |
@@@QName: xp.ger.lt.in.attr.value.1.test |
@@@QName: xp.ger.lt.in.attr.value.1.test |
7114 |
@@@DEnt: |
@@@DEnt: |
7368 |
node-name: 'e'; |
node-name: 'e'; |
7369 |
text-content: 'element'; |
text-content: 'element'; |
7370 |
} |
} |
7371 |
|
text { data: ' '; } |
7372 |
} |
} |
7373 |
} |
} |
7374 |
element { |
element { |
8939 |
} |
} |
8940 |
} |
} |
8941 |
element { |
element { |
8942 |
general-entity { |
general-entity-reference { |
8943 |
node-name: 'entity'; |
node-name: 'entity'; |
8944 |
|
is-expanded: true; |
8945 |
text-content: 'value'; |
text-content: 'value'; |
8946 |
} |
} |
8947 |
} |
} |
8962 |
node-name: 'entity'; |
node-name: 'entity'; |
8963 |
text-content: 'value'; |
text-content: 'value'; |
8964 |
} |
} |
8965 |
|
general-entity { |
8966 |
|
node-name: 'another'; |
8967 |
|
public-id: null; |
8968 |
|
system-id: 'another'; |
8969 |
|
} |
8970 |
} |
} |
8971 |
element { |
element { |
8972 |
general-entity { |
general-entity-reference { |
8973 |
node-name: 'entity'; |
node-name: 'entity'; |
8974 |
|
is-expanded: true; |
8975 |
text-content: 'value'; |
text-content: 'value'; |
8976 |
} |
} |
8977 |
} |
} |
9127 |
} |
} |
9128 |
} |
} |
9129 |
|
|
9130 |
|
@@XMLTest: |
9131 |
|
@@@QName: xp.reptxt.element.content.ger.entity.declared.nopref.1.test |
9132 |
|
@@@DEnt: |
9133 |
|
@@@@test:value: |
9134 |
|
<!DOCTYPE p [ |
9135 |
|
<!ENTITY c "&entity;"> |
9136 |
|
]> |
9137 |
|
<p>&c;</p> |
9138 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (1, 1)..(1, 8); } |
9139 |
|
@@XMLTest: |
9140 |
|
@@@QName: xp.reptxt.element.content.ger.entity.declared.nopref.2.test |
9141 |
|
@@@DEnt: |
9142 |
|
@@@@test:value: |
9143 |
|
<!DOCTYPE p [ |
9144 |
|
<!ENTITY other "aa"> |
9145 |
|
<!ENTITY % another "aa"> |
9146 |
|
<!ENTITY c "&entity;"> |
9147 |
|
]> |
9148 |
|
<p>&c;</p> |
9149 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (1, 1)..(1, 8); } |
9150 |
|
@@XMLTest: |
9151 |
|
@@@QName: xp.reptxt.element.content.ger.entity.declared.nopref.3.test |
9152 |
|
@@@DEnt: |
9153 |
|
@@@@test:value: |
9154 |
|
<?xml version="1.0" standalone="yes"?> |
9155 |
|
<!DOCTYPE p [ |
9156 |
|
<!ENTITY c "&entity;"> |
9157 |
|
]> |
9158 |
|
<p>&c;</p> |
9159 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (1, 1)..(1, 8); } |
9160 |
|
@@XMLTest: |
9161 |
|
@@@QName: xp.reptxt.element.content.ger.entity.declared.nopref.4.test |
9162 |
|
@@@DEnt: |
9163 |
|
@@@@test:value: |
9164 |
|
<?xml version="1.0" standalone="no"?> |
9165 |
|
<!DOCTYPE p [ |
9166 |
|
<!ENTITY c "&entity;"> |
9167 |
|
]> |
9168 |
|
<p>&c;</p> |
9169 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (1, 1)..(1, 8); } |
9170 |
|
@@XMLTest: |
9171 |
|
@@@QName: xp.reptxt.element.content.ger.entity.declared.nopref.5.test |
9172 |
|
@@@DEnt: |
9173 |
|
@@@@test:value: |
9174 |
|
<?xml version="1.0" standalone="yes"?> |
9175 |
|
<!DOCTYPE p [ |
9176 |
|
<!ENTITY other "aa"> |
9177 |
|
<!ENTITY % another "aa"> |
9178 |
|
<!ENTITY c "&entity;"> |
9179 |
|
]> |
9180 |
|
<p>&c;</p> |
9181 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (1, 1)..(1, 8); } |
9182 |
|
@@XMLTest: |
9183 |
|
@@@QName: xp.reptxt.element.content.ger.entity.declared.nopref.6.test |
9184 |
|
@@@DEnt: |
9185 |
|
@@@@test:value: |
9186 |
|
<?xml version="1.0" standalone="no"?> |
9187 |
|
<!DOCTYPE p [ |
9188 |
|
<!ENTITY other "aa"> |
9189 |
|
<!ENTITY % another "aa"> |
9190 |
|
<!ENTITY c "&entity;"> |
9191 |
|
]> |
9192 |
|
<p>&c;</p> |
9193 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (1, 1)..(1, 8); } |
9194 |
|
@@XMLTest: |
9195 |
|
@@@QName: xp.reptxt.element.content.ger.entity.declared.nopref.-1.test |
9196 |
|
@@@DEnt: |
9197 |
|
@@@@test:value: |
9198 |
|
<!DOCTYPE p [ |
9199 |
|
<!ENTITY entity "value"> |
9200 |
|
<!ENTITY c "&entity;"> |
9201 |
|
]> |
9202 |
|
<p>&c;</p> |
9203 |
|
@@@test:domTree: |
9204 |
|
document { |
9205 |
|
document-type { |
9206 |
|
general-entity { |
9207 |
|
node-name: 'entity'; |
9208 |
|
text-content: 'value'; |
9209 |
|
} |
9210 |
|
general-entity { |
9211 |
|
node-name: 'c'; |
9212 |
|
general-entity-reference { |
9213 |
|
node-name: 'entity'; |
9214 |
|
text-content: 'value'; |
9215 |
|
} |
9216 |
|
} |
9217 |
|
} |
9218 |
|
element { |
9219 |
|
general-entity-reference { |
9220 |
|
node-name: 'c'; |
9221 |
|
general-entity-reference { |
9222 |
|
node-name: 'entity'; |
9223 |
|
text-content: 'value'; |
9224 |
|
} |
9225 |
|
} |
9226 |
|
} |
9227 |
|
} |
9228 |
|
@@XMLTest: |
9229 |
|
@@@QName: xp.reptxt.element.content.ger.entity.declared.nopref.-2.test |
9230 |
|
@@@DEnt: |
9231 |
|
@@@@test:value: |
9232 |
|
<!DOCTYPE p [ |
9233 |
|
<!ENTITY entity "value"> |
9234 |
|
<!ENTITY another SYSTEM "another"> |
9235 |
|
<!ENTITY c "&entity;"> |
9236 |
|
]> |
9237 |
|
<p>&c;</p> |
9238 |
|
@@@test:domTree: |
9239 |
|
document { |
9240 |
|
document-type { |
9241 |
|
general-entity { |
9242 |
|
node-name: 'entity'; |
9243 |
|
text-content: 'value'; |
9244 |
|
} |
9245 |
|
general-entity { |
9246 |
|
node-name: 'c'; |
9247 |
|
general-entity-reference { |
9248 |
|
node-name: 'entity'; |
9249 |
|
text-content: 'value'; |
9250 |
|
} |
9251 |
|
} |
9252 |
|
general-entity { |
9253 |
|
node-name: 'another'; |
9254 |
|
public-id: null; |
9255 |
|
system-id: 'another'; |
9256 |
|
has-replacement-tree: false; |
9257 |
|
} |
9258 |
|
} |
9259 |
|
element { |
9260 |
|
general-entity-reference { |
9261 |
|
node-name: 'c'; |
9262 |
|
general-entity-reference { |
9263 |
|
node-name: 'entity'; |
9264 |
|
text-content: 'value'; |
9265 |
|
} |
9266 |
|
} |
9267 |
|
} |
9268 |
|
} |
9269 |
|
@@XMLTest: |
9270 |
|
@@@QName: xp.reptxt.element.content.ger.entity.declared.standalone.2.test |
9271 |
|
@@@DEnt: |
9272 |
|
@@@@test:value: |
9273 |
|
<?xml version="1.0" standalone="yes"?> |
9274 |
|
<!DOCTYPE p [ |
9275 |
|
<!ENTITY c "&entity;"> |
9276 |
|
]> |
9277 |
|
<p>&c;</p> |
9278 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (1, 1)..(1, 8); } |
9279 |
|
@@XMLTest: |
9280 |
|
@@@QName: xp.reptxt.element.content.ger.entity.declared.standalone.3.test |
9281 |
|
@@@DEnt: |
9282 |
|
@@@@test:value: |
9283 |
|
<?xml version="1.0" standalone="yes"?> |
9284 |
|
<!DOCTYPE p [ |
9285 |
|
<!ENTITY % para "<!-- -->"> |
9286 |
|
%para; |
9287 |
|
<!ENTITY c "&entity;"> |
9288 |
|
]> |
9289 |
|
<p>&c;</p> |
9290 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (1, 1)..(1, 8); } |
9291 |
|
@@XMLTest: |
9292 |
|
@@@QName: xp.reptxt.element.content.ger.entity.declared.standalone.-1.test |
9293 |
|
@@@DEnt: |
9294 |
|
@@@@test:value: |
9295 |
|
<?xml version="1.0" standalone="no"?> |
9296 |
|
<!DOCTYPE p [ |
9297 |
|
<!ENTITY c "&entity;"> |
9298 |
|
<!ENTITY % para "<!-- -->"> |
9299 |
|
%para; |
9300 |
|
]> |
9301 |
|
<p>&c;</p> |
9302 |
|
@@@test:domTree: |
9303 |
|
document { |
9304 |
|
document-type { |
9305 |
|
general-entity { |
9306 |
|
node-name: 'c'; |
9307 |
|
general-entity-reference { |
9308 |
|
node-name: 'entity'; |
9309 |
|
is-expanded: false; |
9310 |
|
} |
9311 |
|
} |
9312 |
|
} |
9313 |
|
element { |
9314 |
|
general-entity-reference { |
9315 |
|
node-name: 'c'; |
9316 |
|
general-entity-reference { |
9317 |
|
node-name: 'entity'; |
9318 |
|
is-expanded: false; |
9319 |
|
} |
9320 |
|
} |
9321 |
|
} |
9322 |
|
} |
9323 |
|
@@XMLTest: |
9324 |
|
@@@QName: |
9325 |
|
xp.reptxt.element.content.ger.entity.declared.standalone.-1.2.test |
9326 |
|
@@@DEnt: |
9327 |
|
@@@@test:value: |
9328 |
|
<?xml version="1.0" standalone="no"?> |
9329 |
|
<!DOCTYPE p [ |
9330 |
|
<!ENTITY % para "<!-- -->"> |
9331 |
|
%para; |
9332 |
|
<!ENTITY c "&entity;"> |
9333 |
|
]> |
9334 |
|
<p>&c;</p> |
9335 |
|
@@@test:domTree: |
9336 |
|
document { |
9337 |
|
document-type { } |
9338 |
|
element { |
9339 |
|
general-entity-reference { |
9340 |
|
node-name: 'c'; |
9341 |
|
is-expanded: false; |
9342 |
|
} |
9343 |
|
} |
9344 |
|
} |
9345 |
|
@@XMLTest: |
9346 |
|
@@@QName: xp.reptxt.element.content.ger.entity.declared.standalone.-2.test |
9347 |
|
@@@DEnt: |
9348 |
|
@@@@test:value: |
9349 |
|
<!DOCTYPE p [ |
9350 |
|
<!ENTITY c "&entity;"> |
9351 |
|
<!ENTITY % para "<!-- -->"> |
9352 |
|
%para; |
9353 |
|
]> |
9354 |
|
<p>&c;</p> |
9355 |
|
@@@test:domTree: |
9356 |
|
document { |
9357 |
|
document-type { } |
9358 |
|
element { |
9359 |
|
general-entity-reference { |
9360 |
|
node-name: 'c'; |
9361 |
|
is-expanded: true; |
9362 |
|
general-entity-reference { |
9363 |
|
node-name: 'entity'; |
9364 |
|
is-expanded: false; |
9365 |
|
} |
9366 |
|
} |
9367 |
|
} |
9368 |
|
} |
9369 |
|
@@XMLTest: |
9370 |
|
@@@QName: |
9371 |
|
xp.reptxt.element.content.ger.entity.declared.standalone.-2.2.test |
9372 |
|
@@@DEnt: |
9373 |
|
@@@@test:value: |
9374 |
|
<!DOCTYPE p [ |
9375 |
|
<!ENTITY % para "<!-- -->"> |
9376 |
|
%para; |
9377 |
|
<!ENTITY c "&entity;"> |
9378 |
|
]> |
9379 |
|
<p>&c;</p> |
9380 |
|
@@@test:domTree: |
9381 |
|
document { |
9382 |
|
document-type { } |
9383 |
|
element { |
9384 |
|
general-entity-reference { |
9385 |
|
node-name: 'c'; |
9386 |
|
is-expanded: false; |
9387 |
|
} |
9388 |
|
} |
9389 |
|
} |
9390 |
|
@@XMLTest: |
9391 |
|
@@@QName: xp.reptxt.element.content.ger.entity.declared.standalone.4.test |
9392 |
|
@@@DEnt: |
9393 |
|
@@@@test:value: |
9394 |
|
<?xml version="1.0" standalone="yes"?> |
9395 |
|
<!DOCTYPE p [ |
9396 |
|
<!ENTITY % para SYSTEM "para"> |
9397 |
|
%para; |
9398 |
|
<!ENTITY c "&entity;"> |
9399 |
|
]> |
9400 |
|
<p>&c;</p> |
9401 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (1, 1)..(1, 8); } |
9402 |
|
@@XMLTest: |
9403 |
|
@@@QName: xp.reptxt.element.content.ger.entity.declared.standalone.-3.test |
9404 |
|
@@@DEnt: |
9405 |
|
@@@@test:value: |
9406 |
|
<?xml version="1.0" standalone="no"?> |
9407 |
|
<!DOCTYPE p [ |
9408 |
|
<!ENTITY c "&entity;"> |
9409 |
|
<!ENTITY % para SYSTEM "para"> |
9410 |
|
%para; |
9411 |
|
]> |
9412 |
|
<p>&c;</p> |
9413 |
|
@@@test:domTree: |
9414 |
|
document { |
9415 |
|
document-type { } |
9416 |
|
element { |
9417 |
|
general-entity-reference { |
9418 |
|
node-name: 'c'; |
9419 |
|
is-expanded: true; |
9420 |
|
general-entity-reference { |
9421 |
|
node-name: 'entity'; |
9422 |
|
is-expanded: false; |
9423 |
|
} |
9424 |
|
} |
9425 |
|
} |
9426 |
|
} |
9427 |
|
@@XMLTest: |
9428 |
|
@@@QName: |
9429 |
|
xp.reptxt.element.content.ger.entity.declared.standalone.-3.2.test |
9430 |
|
@@@DEnt: |
9431 |
|
@@@@test:value: |
9432 |
|
<?xml version="1.0" standalone="no"?> |
9433 |
|
<!DOCTYPE p [ |
9434 |
|
<!ENTITY % para SYSTEM "para"> |
9435 |
|
%para; |
9436 |
|
<!ENTITY c "&entity;"> |
9437 |
|
]> |
9438 |
|
<p>&c;</p> |
9439 |
|
@@@test:domTree: |
9440 |
|
document { |
9441 |
|
document-type { } |
9442 |
|
element { |
9443 |
|
general-entity-reference { |
9444 |
|
node-name: 'c'; |
9445 |
|
is-expanded: false; |
9446 |
|
} |
9447 |
|
} |
9448 |
|
} |
9449 |
|
@@XMLTest: |
9450 |
|
@@@QName: xp.reptxt.element.content.ger.entity.declared.standalone.-4.test |
9451 |
|
@@@DEnt: |
9452 |
|
@@@@test:value: |
9453 |
|
<!DOCTYPE p [ |
9454 |
|
<!ENTITY c "&entity;"> |
9455 |
|
<!ENTITY % para SYSTEM "para"> |
9456 |
|
%para; |
9457 |
|
]> |
9458 |
|
<p>&c;</p> |
9459 |
|
@@@test:domTree: |
9460 |
|
document { |
9461 |
|
document-type { } |
9462 |
|
element { |
9463 |
|
general-entity-reference { |
9464 |
|
node-name: 'c'; |
9465 |
|
is-expanded: true; |
9466 |
|
general-entity-reference { |
9467 |
|
node-name: 'entity'; |
9468 |
|
is-expanded: false; |
9469 |
|
} |
9470 |
|
} |
9471 |
|
} |
9472 |
|
} |
9473 |
|
@@XMLTest: |
9474 |
|
@@@QName: |
9475 |
|
xp.reptxt.element.content.ger.entity.declared.standalone.-4.2.test |
9476 |
|
@@@DEnt: |
9477 |
|
@@@@test:value: |
9478 |
|
<!DOCTYPE p [ |
9479 |
|
<!ENTITY % para SYSTEM "para"> |
9480 |
|
%para; |
9481 |
|
<!ENTITY c "&entity;"> |
9482 |
|
]> |
9483 |
|
<p>&c;</p> |
9484 |
|
@@@test:domTree: |
9485 |
|
document { |
9486 |
|
document-type { } |
9487 |
|
element { |
9488 |
|
general-entity-reference { |
9489 |
|
node-name: 'c'; |
9490 |
|
is-expanded: false; |
9491 |
|
} |
9492 |
|
} |
9493 |
|
} |
9494 |
|
@@XMLTest: |
9495 |
|
@@@QName: xp.reptxt.element.content.ger.entity.declared.standalone.5.test |
9496 |
|
@@@DEnt: |
9497 |
|
@@@@test:value: |
9498 |
|
<?xml version="1.0" standalone="yes"?> |
9499 |
|
<!DOCTYPE p SYSTEM "dtd" [ |
9500 |
|
<!ENTITY c "&entity;"> |
9501 |
|
]> |
9502 |
|
<p>&c;</p> |
9503 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (1, 1)..(1, 8); } |
9504 |
|
@@XMLTest: |
9505 |
|
@@@QName: xp.reptxt.element.content.ger.entity.declared.standalone.-5.test |
9506 |
|
@@@DEnt: |
9507 |
|
@@@@test:value: |
9508 |
|
<?xml version="1.0" standalone="no"?> |
9509 |
|
<!DOCTYPE p SYSTEM "dtd" [ |
9510 |
|
<!ENTITY c "&entity;"> |
9511 |
|
]> |
9512 |
|
<p>&c;</p> |
9513 |
|
@@@test:domTree: |
9514 |
|
document { |
9515 |
|
document-type { } |
9516 |
|
element { |
9517 |
|
general-entity-reference { |
9518 |
|
node-name: 'c'; |
9519 |
|
is-expanded: true; |
9520 |
|
general-entity-reference { |
9521 |
|
node-name: 'entity'; |
9522 |
|
is-expanded: false; |
9523 |
|
} |
9524 |
|
} |
9525 |
|
} |
9526 |
|
} |
9527 |
|
@@XMLTest: |
9528 |
|
@@@QName: xp.reptxt.element.content.ger.entity.declared.standalone.-6.test |
9529 |
|
@@@DEnt: |
9530 |
|
@@@@test:value: |
9531 |
|
<!DOCTYPE p SYSTEM "dtd" [<!ENTITY c "&entity;">]> |
9532 |
|
<p>&c;</p> |
9533 |
|
@@@test:domTree: |
9534 |
|
document { |
9535 |
|
document-type { } |
9536 |
|
element { |
9537 |
|
general-entity-reference { |
9538 |
|
node-name: 'c'; |
9539 |
|
is-expanded: true; |
9540 |
|
general-entity-reference { |
9541 |
|
node-name: 'entity'; |
9542 |
|
is-expanded: false; |
9543 |
|
} |
9544 |
|
} |
9545 |
|
} |
9546 |
|
} |
9547 |
|
|
9548 |
|
@@XMLTest: |
9549 |
|
@@@QName: xp.attval.ger.entity.declared.nodtd.1.test |
9550 |
|
@@@DEnt: |
9551 |
|
@@@@test:value: |
9552 |
|
<p a="&entity;"/> |
9553 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (1, 7)..(1, 14); } |
9554 |
|
@@XMLTest: |
9555 |
|
@@@QName: xp.attval.ger.entity.declared.nodtd.2.test |
9556 |
|
@@@DEnt: |
9557 |
|
@@@@test:value: |
9558 |
|
<?xml version="1.0" standalone="yes"?> |
9559 |
|
<p a="&entity;"/> |
9560 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (2, 7)..(2, 14); } |
9561 |
|
@@XMLTest: |
9562 |
|
@@@QName: xp.attval.ger.entity.declared.nodtd.3.test |
9563 |
|
@@@DEnt: |
9564 |
|
@@@@test:value: |
9565 |
|
<?xml version="1.0" standalone="no"?> |
9566 |
|
<p a="&entity;"/> |
9567 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (2, 7)..(2, 14); } |
9568 |
|
@@XMLTest: |
9569 |
|
@@@QName: xp.attval.ger.entity.declared.nodtd.-1.test |
9570 |
|
@@@DEnt: |
9571 |
|
@@@@test:value: |
9572 |
|
<p a="<>&"'"/> |
9573 |
|
@@@test:domTree: |
9574 |
|
document { |
9575 |
|
element { |
9576 |
|
attribute { |
9577 |
|
node-name: 'a'; |
9578 |
|
text-content: '<>&"' U+0027; |
9579 |
|
} |
9580 |
|
} |
9581 |
|
} |
9582 |
|
@@XMLTest: |
9583 |
|
@@@QName: xp.attval.ger.entity.declared.nopref.1.test |
9584 |
|
@@@DEnt: |
9585 |
|
@@@@test:value: |
9586 |
|
<!DOCTYPE p []> |
9587 |
|
<p a="&entity;"/> |
9588 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (2, 7)..(2, 14); } |
9589 |
|
@@XMLTest: |
9590 |
|
@@@QName: xp.attval.ger.entity.declared.nopref.2.test |
9591 |
|
@@@DEnt: |
9592 |
|
@@@@test:value: |
9593 |
|
<!DOCTYPE p [ |
9594 |
|
<!ENTITY other "aa"> |
9595 |
|
<!ENTITY % another "aa"> |
9596 |
|
]> |
9597 |
|
<p a="&entity;"/> |
9598 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (5, 7)..(5, 14); } |
9599 |
|
@@XMLTest: |
9600 |
|
@@@QName: xp.attval.ger.entity.declared.nopref.3.test |
9601 |
|
@@@DEnt: |
9602 |
|
@@@@test:value: |
9603 |
|
<?xml version="1.0" standalone="yes"?> |
9604 |
|
<!DOCTYPE p []> |
9605 |
|
<p a="&entity;"/> |
9606 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (3, 7)..(3, 14); } |
9607 |
|
@@XMLTest: |
9608 |
|
@@@QName: xp.attval.ger.entity.declared.nopref.4.test |
9609 |
|
@@@DEnt: |
9610 |
|
@@@@test:value: |
9611 |
|
<?xml version="1.0" standalone="no"?> |
9612 |
|
<!DOCTYPE p []> |
9613 |
|
<p a="&entity;"/> |
9614 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (3, 7)..(3, 14); } |
9615 |
|
@@XMLTest: |
9616 |
|
@@@QName: xp.attval.ger.entity.declared.nopref.5.test |
9617 |
|
@@@DEnt: |
9618 |
|
@@@@test:value: |
9619 |
|
<?xml version="1.0" standalone="yes"?> |
9620 |
|
<!DOCTYPE p [ |
9621 |
|
<!ENTITY other "aa"> |
9622 |
|
<!ENTITY % another "aa"> |
9623 |
|
]> |
9624 |
|
<p a="&entity;"/> |
9625 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (6, 7)..(6, 14); } |
9626 |
|
@@XMLTest: |
9627 |
|
@@@QName: xp.attval.ger.entity.declared.nopref.6.test |
9628 |
|
@@@DEnt: |
9629 |
|
@@@@test:value: |
9630 |
|
<?xml version="1.0" standalone="no"?> |
9631 |
|
<!DOCTYPE p [ |
9632 |
|
<!ENTITY other "aa"> |
9633 |
|
<!ENTITY % another "aa"> |
9634 |
|
]> |
9635 |
|
<p a="&entity;"/> |
9636 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (6, 7)..(6, 14); } |
9637 |
|
@@XMLTest: |
9638 |
|
@@@QName: xp.attval.ger.entity.declared.nopref.-1.test |
9639 |
|
@@@DEnt: |
9640 |
|
@@@@test:value: |
9641 |
|
<!DOCTYPE p [ |
9642 |
|
<!ENTITY entity "value"> |
9643 |
|
]> |
9644 |
|
<p a="&entity;"/> |
9645 |
|
@@@test:domTree: |
9646 |
|
document { |
9647 |
|
document-type { |
9648 |
|
general-entity { |
9649 |
|
node-name: 'entity'; |
9650 |
|
text-content: 'value'; |
9651 |
|
} |
9652 |
|
} |
9653 |
|
element { |
9654 |
|
attribute { |
9655 |
|
node-name: 'a'; |
9656 |
|
general-entity-reference { |
9657 |
|
node-name: 'entity'; |
9658 |
|
is-expanded: true; |
9659 |
|
text-content: 'value'; |
9660 |
|
} |
9661 |
|
} |
9662 |
|
} |
9663 |
|
} |
9664 |
|
@@XMLTest: |
9665 |
|
@@@QName: xp.attval.ger.entity.declared.nopref.-2.test |
9666 |
|
@@@DEnt: |
9667 |
|
@@@@test:value: |
9668 |
|
<!DOCTYPE p [ |
9669 |
|
<!ENTITY entity "value"> |
9670 |
|
<!ENTITY another SYSTEM "another"> |
9671 |
|
]> |
9672 |
|
<p a="&entity;"/> |
9673 |
|
@@@test:domTree: |
9674 |
|
document { |
9675 |
|
document-type { |
9676 |
|
general-entity { |
9677 |
|
node-name: 'entity'; |
9678 |
|
text-content: 'value'; |
9679 |
|
has-replacement-tree: true; |
9680 |
|
} |
9681 |
|
general-entity { |
9682 |
|
node-name: 'another'; |
9683 |
|
public-id: null; |
9684 |
|
system-id: 'another'; |
9685 |
|
has-replacement-tree: false; |
9686 |
|
} |
9687 |
|
} |
9688 |
|
element { |
9689 |
|
attribute { |
9690 |
|
node-name: 'a'; |
9691 |
|
general-entity-reference { |
9692 |
|
node-name: 'entity'; |
9693 |
|
is-expanded: true; |
9694 |
|
text-content: 'value'; |
9695 |
|
} |
9696 |
|
} |
9697 |
|
} |
9698 |
|
} |
9699 |
|
@@XMLTest: |
9700 |
|
@@@QName: xp.attval.ger.entity.declared.standalone.1.test |
9701 |
|
@@@DEnt: |
9702 |
|
@@@@test:value: |
9703 |
|
<?xml version="1.0" standalone="yes"?> |
9704 |
|
<p a="&entity;"/> |
9705 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (2, 7)..(2, 14); } |
9706 |
|
@@XMLTest: |
9707 |
|
@@@QName: xp.attval.ger.entity.declared.standalone.2.test |
9708 |
|
@@@DEnt: |
9709 |
|
@@@@test:value: |
9710 |
|
<?xml version="1.0" standalone="yes"?> |
9711 |
|
<!DOCTYPE p []> |
9712 |
|
<p a="&entity;"/> |
9713 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (3, 7)..(3, 14); } |
9714 |
|
@@XMLTest: |
9715 |
|
@@@QName: xp.attval.ger.entity.declared.standalone.3.test |
9716 |
|
@@@DEnt: |
9717 |
|
@@@@test:value: |
9718 |
|
<?xml version="1.0" standalone="yes"?> |
9719 |
|
<!DOCTYPE p [ |
9720 |
|
<!ENTITY % para "<!-- -->"> |
9721 |
|
%para; |
9722 |
|
]> |
9723 |
|
<p a="&entity;"/> |
9724 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (6, 7)..(6, 14); } |
9725 |
|
@@XMLTest: |
9726 |
|
@@@QName: xp.attval.ger.entity.declared.standalone.-1.test |
9727 |
|
@@@DEnt: |
9728 |
|
@@@@test:value: |
9729 |
|
<?xml version="1.0" standalone="no"?> |
9730 |
|
<!DOCTYPE p [ |
9731 |
|
<!ENTITY % para "<!-- -->"> |
9732 |
|
%para; |
9733 |
|
]> |
9734 |
|
<p a="&entity;"/> |
9735 |
|
@@@test:domTree: |
9736 |
|
document { |
9737 |
|
document-type { } |
9738 |
|
element { |
9739 |
|
attribute { |
9740 |
|
node-name: 'a'; |
9741 |
|
general-entity-reference { |
9742 |
|
is-expanded: false; |
9743 |
|
} |
9744 |
|
} |
9745 |
|
} |
9746 |
|
} |
9747 |
|
@@XMLTest: |
9748 |
|
@@@QName: xp.attval.ger.entity.declared.standalone.-2.test |
9749 |
|
@@@DEnt: |
9750 |
|
@@@@test:value: |
9751 |
|
<!DOCTYPE p [ |
9752 |
|
<!ENTITY % para "<!-- -->"> |
9753 |
|
%para; |
9754 |
|
]> |
9755 |
|
<p a="&entity;"/> |
9756 |
|
@@@test:domTree: |
9757 |
|
document { |
9758 |
|
document-type { } |
9759 |
|
element { |
9760 |
|
attribute { |
9761 |
|
node-name: 'a'; |
9762 |
|
general-entity-reference { |
9763 |
|
is-expanded: false; |
9764 |
|
} |
9765 |
|
} |
9766 |
|
} |
9767 |
|
} |
9768 |
|
@@XMLTest: |
9769 |
|
@@@QName: xp.attval.ger.entity.declared.standalone.4.test |
9770 |
|
@@@DEnt: |
9771 |
|
@@@@test:value: |
9772 |
|
<?xml version="1.0" standalone="yes"?> |
9773 |
|
<!DOCTYPE p [ |
9774 |
|
<!ENTITY % para SYSTEM "para"> |
9775 |
|
%para; |
9776 |
|
]> |
9777 |
|
<p a="&entity;"/> |
9778 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (6, 7)..(6, 14); } |
9779 |
|
@@XMLTest: |
9780 |
|
@@@QName: xp.attval.ger.entity.declared.standalone.-3.test |
9781 |
|
@@@DEnt: |
9782 |
|
@@@@test:value: |
9783 |
|
<?xml version="1.0" standalone="no"?> |
9784 |
|
<!DOCTYPE p [ |
9785 |
|
<!ENTITY % para SYSTEM "para"> |
9786 |
|
%para; |
9787 |
|
]> |
9788 |
|
<p a="&entity;"/> |
9789 |
|
@@@test:domTree: |
9790 |
|
document { |
9791 |
|
document-type { } |
9792 |
|
element { |
9793 |
|
attribute { |
9794 |
|
node-name: 'a'; |
9795 |
|
general-entity-reference { |
9796 |
|
is-expanded: false; |
9797 |
|
} |
9798 |
|
} |
9799 |
|
} |
9800 |
|
} |
9801 |
|
@@XMLTest: |
9802 |
|
@@@QName: xp.attval.ger.entity.declared.standalone.-4.test |
9803 |
|
@@@DEnt: |
9804 |
|
@@@@test:value: |
9805 |
|
<!DOCTYPE p [ |
9806 |
|
<!ENTITY % para SYSTEM "para"> |
9807 |
|
%para; |
9808 |
|
]> |
9809 |
|
<p a="&entity;"/> |
9810 |
|
@@@test:domTree: |
9811 |
|
document { |
9812 |
|
document-type { } |
9813 |
|
element { |
9814 |
|
attribute { |
9815 |
|
node-name: 'a'; |
9816 |
|
general-entity-reference { |
9817 |
|
is-expanded: false; |
9818 |
|
} |
9819 |
|
} |
9820 |
|
} |
9821 |
|
} |
9822 |
|
@@XMLTest: |
9823 |
|
@@@QName: xp.attval.ger.entity.declared.standalone.5.test |
9824 |
|
@@@DEnt: |
9825 |
|
@@@@test:value: |
9826 |
|
<?xml version="1.0" standalone="yes"?> |
9827 |
|
<!DOCTYPE p SYSTEM "dtd"> |
9828 |
|
<p a="&entity;"/> |
9829 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (3, 7)..(3, 14); } |
9830 |
|
@@XMLTest: |
9831 |
|
@@@QName: xp.attval.ger.entity.declared.standalone.-5.test |
9832 |
|
@@@DEnt: |
9833 |
|
@@@@test:value: |
9834 |
|
<?xml version="1.0" standalone="no"?> |
9835 |
|
<!DOCTYPE p SYSTEM "dtd"> |
9836 |
|
<p a="&entity;"/> |
9837 |
|
@@@test:domTree: |
9838 |
|
document { |
9839 |
|
document-type { } |
9840 |
|
element { |
9841 |
|
attribute { |
9842 |
|
node-name: 'a'; |
9843 |
|
general-entity-reference { |
9844 |
|
is-expanded: false; |
9845 |
|
} |
9846 |
|
} |
9847 |
|
} |
9848 |
|
} |
9849 |
|
@@XMLTest: |
9850 |
|
@@@QName: xp.attval.ger.entity.declared.standalone.-6.test |
9851 |
|
@@@DEnt: |
9852 |
|
@@@@test:value: |
9853 |
|
<!DOCTYPE p SYSTEM "dtd"> |
9854 |
|
<p a="&entity;"/> |
9855 |
|
@@@test:domTree: |
9856 |
|
document { |
9857 |
|
document-type { } |
9858 |
|
element { |
9859 |
|
attribute { |
9860 |
|
node-name: 'a'; |
9861 |
|
general-entity-reference { |
9862 |
|
is-expanded: false; |
9863 |
|
} |
9864 |
|
} |
9865 |
|
} |
9866 |
|
} |
9867 |
|
|
9868 |
@@enImplNote: |
@@enImplNote: |
9869 |
{TODO:: Entity declared WFC for |
{TODO:: Entity declared WFC for |
|
|
|
|
- General entity references in attribute value literals in tags |
|
9870 |
|
|
9871 |
- General entity references in attribute value literals in |
- General entity references in attribute value literals in |
9872 |
attlist declarations |
attlist declarations |
9873 |
|
|
9874 |
- General entity references in replacement texts referenced |
- General entity references in replacement texts referenced |
|
in element contents |
|
|
|
|
|
- General entity references in replacement texts referenced |
|
9875 |
in attribute value literals in tags |
in attribute value literals in tags |
9876 |
|
|
9877 |
- General entity references in replacement texts referenced |
- General entity references in replacement texts referenced |
9878 |
in attribute value literals in attlist declarations |
in attribute value literals in attlist declarations |
9879 |
|
|
9880 |
|
- General entity references in entity value?? |
9881 |
|
|
9882 |
} |
} |
9883 |
|
|
9884 |
@@PerlDef: |
@@PerlDef: |