342 |
$self->{location} = $self->{entity}->[-1]; |
$self->{location} = $self->{entity}->[-1]; |
343 |
$self->{token} = []; |
$self->{token} = []; |
344 |
$self->{char} = []; |
$self->{char} = []; |
345 |
|
local $ent->{is_opened} = true; |
346 |
## TODO: External entity support |
## TODO: External entity support |
347 |
$self->_parse_InternalGeneralParsedEntity ($ent->{node}); |
$self->_parse_InternalGeneralParsedEntity ($ent->{node}); |
348 |
$ent->{node}-><AS::x|Entity.hasReplacementTree> (true); |
$ent->{node}-><AS::x|Entity.hasReplacementTree> (true); |
2188 |
__EXCEPTION{DOMLS|PARSE_ERR}__; |
__EXCEPTION{DOMLS|PARSE_ERR}__; |
2189 |
} |
} |
2190 |
} # Otherwise VC error |
} # Otherwise VC error |
2191 |
push @{$self->{entity}}, <Code::getEmptyEntityState>; |
push @{$self->{entity}}, <Code::getEmptyEntityState:: |
2192 |
|
$name = $name>; |
2193 |
$er-><AS::x|EntityReference.isExpanded> (false); |
$er-><AS::x|EntityReference.isExpanded> (false); |
2194 |
|
|
2195 |
} else { # there IS entity declaration |
} else { # there IS entity declaration |
2215 |
push @{$self->{entity}}, <Code::getCopyOfEntityState:: |
push @{$self->{entity}}, <Code::getCopyOfEntityState:: |
2216 |
$entity_type = 'general_entity', |
$entity_type = 'general_entity', |
2217 |
$entity_name = $name>; |
$entity_name = $name>; |
2218 |
} |
|
2219 |
|
if (defined $ent->{notation}) { |
2220 |
|
my $location; |
2221 |
|
__CODE{xp|get-location-from-token:: |
2222 |
|
$token => {$token}, |
2223 |
|
$result => {$location}, |
2224 |
|
}__; |
2225 |
|
my $continue = __c|ERROR{xp|wf-parsed-entity:: |
2226 |
|
xp|error-token => {$token}, |
2227 |
|
c|location => {$location}, |
2228 |
|
xp|name => {$name}, |
2229 |
|
}__; |
2230 |
|
unless ($continue) { |
2231 |
|
__EXCEPTION{DOMLS|PARSE_ERR:: |
2232 |
|
}__; |
2233 |
|
} |
2234 |
|
} # if unparsed entity |
2235 |
|
|
2236 |
|
if ($ent->{is_opened}) { |
2237 |
|
my $location; |
2238 |
|
__CODE{xp|get-location-from-token:: |
2239 |
|
$token => {$token}, |
2240 |
|
$result => {$location}, |
2241 |
|
}__; |
2242 |
|
my $continue = __c|ERROR{xp|wf-no-recursion:: |
2243 |
|
xp|error-token => {$token}, |
2244 |
|
c|location => {$location}, |
2245 |
|
xp|name => {$name}, |
2246 |
|
}__; |
2247 |
|
unless ($continue) { |
2248 |
|
__EXCEPTION{DOMLS|PARSE_ERR:: |
2249 |
|
}__; |
2250 |
|
} |
2251 |
|
$self->{entity}->[-1]->{reptxt} = \''; |
2252 |
|
$er-><AS::x|EntityReference.isExpanded> (false); |
2253 |
|
} # recursive |
2254 |
|
$ent->{is_opened} = true; |
2255 |
|
} # entity declared |
2256 |
$self->{location} = $self->{entity}->[-1]; |
$self->{location} = $self->{entity}->[-1]; |
2257 |
push @{$self->{entity_token}}, $self->{token}; |
push @{$self->{entity_token}}, $self->{token}; |
2258 |
$self->{token} = []; |
$self->{token} = []; |
2264 |
&content ($doc => $doc, $parent => $er, $ns => $ns); |
&content ($doc => $doc, $parent => $er, $ns => $ns); |
2265 |
~ (#EOF) { } |
~ (#EOF) { } |
2266 |
lang:Perl { |
lang:Perl { |
2267 |
|
$self->{general_entity}->{$self->{entity}->[-1]->{name}} |
2268 |
|
->{is_opened} = false |
2269 |
|
if $self->{general_entity}->{$self->{entity}->[-1]->{name}}; |
2270 |
$self->{token} = pop @{$self->{entity_token}}; |
$self->{token} = pop @{$self->{entity_token}}; |
2271 |
$self->{char} = pop @{$self->{entity_char}}; |
$self->{char} = pop @{$self->{entity_char}}; |
2272 |
pop @{$self->{entity}}; |
pop @{$self->{entity}}; |
2351 |
__EXCEPTION{DOMLS|PARSE_ERR}__; |
__EXCEPTION{DOMLS|PARSE_ERR}__; |
2352 |
} |
} |
2353 |
} # Otherwise VC error |
} # Otherwise VC error |
2354 |
push @{$self->{entity}}, <Code::getEmptyEntityState>; |
push @{$self->{entity}}, <Code::getEmptyEntityState:: |
2355 |
|
$name = $name>; |
2356 |
$er-><AS::x|EntityReference.isExpanded> (false); |
$er-><AS::x|EntityReference.isExpanded> (false); |
2357 |
|
|
2358 |
} else { # there IS entity declaration |
} else { # there IS entity declaration |
2389 |
__EXCEPTION{DOMLS|PARSE_ERR:: |
__EXCEPTION{DOMLS|PARSE_ERR:: |
2390 |
}__; |
}__; |
2391 |
} |
} |
2392 |
|
## NOTE: |xp:wf-parsed-entity| is not checked |
2393 |
} # if external entity |
} # if external entity |
2394 |
|
|
2395 |
$er-><AS::x|EntityReference.isExpanded> |
$er-><AS::x|EntityReference.isExpanded> |
2397 |
push @{$self->{entity}}, <Code::getCopyOfEntityState:: |
push @{$self->{entity}}, <Code::getCopyOfEntityState:: |
2398 |
$entity_type = 'general_entity', |
$entity_type = 'general_entity', |
2399 |
$entity_name = $name>; |
$entity_name = $name>; |
2400 |
|
|
2401 |
|
if ($ent->{is_opened}) { |
2402 |
|
my $location; |
2403 |
|
__CODE{xp|get-location-from-token:: |
2404 |
|
$token => {$token}, |
2405 |
|
$result => {$location}, |
2406 |
|
}__; |
2407 |
|
my $continue = __c|ERROR{xp|wf-no-recursion:: |
2408 |
|
xp|error-token => {$token}, |
2409 |
|
c|location => {$location}, |
2410 |
|
xp|name => {$name}, |
2411 |
|
}__; |
2412 |
|
unless ($continue) { |
2413 |
|
__EXCEPTION{DOMLS|PARSE_ERR:: |
2414 |
|
}__; |
2415 |
|
} |
2416 |
|
$self->{entity}->[-1]->{reptxt} = \''; |
2417 |
|
$er-><AS::x|EntityReference.isExpanded> (false); |
2418 |
|
} # recursive |
2419 |
|
$ent->{is_opened} = true; |
2420 |
} |
} |
2421 |
push @{$vals->{nodes}}, $er; |
push @{$vals->{nodes}}, $er; |
2422 |
$self->{location} = $self->{entity}->[-1]; |
$self->{location} = $self->{entity}->[-1]; |
2430 |
&AttributeValueLiteralE_ ($parent => $er, $vals => $vals); |
&AttributeValueLiteralE_ ($parent => $er, $vals => $vals); |
2431 |
~ (#EOF) { } |
~ (#EOF) { } |
2432 |
lang:Perl { |
lang:Perl { |
2433 |
|
$self->{general_entity}->{$self->{entity}->[-1]->{name}} |
2434 |
|
->{is_opened} = false |
2435 |
|
if $self->{general_entity}->{$self->{entity}->[-1]->{name}}; |
2436 |
$self->{token} = pop @{$self->{entity_token}}; |
$self->{token} = pop @{$self->{entity_token}}; |
2437 |
$self->{char} = pop @{$self->{entity_char}}; |
$self->{char} = pop @{$self->{entity_char}}; |
2438 |
pop @{$self->{entity}}; |
pop @{$self->{entity}}; |
2515 |
__EXCEPTION{DOMLS|PARSE_ERR}__; |
__EXCEPTION{DOMLS|PARSE_ERR}__; |
2516 |
} |
} |
2517 |
} # Otherwise VC error |
} # Otherwise VC error |
2518 |
push @{$self->{entity}}, <Code::getEmptyEntityState>; |
push @{$self->{entity}}, <Code::getEmptyEntityState:: |
2519 |
|
$name = $name>; |
2520 |
$er-><AS::x|EntityReference.isExpanded> (false); |
$er-><AS::x|EntityReference.isExpanded> (false); |
2521 |
|
|
2522 |
} else { # there IS entity declaration |
} else { # there IS entity declaration |
2553 |
__EXCEPTION{DOMLS|PARSE_ERR:: |
__EXCEPTION{DOMLS|PARSE_ERR:: |
2554 |
}__; |
}__; |
2555 |
} |
} |
2556 |
|
## NOTE: |xp:wf-parsed-entity| is not checked |
2557 |
} # if external entity |
} # if external entity |
2558 |
|
|
2559 |
$er-><AS::x|EntityReference.isExpanded> |
$er-><AS::x|EntityReference.isExpanded> |
2561 |
push @{$self->{entity}}, <Code::getCopyOfEntityState:: |
push @{$self->{entity}}, <Code::getCopyOfEntityState:: |
2562 |
$entity_type = 'general_entity', |
$entity_type = 'general_entity', |
2563 |
$entity_name = $name>; |
$entity_name = $name>; |
2564 |
|
|
2565 |
|
if ($ent->{is_opened}) { |
2566 |
|
my $location; |
2567 |
|
__CODE{xp|get-location-from-token:: |
2568 |
|
$token => {$token}, |
2569 |
|
$result => {$location}, |
2570 |
|
}__; |
2571 |
|
my $continue = __c|ERROR{xp|wf-no-recursion:: |
2572 |
|
xp|error-token => {$token}, |
2573 |
|
c|location => {$location}, |
2574 |
|
xp|name => {$name}, |
2575 |
|
}__; |
2576 |
|
unless ($continue) { |
2577 |
|
__EXCEPTION{DOMLS|PARSE_ERR:: |
2578 |
|
}__; |
2579 |
|
} |
2580 |
|
$self->{entity}->[-1]->{reptxt} = \''; |
2581 |
|
$er-><AS::x|EntityReference.isExpanded> (false); |
2582 |
|
} # recursive |
2583 |
|
$ent->{is_opened} = true; |
2584 |
} |
} |
2585 |
$parent-><M::Node.appendChild> ($er); |
$parent-><M::Node.appendChild> ($er); |
2586 |
$self->{location} = $self->{entity}->[-1]; |
$self->{location} = $self->{entity}->[-1]; |
2594 |
&AttributeValueLiteralE_ ($parent => $er, $vals => $vals); |
&AttributeValueLiteralE_ ($parent => $er, $vals => $vals); |
2595 |
~ (#EOF) { } |
~ (#EOF) { } |
2596 |
lang:Perl { |
lang:Perl { |
2597 |
|
$self->{general_entity}->{$self->{entity}->[-1]->{name}} |
2598 |
|
->{is_opened} = false |
2599 |
|
if $self->{general_entity}->{$self->{entity}->[-1]->{name}}; |
2600 |
$self->{token} = pop @{$self->{entity_token}}; |
$self->{token} = pop @{$self->{entity_token}}; |
2601 |
$self->{char} = pop @{$self->{entity_char}}; |
$self->{char} = pop @{$self->{entity_char}}; |
2602 |
pop @{$self->{entity}}; |
pop @{$self->{entity}}; |
2770 |
} |
} |
2771 |
|
|
2772 |
## NOTE: U+0009 is syntactically illegal. |
## NOTE: U+0009 is syntactically illegal. |
2773 |
$pubid =~ s/[\x09\x0A\x0D\x20]+//gs; |
$pubid =~ s/[\x09\x0A\x0D\x20]+/\x20/gs; |
2774 |
$pubid =~ s/\A\x20//s; |
$pubid =~ s/\A\x20//s; |
2775 |
$pubid =~ s/\x20\z//s; |
$pubid =~ s/\x20\z//s; |
2776 |
## NOTE: Bare attribute name is written. |
## NOTE: Bare attribute name is written. |
3258 |
|
|
3259 |
~ (S) { } |
~ (S) { } |
3260 |
|
|
3261 |
|
my $is_param_entity; |
3262 |
my $decl; |
my $decl; |
3263 |
lang:Perl { $decl = { name => '#ILLEGAL', reptxt => \'' }; } |
lang:Perl { $decl = { name => '#ILLEGAL', reptxt => \'' }; } |
3264 |
|
|
3265 |
~? (PERO) { |
~? (PERO) { |
3266 |
~ (S) { } |
~ (S) { } |
3267 |
lang:Perl { |
lang:Perl { |
3268 |
$decl->{is_param_entity} = true; |
$is_param_entity = $decl->{is_param_entity} = true; |
3269 |
} |
} |
3270 |
} |
} |
3271 |
|
|
3320 |
|
|
3321 |
~? (S) { |
~? (S) { |
3322 |
~? (Name == 'NDATA') { |
~? (Name == 'NDATA') { |
3323 |
// TODO: error if parameter entity |
if-true ($is_param_entity) { |
3324 |
|
lang:Perl : has-error { |
3325 |
|
my $location; |
3326 |
|
__CODE{xp|get-location-from-token:: |
3327 |
|
$token => {$token}, |
3328 |
|
$result => {$location}, |
3329 |
|
}__; |
3330 |
|
my $continue = __DOMCore:ERROR{xp|wf-syntax-error:: |
3331 |
|
xp|error-token => {$token}, |
3332 |
|
c|location => {$location}, |
3333 |
|
}__; |
3334 |
|
unless ($continue) { |
3335 |
|
__EXCEPTION{DOMLS|PARSE_ERR:: |
3336 |
|
}__; |
3337 |
|
} |
3338 |
|
} |
3339 |
|
} |
3340 |
|
|
3341 |
~ (S) { } |
~ (S) { } |
3342 |
|
|
5558 |
} |
} |
5559 |
element { |
element { |
5560 |
general-entity-reference { |
general-entity-reference { |
5561 |
|
node-name: 'cdata'; |
5562 |
is-expanded: true; |
is-expanded: true; |
5563 |
cdata-section { |
cdata-section { |
5564 |
data: 'text'; |
data: 'text'; |
7230 |
]> |
]> |
7231 |
<a b="c&ent2;"/> |
<a b="c&ent2;"/> |
7232 |
@@@c:erred: <[[xp|wf-no-external-entity-references]]> { (1, 4)..(1, 8); } |
@@@c:erred: <[[xp|wf-no-external-entity-references]]> { (1, 4)..(1, 8); } |
7233 |
|
@@@c:erred: <[[xp|wf-parsed-entity]]> { } |
7234 |
@@XMLTest: |
@@XMLTest: |
7235 |
@@@QName: xp.no.lt.in.attr.value.1.test |
@@@QName: xp.no.lt.in.attr.value.1.test |
7236 |
@@@DEnt: |
@@@DEnt: |
9418 |
node-name: 'c'; |
node-name: 'c'; |
9419 |
general-entity-reference { |
general-entity-reference { |
9420 |
node-name: 'entity'; |
node-name: 'entity'; |
9421 |
|
is-expanded: true; |
9422 |
text-content: 'value'; |
text-content: 'value'; |
9423 |
} |
} |
9424 |
} |
} |
9432 |
element { |
element { |
9433 |
general-entity-reference { |
general-entity-reference { |
9434 |
node-name: 'c'; |
node-name: 'c'; |
9435 |
|
is-expanded: true; |
9436 |
general-entity-reference { |
general-entity-reference { |
9437 |
node-name: 'entity'; |
node-name: 'entity'; |
9438 |
|
is-expanded: true; |
9439 |
text-content: 'value'; |
text-content: 'value'; |
9440 |
} |
} |
9441 |
} |
} |
11469 |
|
|
11470 |
} |
} |
11471 |
|
|
11472 |
|
@@XMLTest: |
11473 |
|
@@@QName: xp.element.content.parsed.entity.reference.test |
11474 |
|
@@@DEnt: |
11475 |
|
@@@@test:value: |
11476 |
|
<!DOCTYPE p [ |
11477 |
|
<!NOTATION n SYSTEM "notation"> |
11478 |
|
<!ENTITY ext SYSTEM "system" NDATA n> |
11479 |
|
]> |
11480 |
|
<p>&ext;</p> |
11481 |
|
@@@c:erred: <[[xp|wf-parsed-entity]]> { (5, 4)..(5, 8); } |
11482 |
|
@@XMLTest: |
11483 |
|
@@@QName: xp.attval.parsed.entity.reference.test |
11484 |
|
@@@DEnt: |
11485 |
|
@@@@test:value: |
11486 |
|
<!DOCTYPE p [ |
11487 |
|
<!NOTATION n SYSTEM "notation"> |
11488 |
|
<!ENTITY ext SYSTEM "system" NDATA n> |
11489 |
|
]> |
11490 |
|
<p a="&ext;"/> |
11491 |
|
# @@@c:erred: <[[xp|wf-parsed-entity]]> { (5, 7)..(5, 11); } |
11492 |
|
@@@c:erred: <[[xp|wf-no-external-entity-references]]> { (5, 7)..(5, 11); } |
11493 |
|
@@XMLTest: |
11494 |
|
@@@QName: xp.element.content.reptxt.parsed.entity.reference.test |
11495 |
|
@@@DEnt: |
11496 |
|
@@@@test:value: |
11497 |
|
<!DOCTYPE p [ |
11498 |
|
<!NOTATION n SYSTEM "notation"> |
11499 |
|
<!ENTITY ext SYSTEM "system" NDATA n> |
11500 |
|
<!ENTITY c "&ext;"> |
11501 |
|
]> |
11502 |
|
<p>&c;</p> |
11503 |
|
@@@c:erred: <[[xp|wf-parsed-entity]]> { (1, 1)..(1, 5); } |
11504 |
|
@@XMLTest: |
11505 |
|
@@@QName: xp.attval.reptxt.parsed.entity.reference.test |
11506 |
|
@@@DEnt: |
11507 |
|
@@@@test:value: |
11508 |
|
<!DOCTYPE p [ |
11509 |
|
<!NOTATION n SYSTEM "notation"> |
11510 |
|
<!ENTITY ext SYSTEM "system" NDATA n> |
11511 |
|
<!ENTITY c "&ext;"> |
11512 |
|
]> |
11513 |
|
<p a="&c;"/> |
11514 |
|
@@@c:erred: <[[xp|wf-no-external-entity-references]]> { (1, 1)..(1, 5); } |
11515 |
|
@@@c:erred: |
11516 |
|
@@@@@: <[[xp|wf-parsed-entity]]> { } |
11517 |
|
@@@@enImplNote: During entity node construction. |
11518 |
|
@@XMLTest: |
11519 |
|
@@@QName: xp.element.content.entval.parsed.entity.reference.test |
11520 |
|
@@@DEnt: |
11521 |
|
@@@@test:value: |
11522 |
|
<!DOCTYPE p [ |
11523 |
|
<!NOTATION n SYSTEM "notation"> |
11524 |
|
<!ENTITY ext SYSTEM "system" NDATA n> |
11525 |
|
<!ENTITY c "&ext;"> |
11526 |
|
]> |
11527 |
|
<p>&c;</p> |
11528 |
|
@@@c:erred: <[[xp|wf-parsed-entity]]> { } |
11529 |
|
@@XMLTest: |
11530 |
|
@@@QName: xp.attval.entval.parsed.entity.reference.test |
11531 |
|
@@@DEnt: |
11532 |
|
@@@@test:value: |
11533 |
|
<!DOCTYPE p [ |
11534 |
|
<!NOTATION n SYSTEM "notation"> |
11535 |
|
<!ENTITY ext SYSTEM "system" NDATA n> |
11536 |
|
<!ENTITY c "&ext;"> |
11537 |
|
]> |
11538 |
|
<p a="&c;"/> |
11539 |
|
@@@c:erred: <[[xp|wf-no-external-entity-references]]> { } |
11540 |
|
@@@c:erred: <[[xp|wf-parsed-entity]]> { } |
11541 |
|
|
11542 |
|
@@XMLTest: |
11543 |
|
@@@QName: xp.element.content.no.recursion.direct.test |
11544 |
|
@@@DEnt: |
11545 |
|
@@@@test:value: |
11546 |
|
<!DOCTYPE p [ |
11547 |
|
<!ENTITY c "&c;"> |
11548 |
|
]> |
11549 |
|
<p>&c;</p> |
11550 |
|
@@@c:erred: <[[xp|wf-no-recursion]]> { (1, 1)..(1, 3); } |
11551 |
|
@@XMLTest: |
11552 |
|
@@@QName: xp.element.content.no.recursion.indirect.test |
11553 |
|
@@@DEnt: |
11554 |
|
@@@@test:value: |
11555 |
|
<!DOCTYPE p [ |
11556 |
|
<!ENTITY d "&c;"> |
11557 |
|
<!ENTITY c "&d;"> |
11558 |
|
]> |
11559 |
|
<p>&c;</p> |
11560 |
|
@@@c:erred: <[[xp|wf-no-recursion]]> { /* |d| */ (1, 1)..(1, 3); } |
11561 |
|
@@XMLTest: |
11562 |
|
@@@QName: xp.attval.no.recursion.direct.test |
11563 |
|
@@@DEnt: |
11564 |
|
@@@@test:value: |
11565 |
|
<!DOCTYPE p [ |
11566 |
|
<!ENTITY c "&c;"> |
11567 |
|
]> |
11568 |
|
<p a="&c;"/> |
11569 |
|
@@@c:erred: <[[xp|wf-no-recursion]]> { (1, 1)..(1, 3); } |
11570 |
|
@@XMLTest: |
11571 |
|
@@@QName: xp.attval.no.recursion.indirect.test |
11572 |
|
@@@DEnt: |
11573 |
|
@@@@test:value: |
11574 |
|
<!DOCTYPE p [ |
11575 |
|
<!ENTITY d "&c;"> |
11576 |
|
<!ENTITY c "&d;"> |
11577 |
|
]> |
11578 |
|
<p a="&c;"/> |
11579 |
|
@@@c:erred: <[[xp|wf-no-recursion]]> { /* |d| */ (1, 1)..(1, 3); } |
11580 |
|
@@XMLTest: |
11581 |
|
@@@QName: xp.reptxt.element.content.no.recursion.direct.test |
11582 |
|
@@@DEnt: |
11583 |
|
@@@@test:value: |
11584 |
|
<!DOCTYPE p [ |
11585 |
|
<!ENTITY c "&c;"> |
11586 |
|
<!ENTITY e "&c;"> |
11587 |
|
]> |
11588 |
|
<p>&e;</p> |
11589 |
|
@@@c:erred: <[[xp|wf-no-recursion]]> { /* |e| */ (1, 1)..(1, 3); } |
11590 |
|
@@XMLTest: |
11591 |
|
@@@QName: xp.reptxt.element.content.no.recursion.indirect.test |
11592 |
|
@@@DEnt: |
11593 |
|
@@@@test:value: |
11594 |
|
<!DOCTYPE p [ |
11595 |
|
<!ENTITY d "&c;"> |
11596 |
|
<!ENTITY c "&d;"> |
11597 |
|
<!ENTITY e "&c;"> |
11598 |
|
]> |
11599 |
|
<p>&e;</p> |
11600 |
|
@@@c:erred: <[[xp|wf-no-recursion]]> { /* |d| */ (1, 1)..(1, 3); } |
11601 |
|
@@XMLTest: |
11602 |
|
@@@QName: xp.reptxt.attval.no.recursion.direct.test |
11603 |
|
@@@DEnt: |
11604 |
|
@@@@test:value: |
11605 |
|
<!DOCTYPE p [ |
11606 |
|
<!ENTITY c "&c;"> |
11607 |
|
<!ENTITY e "&c;"> |
11608 |
|
]> |
11609 |
|
<p a="&e;"/> |
11610 |
|
@@@c:erred: <[[xp|wf-no-recursion]]> { /* |e| */ (1, 1)..(1, 3); } |
11611 |
|
@@XMLTest: |
11612 |
|
@@@QName: xp.reptxt.attval.no.recursion.indirect.test |
11613 |
|
@@@DEnt: |
11614 |
|
@@@@test:value: |
11615 |
|
<!DOCTYPE p [ |
11616 |
|
<!ENTITY d "&c;"> |
11617 |
|
<!ENTITY c "&d;"> |
11618 |
|
<!ENTITY e "&c;"> |
11619 |
|
]> |
11620 |
|
<p a="&e;"/> |
11621 |
|
@@@c:erred: <[[xp|wf-no-recursion]]> { /* |d| */ (1, 1)..(1, 3); } |
11622 |
|
|
11623 |
|
@@XMLTest: |
11624 |
|
@@@QName: xp.ENTITY.system.ndata.name.test |
11625 |
|
@@@DEnt: |
11626 |
|
@@@@test:value: |
11627 |
|
<!DOCTYPE a [ |
11628 |
|
<!NOTATION n SYSTEM "n"> |
11629 |
|
<!ENTITY % e SYSTEM "sys" NDATA n> |
11630 |
|
]><a/> |
11631 |
|
@@@c:erred: <[[xp|wf-syntax-error]]> { (3, 26)..(3, 30); } |
11632 |
|
@@XMLTest: |
11633 |
|
@@@QName: xp.ENTITY.public.ndata.name.test |
11634 |
|
@@@DEnt: |
11635 |
|
@@@@test:value: |
11636 |
|
<!DOCTYPE a [ |
11637 |
|
<!NOTATION n SYSTEM "n"> |
11638 |
|
<!ENTITY % e PUBLIC "pub" "sys" NDATA n> |
11639 |
|
]><a/> |
11640 |
|
@@@c:erred: <[[xp|wf-syntax-error]]> { (3, 33)..(3, 37); } |
11641 |
|
@@XMLTest: |
11642 |
|
@@@QName: xp.ENTITY.public.ndata.name.-1.test |
11643 |
|
@@@DEnt: |
11644 |
|
@@@@test:value: |
11645 |
|
<!DOCTYPE a [ |
11646 |
|
<!NOTATION n SYSTEM "n"> |
11647 |
|
<!ENTITY % e PUBLIC "pub" "sys" > |
11648 |
|
]><a/> |
11649 |
|
@@@test:domTree: |
11650 |
|
document { } |
11651 |
|
|
11652 |
|
@@XMLTest: |
11653 |
|
@@@QName: xp.ENTITY.pubid.1.test |
11654 |
|
@@@DEnt: |
11655 |
|
@@@@test:value: |
11656 |
|
<!DOCTYPE a [ |
11657 |
|
<!ENTITY e PUBLIC "p" "s"> |
11658 |
|
]><a/> |
11659 |
|
@@@test:domTree: |
11660 |
|
document { |
11661 |
|
document-type { |
11662 |
|
general-entity { |
11663 |
|
node-name: 'e'; |
11664 |
|
public-id: 'p'; |
11665 |
|
system-id: 's'; |
11666 |
|
} |
11667 |
|
} |
11668 |
|
element { } |
11669 |
|
} |
11670 |
|
@@XMLTest: |
11671 |
|
@@@QName: xp.ENTITY.pubid.2.test |
11672 |
|
@@@DEnt: |
11673 |
|
@@@@test:value: |
11674 |
|
<!DOCTYPE a [ |
11675 |
|
<!ENTITY e PUBLIC " p " "s"> |
11676 |
|
]><a/> |
11677 |
|
@@@test:domTree: |
11678 |
|
document { |
11679 |
|
document-type { |
11680 |
|
general-entity { |
11681 |
|
node-name: 'e'; |
11682 |
|
public-id: 'p'; |
11683 |
|
system-id: 's'; |
11684 |
|
} |
11685 |
|
} |
11686 |
|
element { } |
11687 |
|
} |
11688 |
|
@@XMLTest: |
11689 |
|
@@@QName: xp.ENTITY.pubid.3.test |
11690 |
|
@@@DEnt: |
11691 |
|
@@@@test:value: |
11692 |
|
<!DOCTYPE a [ |
11693 |
|
<!ENTITY e PUBLIC " p $u000Aq$u000A " "s"> |
11694 |
|
]><a/> |
11695 |
|
@@@test:domTree: |
11696 |
|
document { |
11697 |
|
document-type { |
11698 |
|
general-entity { |
11699 |
|
node-name: 'e'; |
11700 |
|
public-id: 'p q'; |
11701 |
|
system-id: 's'; |
11702 |
|
} |
11703 |
|
} |
11704 |
|
element { } |
11705 |
|
} |
11706 |
|
@@XMLTest: |
11707 |
|
@@@QName: xp.ENTITY.pubid.4.test |
11708 |
|
@@@DEnt: |
11709 |
|
@@@@test:value: |
11710 |
|
<!DOCTYPE a [ |
11711 |
|
<!ENTITY e PUBLIC " p $u000D$u000Aq" "s"> |
11712 |
|
]><a/> |
11713 |
|
@@@test:domTree: |
11714 |
|
document { |
11715 |
|
document-type { |
11716 |
|
general-entity { |
11717 |
|
node-name: 'e'; |
11718 |
|
public-id: 'p q'; |
11719 |
|
system-id: 's'; |
11720 |
|
} |
11721 |
|
} |
11722 |
|
element { } |
11723 |
|
} |
11724 |
|
@@XMLTest: |
11725 |
|
@@@QName: xp.ENTITY.pubid.5.test |
11726 |
|
@@@DEnt: |
11727 |
|
@@@@test:value: |
11728 |
|
<?xml version="1.1"?> |
11729 |
|
<!DOCTYPE a [ |
11730 |
|
<!ENTITY e PUBLIC " p $u0085$u000Aq" "s"> |
11731 |
|
]><a/> |
11732 |
|
@@@test:domTree: |
11733 |
|
document { |
11734 |
|
document-type { |
11735 |
|
general-entity { |
11736 |
|
node-name: 'e'; |
11737 |
|
public-id: 'p q'; |
11738 |
|
system-id: 's'; |
11739 |
|
} |
11740 |
|
} |
11741 |
|
element { } |
11742 |
|
} |
11743 |
|
|
11744 |
@@PerlDef: |
@@PerlDef: |
11745 |
my $impl = $Message::DOM::ImplementationRegistry->get_implementation ({ |
my $impl = $Message::DOM::ImplementationRegistry->get_implementation ({ |
11746 |
'Core' => '3.0', |
'Core' => '3.0', |
11826 |
@@ForCheck: ManakaiDOM|ForClass |
@@ForCheck: ManakaiDOM|ForClass |
11827 |
@@PerlDef: |
@@PerlDef: |
11828 |
{reptxt => \'', line => 1, column => 1, pos => 0, |
{reptxt => \'', line => 1, column => 1, pos => 0, |
11829 |
is_externally_declared => true} |
is_externally_declared => true, name => $name} |
11830 |
|
|
11831 |
@ResourceDef: |
@ResourceDef: |
11832 |
@@QName: getCopyOfEntityState |
@@QName: getCopyOfEntityState |
12167 |
@ecore:hasParameter: xp|error-token |
@ecore:hasParameter: xp|error-token |
12168 |
@ecore:hasParameter: |
@ecore:hasParameter: |
12169 |
@@@: xp|name |
@@@: xp|name |
12170 |
|
@@enDesc: |
12171 |
|
The name of the entity. |
12172 |
|
|
12173 |
|
WFErrDef: |
12174 |
|
@QName: xp|wf-parsed-entity |
12175 |
|
@c:severity: c|SEVERITY_ERROR |
12176 |
|
@enDesc: |
12177 |
|
An entity reference <kwd:MUST-NOT> contain the name of an |
12178 |
|
unparsed entity. |
12179 |
|
@enMufDef: |
12180 |
|
Entity |%p (name => {<Q::xp|name>});| is an unparsed entity |
12181 |
|
@ecore:hasParameter: xp|error-token |
12182 |
|
@ecore:hasParameter: |
12183 |
|
@@@: xp|name |
12184 |
|
@@enDesc: |
12185 |
|
The name of the entity. |
12186 |
|
|
12187 |
|
WFErrDef: |
12188 |
|
@QName: xp|wf-no-recursion |
12189 |
|
@c:severity: c|SEVERITY_ERROR |
12190 |
|
@enDesc: |
12191 |
|
A parsed entity <kwd:MUST-NOT> contain a recursive reference |
12192 |
|
to itself, either directly or indirectly. |
12193 |
|
@enMufDef: |
12194 |
|
Entity |%p (name => {<Q::xp|name>});| is recursively referenced |
12195 |
|
@ecore:hasParameter: xp|error-token |
12196 |
|
@ecore:hasParameter: |
12197 |
|
@@@: xp|name |
12198 |
@@enDesc: |
@@enDesc: |
12199 |
The name of the entity. |
The name of the entity. |
12200 |
|
|