2613 |
} // _GeneralEntityReferenceAE_ |
} // _GeneralEntityReferenceAE_ |
2614 |
|
|
2615 |
/* |
/* |
2616 |
General entity reference in literal entity value |
General Entity Reference in Literal Entity Value in Entity Declaration |
2617 |
*/ |
*/ |
2618 |
rule _GeneralEntityReferenceEV_ ($vals) { |
rule _GeneralEntityReferenceEV_ ($vals) { |
2619 |
?lexmode 'EntityReference'; |
?lexmode 'EntityReference'; |
2621 |
~ (Name) { |
~ (Name) { |
2622 |
lang:Perl ($name => $token.value) { |
lang:Perl ($name => $token.value) { |
2623 |
## TODO: Namespace well-formedness |
## TODO: Namespace well-formedness |
|
## TODO: Entity declared constraints |
|
2624 |
push @$vals, $name; |
push @$vals, $name; |
2625 |
} |
} |
2626 |
|
/* |
2627 |
|
WFCs such as Entity Declared are not checked |
2628 |
|
<http://www.w3.org/TR/xml11/#bypass> |
2629 |
|
|
2630 |
|
Note that violation to the Parsed Entity WFC is an error |
2631 |
|
rather than fatal error here. |
2632 |
|
*/ |
2633 |
} |
} |
2634 |
|
|
2635 |
// No expansion |
// No expansion |
3357 |
} |
} |
3358 |
} |
} |
3359 |
|
|
3360 |
lang:Perl { |
lang:Perl : has-error { |
3361 |
if ($self->{$decl->{is_param_entity} ? 'param_entity' : 'general_entity'} |
if ($self->{$decl->{is_param_entity} ? 'param_entity' : 'general_entity'} |
3362 |
->{$decl->{name}}) { |
->{$decl->{name}}) { |
3363 |
## TODO: warning |
## Predefined entity |
3364 |
## TODO: predefined entity error check |
if (not $decl->{is_param_entity} and |
3365 |
|
{lt => true, gt => true, amp => true, |
3366 |
|
quot => true, apos => true}->{$decl->{name}}) { |
3367 |
|
if ($decl->{is_external_entity}) { |
3368 |
|
my $location; |
3369 |
|
__CODE{xp|get-location-from-token:: |
3370 |
|
$token => {$token}, |
3371 |
|
$result => {$location}, |
3372 |
|
}__; |
3373 |
|
my $continue = __c|ERROR{xp|error-internal-predefined-entity:: |
3374 |
|
xp|error-token => {$token}, |
3375 |
|
c|location => {$location}, |
3376 |
|
xp|name => {$decl->{name}}, |
3377 |
|
}__; |
3378 |
|
unless ($continue) { |
3379 |
|
__EXCEPTION{DOMLS|PARSE_ERR:: |
3380 |
|
}__; |
3381 |
|
} |
3382 |
|
} elsif ( |
3383 |
|
not ({gt => true, apos => true, quot => true}->{$decl->{name}} and |
3384 |
|
${$decl->{reptxt}} eq { |
3385 |
|
gt => '>', apos => "'", quot => '"', |
3386 |
|
}->{$decl->{name}}) and |
3387 |
|
not (${$decl->{reptxt}} =~ /\A�*@{[{ |
3388 |
|
lt => '60', gt => '62', amp => '38', |
3389 |
|
apos => '39', quot => '34', |
3390 |
|
}->{$decl->{name}}]};\z/) and |
3391 |
|
not (${$decl->{reptxt}} =~ /\A�*(?:(?i)@{[{ |
3392 |
|
lt => '3C', gt => '3E', amp => '26', |
3393 |
|
apos => '27', quot => '22', |
3394 |
|
}->{$decl->{name}}]});\z/) |
3395 |
|
) { |
3396 |
|
## NOTE: See "SuikaWiki - Predefined Entities" |
3397 |
|
## "http://suika.fam.cx/gate/2005/sw/%E5%AE%9A%E7%BE%A9%E6%B8%88%E5%AE%9F%E4%BD%93". |
3398 |
|
my $location; |
3399 |
|
__CODE{xp|get-location-from-token:: |
3400 |
|
$token => {$token}, |
3401 |
|
$result => {$location}, |
3402 |
|
}__; |
3403 |
|
my $continue = __c|ERROR{xp|error-malformed-predefined-entity:: |
3404 |
|
xp|error-token => {$token}, |
3405 |
|
c|location => {$location}, |
3406 |
|
xp|name => {$decl->{name}}, |
3407 |
|
xp|replacement-text => {${$decl->{reptxt}}}, |
3408 |
|
}__; |
3409 |
|
unless ($continue) { |
3410 |
|
__EXCEPTION{DOMLS|PARSE_ERR:: |
3411 |
|
}__; |
3412 |
|
} |
3413 |
|
} |
3414 |
|
## TODO: |
3415 |
|
} else { ## Dupulicating declaration |
3416 |
|
my $location; |
3417 |
|
__CODE{xp|get-location-from-token:: |
3418 |
|
$token => {$token}, |
3419 |
|
$result => {$location}, |
3420 |
|
}__; |
3421 |
|
my $continue = __c|ERROR{xp|warning-entity-declaration-ignored:: |
3422 |
|
xp|error-token => {$token}, |
3423 |
|
c|location => {$location}, |
3424 |
|
xp|name => {$decl->{name}}, |
3425 |
|
}__; |
3426 |
|
unless ($continue) { |
3427 |
|
__EXCEPTION{DOMLS|PARSE_ERR:: |
3428 |
|
}__; |
3429 |
|
} |
3430 |
|
} |
3431 |
} else { |
} else { |
3432 |
$self->{$decl->{is_param_entity} ? 'param_entity' : 'general_entity'} |
$self->{$decl->{is_param_entity} ? 'param_entity' : 'general_entity'} |
3433 |
->{$decl->{name}} = $decl; |
->{$decl->{name}} = $decl; |
11813 |
element { } |
element { } |
11814 |
} |
} |
11815 |
|
|
11816 |
|
@@XMLTest: |
11817 |
|
@@@QName: xp.ENTITY.ignored.test |
11818 |
|
@@@DEnt: |
11819 |
|
@@@@test:value: |
11820 |
|
<!DOCTYPE a [ |
11821 |
|
<!ENTITY e "a"> |
11822 |
|
<!ENTITY e "b"> |
11823 |
|
]><a/> |
11824 |
|
@@@test:domTree: |
11825 |
|
document { |
11826 |
|
document-type { |
11827 |
|
general-entity { |
11828 |
|
node-name: 'e'; |
11829 |
|
text-content: 'a'; |
11830 |
|
} |
11831 |
|
} |
11832 |
|
element { } |
11833 |
|
} |
11834 |
|
@@@c:erred: |
11835 |
|
<[[xp|warning-entity-declaration-ignored]]> { (3, 1)..(3, 15); } |
11836 |
|
@@XMLTest: |
11837 |
|
@@@QName: xp.ENTITY.ignored.2.test |
11838 |
|
@@@DEnt: |
11839 |
|
@@@@test:value: |
11840 |
|
<!DOCTYPE a [ |
11841 |
|
<!ENTITY % e "a"> |
11842 |
|
<!ENTITY % e "b"> |
11843 |
|
]><a/> |
11844 |
|
@@@test:domTree: |
11845 |
|
document { } |
11846 |
|
@@@c:erred: |
11847 |
|
<[[xp|warning-entity-declaration-ignored]]> { (3, 1)..(3, 17); } |
11848 |
|
|
11849 |
|
@@XMLTest: |
11850 |
|
@@@QName: xp.ENTITY.predefined.1.test |
11851 |
|
@@@DEnt: |
11852 |
|
@@@@test:value: |
11853 |
|
<!DOCTYPE a [ |
11854 |
|
<!ENTITY lt "&#60;"> |
11855 |
|
<!ENTITY gt ">"> |
11856 |
|
<!ENTITY amp "&#38;"> |
11857 |
|
<!ENTITY apos "'"> |
11858 |
|
<!ENTITY quot """> |
11859 |
|
<!ENTITY e "f"> |
11860 |
|
]><a><>&'"</a> |
11861 |
|
@@@test:domTree: |
11862 |
|
document { |
11863 |
|
document-type { |
11864 |
|
general-entity { |
11865 |
|
node-name: 'e'; |
11866 |
|
text-content: 'f'; |
11867 |
|
} |
11868 |
|
} |
11869 |
|
element { |
11870 |
|
text-content: '<>&' U+0027 '"'; |
11871 |
|
} |
11872 |
|
} |
11873 |
|
@@XMLTest: |
11874 |
|
@@@QName: xp.ENTITY.predefined.2.test |
11875 |
|
@@@DEnt: |
11876 |
|
@@@@test:value: |
11877 |
|
<!DOCTYPE a [ |
11878 |
|
<!ENTITY lt "&#60;"> |
11879 |
|
<!ENTITY gt "&#62;"> |
11880 |
|
<!ENTITY amp "&#38;"> |
11881 |
|
<!ENTITY apos "&#39;"> |
11882 |
|
<!ENTITY quot "&#34;"> |
11883 |
|
<!ENTITY e "f"> |
11884 |
|
]><a><>&'"</a> |
11885 |
|
@@@test:domTree: |
11886 |
|
document { |
11887 |
|
document-type { |
11888 |
|
general-entity { |
11889 |
|
node-name: 'e'; |
11890 |
|
text-content: 'f'; |
11891 |
|
} |
11892 |
|
} |
11893 |
|
element { |
11894 |
|
text-content: '<>&' U+0027 '"'; |
11895 |
|
} |
11896 |
|
} |
11897 |
|
@@XMLTest: |
11898 |
|
@@@QName: xp.ENTITY.predefined.3.test |
11899 |
|
@@@DEnt: |
11900 |
|
@@@@test:value: |
11901 |
|
<!DOCTYPE a [ |
11902 |
|
<!ENTITY lt "<"> |
11903 |
|
<!ENTITY gt ">"> |
11904 |
|
<!ENTITY amp "&"> |
11905 |
|
<!ENTITY apos "'"> |
11906 |
|
<!ENTITY quot """> |
11907 |
|
<!ENTITY e "f"> |
11908 |
|
]><a><>&'"</a> |
11909 |
|
@@@c:erred: <[[xp|error-malformed-predefined-entity]]> { (2, 1)..(2, 24); } |
11910 |
|
@@@c:erred: <[[xp|error-malformed-predefined-entity]]> { (4, 1)..(4, 24); } |
11911 |
|
@@@test:domTree: |
11912 |
|
document { |
11913 |
|
document-type { |
11914 |
|
general-entity { |
11915 |
|
node-name: 'e'; |
11916 |
|
text-content: 'f'; |
11917 |
|
} |
11918 |
|
} |
11919 |
|
element { |
11920 |
|
text-content: '<>&' U+0027 '"'; |
11921 |
|
} |
11922 |
|
} |
11923 |
|
@@XMLTest: |
11924 |
|
@@@QName: xp.ENTITY.predefined.4.test |
11925 |
|
@@@DEnt: |
11926 |
|
@@@@test:value: |
11927 |
|
<!DOCTYPE a [ |
11928 |
|
<!ENTITY lt "1"> |
11929 |
|
<!ENTITY gt "2"> |
11930 |
|
<!ENTITY amp "3"> |
11931 |
|
<!ENTITY apos "4"> |
11932 |
|
<!ENTITY quot "5"> |
11933 |
|
<!ENTITY e "f"> |
11934 |
|
]><a><>&'"</a> |
11935 |
|
@@@c:erred: <[[xp|error-malformed-predefined-entity]]> { (2, 1)..(2, 24); } |
11936 |
|
@@@c:erred: <[[xp|error-malformed-predefined-entity]]> { (3, 1)..(3, 24); } |
11937 |
|
@@@c:erred: <[[xp|error-malformed-predefined-entity]]> { (4, 1)..(4, 24); } |
11938 |
|
@@@c:erred: <[[xp|error-malformed-predefined-entity]]> { (5, 1)..(5, 24); } |
11939 |
|
@@@c:erred: <[[xp|error-malformed-predefined-entity]]> { (6, 1)..(6, 24); } |
11940 |
|
@@@test:domTree: |
11941 |
|
document { |
11942 |
|
document-type { |
11943 |
|
general-entity { |
11944 |
|
node-name: 'e'; |
11945 |
|
text-content: 'f'; |
11946 |
|
} |
11947 |
|
} |
11948 |
|
element { |
11949 |
|
text-content: '<>&' U+0027 '"'; |
11950 |
|
} |
11951 |
|
} |
11952 |
|
@@XMLTest: |
11953 |
|
@@@QName: xp.ENTITY.predefined.5.test |
11954 |
|
@@@DEnt: |
11955 |
|
@@@@test:value: |
11956 |
|
<!DOCTYPE a [ |
11957 |
|
<!ENTITY lt SYSTEM "1"> |
11958 |
|
<!ENTITY gt SYSTEM "2"> |
11959 |
|
<!ENTITY amp SYSTEM "3"> |
11960 |
|
<!ENTITY apos SYSTEM "4"> |
11961 |
|
<!ENTITY quot SYSTEM "5"> |
11962 |
|
<!ENTITY e "f"> |
11963 |
|
]><a><>&'"</a> |
11964 |
|
@@@c:erred: <[[xp|error-internal-predefined-entity]]> { (2, 1)..(2, 27); } |
11965 |
|
@@@c:erred: <[[xp|error-internal-predefined-entity]]> { (3, 1)..(3, 27); } |
11966 |
|
@@@c:erred: <[[xp|error-internal-predefined-entity]]> { (4, 1)..(4, 27); } |
11967 |
|
@@@c:erred: <[[xp|error-internal-predefined-entity]]> { (5, 1)..(5, 27); } |
11968 |
|
@@@c:erred: <[[xp|error-internal-predefined-entity]]> { (6, 1)..(6, 27); } |
11969 |
|
@@@test:domTree: |
11970 |
|
document { |
11971 |
|
document-type { |
11972 |
|
general-entity { |
11973 |
|
node-name: 'e'; |
11974 |
|
text-content: 'f'; |
11975 |
|
} |
11976 |
|
} |
11977 |
|
element { |
11978 |
|
text-content: '<>&' U+0027 '"'; |
11979 |
|
} |
11980 |
|
} |
11981 |
|
@@XMLTest: |
11982 |
|
@@@QName: xp.ENTITY.predefined.6.test |
11983 |
|
@@@DEnt: |
11984 |
|
@@@@test:value: |
11985 |
|
<!DOCTYPE a [ |
11986 |
|
<!ENTITY % lt SYSTEM "1"> |
11987 |
|
<!ENTITY % gt SYSTEM "2"> |
11988 |
|
<!ENTITY % amp SYSTEM "3"> |
11989 |
|
<!ENTITY % apos SYSTEM "4"> |
11990 |
|
<!ENTITY % quot SYSTEM "5"> |
11991 |
|
<!ENTITY e "f"> |
11992 |
|
]><a><>&'"</a> |
11993 |
|
@@@test:domTree: |
11994 |
|
document { |
11995 |
|
document-type { |
11996 |
|
general-entity { |
11997 |
|
node-name: 'e'; |
11998 |
|
text-content: 'f'; |
11999 |
|
} |
12000 |
|
} |
12001 |
|
element { |
12002 |
|
text-content: '<>&' U+0027 '"'; |
12003 |
|
} |
12004 |
|
} |
12005 |
|
@@XMLTest: |
12006 |
|
@@@QName: xp.ENTITY.predefined.7.test |
12007 |
|
@@@DEnt: |
12008 |
|
@@@@test:value: |
12009 |
|
<!DOCTYPE a [ |
12010 |
|
<!ENTITY lt "&#x3C;"> |
12011 |
|
<!ENTITY gt ">"> |
12012 |
|
<!ENTITY amp "&#x26;"> |
12013 |
|
<!ENTITY apos "'"> |
12014 |
|
<!ENTITY quot """> |
12015 |
|
<!ENTITY e "f"> |
12016 |
|
]><a><>&'"</a> |
12017 |
|
@@@test:domTree: |
12018 |
|
document { |
12019 |
|
document-type { |
12020 |
|
general-entity { |
12021 |
|
node-name: 'e'; |
12022 |
|
text-content: 'f'; |
12023 |
|
} |
12024 |
|
} |
12025 |
|
element { |
12026 |
|
text-content: '<>&' U+0027 '"'; |
12027 |
|
} |
12028 |
|
} |
12029 |
|
@@XMLTest: |
12030 |
|
@@@QName: xp.ENTITY.predefined.8.test |
12031 |
|
@@@DEnt: |
12032 |
|
@@@@test:value: |
12033 |
|
<!DOCTYPE a [ |
12034 |
|
<!ENTITY lt "&#x3c;"> |
12035 |
|
<!ENTITY gt ">"> |
12036 |
|
<!ENTITY amp "&#x26;"> |
12037 |
|
<!ENTITY apos "'"> |
12038 |
|
<!ENTITY quot """> |
12039 |
|
<!ENTITY e "f"> |
12040 |
|
]><a><>&'"</a> |
12041 |
|
@@@test:domTree: |
12042 |
|
document { |
12043 |
|
document-type { |
12044 |
|
general-entity { |
12045 |
|
node-name: 'e'; |
12046 |
|
text-content: 'f'; |
12047 |
|
} |
12048 |
|
} |
12049 |
|
element { |
12050 |
|
text-content: '<>&' U+0027 '"'; |
12051 |
|
} |
12052 |
|
} |
12053 |
|
@@XMLTest: |
12054 |
|
@@@QName: xp.ENTITY.predefined.9.test |
12055 |
|
@@@DEnt: |
12056 |
|
@@@@test:value: |
12057 |
|
<!DOCTYPE a [ |
12058 |
|
<!ENTITY lt "&#x00003C;"> |
12059 |
|
<!ENTITY gt ">"> |
12060 |
|
<!ENTITY amp "&#x026;"> |
12061 |
|
<!ENTITY apos "'"> |
12062 |
|
<!ENTITY quot """> |
12063 |
|
<!ENTITY e "f"> |
12064 |
|
]><a><>&'"</a> |
12065 |
|
@@@test:domTree: |
12066 |
|
document { |
12067 |
|
document-type { |
12068 |
|
general-entity { |
12069 |
|
node-name: 'e'; |
12070 |
|
text-content: 'f'; |
12071 |
|
} |
12072 |
|
} |
12073 |
|
element { |
12074 |
|
text-content: '<>&' U+0027 '"'; |
12075 |
|
} |
12076 |
|
} |
12077 |
|
@@XMLTest: |
12078 |
|
@@@QName: xp.ENTITY.predefined.10.test |
12079 |
|
@@@DEnt: |
12080 |
|
@@@@test:value: |
12081 |
|
<!DOCTYPE a [ |
12082 |
|
<!ENTITY lt "&#00060;"> |
12083 |
|
<!ENTITY gt ">"> |
12084 |
|
<!ENTITY amp "&#000038;"> |
12085 |
|
<!ENTITY apos "'"> |
12086 |
|
<!ENTITY quot """> |
12087 |
|
<!ENTITY e "f"> |
12088 |
|
]><a><>&'"</a> |
12089 |
|
@@@test:domTree: |
12090 |
|
document { |
12091 |
|
document-type { |
12092 |
|
general-entity { |
12093 |
|
node-name: 'e'; |
12094 |
|
text-content: 'f'; |
12095 |
|
} |
12096 |
|
} |
12097 |
|
element { |
12098 |
|
text-content: '<>&' U+0027 '"'; |
12099 |
|
} |
12100 |
|
} |
12101 |
|
|
12102 |
@@PerlDef: |
@@PerlDef: |
12103 |
my $impl = $Message::DOM::ImplementationRegistry->get_implementation ({ |
my $impl = $Message::DOM::ImplementationRegistry->get_implementation ({ |
12104 |
'Core' => '3.0', |
'Core' => '3.0', |
12268 |
@@lang:en |
@@lang:en |
12269 |
|
|
12270 |
ElementTypeBinding: |
ElementTypeBinding: |
12271 |
@Name: ErrDef |
@Name: WFErrDef |
12272 |
@ElementType: |
@ElementType: |
12273 |
dis:ResourceDef |
dis:ResourceDef |
12274 |
@ShadowContent: |
@ShadowContent: |
12275 |
@@rdf:type: DOMCore|DOMErrorType |
@@rdf:type: DOMCore|DOMErrorType |
12276 |
@@For: ManakaiDOM|DOM3 |
@@For: ManakaiDOM|DOM3 |
12277 |
@@ecore:textFormatter: ManakaiXMLParserExceptionFormatter |
@@ecore:textFormatter: ManakaiXMLParserExceptionFormatter |
12278 |
|
@@c:severity: c|SEVERITY_FATAL_ERROR |
12279 |
|
|
12280 |
ElementTypeBinding: |
ElementTypeBinding: |
12281 |
@Name: WFErrDef |
@Name: FatalErrDef |
12282 |
@ElementType: |
@ElementType: |
12283 |
dis:ResourceDef |
dis:ResourceDef |
12284 |
@ShadowContent: |
@ShadowContent: |
12285 |
@@rdf:type: DOMCore|DOMErrorType |
@@rdf:type: DOMCore|DOMErrorType |
12286 |
@@For: ManakaiDOM|DOM3 |
@@For: ManakaiDOM|DOM3 |
12287 |
@@ecore:textFormatter: ManakaiXMLParserExceptionFormatter |
@@ecore:textFormatter: ManakaiXMLParserExceptionFormatter |
12288 |
|
@@c:severity: c|SEVERITY_FATAL_ERROR |
12289 |
|
|
12290 |
ElementTypeBinding: |
ElementTypeBinding: |
12291 |
@Name: FatalErrDef |
@Name: VCErrDef |
12292 |
@ElementType: |
@ElementType: |
12293 |
dis:ResourceDef |
dis:ResourceDef |
12294 |
@ShadowContent: |
@ShadowContent: |
12295 |
@@rdf:type: DOMCore|DOMErrorType |
@@rdf:type: c|DOMErrorType |
12296 |
|
@@For: ManakaiDOM|DOM3 |
12297 |
|
@@ecore:textFormatter: ManakaiXMLParserExceptionFormatter |
12298 |
|
@@c:severity: c|SEVERITY_ERROR |
12299 |
|
|
12300 |
|
ElementTypeBinding: |
12301 |
|
@Name: ErrDef |
12302 |
|
@ElementType: |
12303 |
|
dis:ResourceDef |
12304 |
|
@ShadowContent: |
12305 |
|
@@rdf:type: c|DOMErrorType |
12306 |
|
@@For: ManakaiDOM|DOM3 |
12307 |
|
@@ecore:textFormatter: ManakaiXMLParserExceptionFormatter |
12308 |
|
@@c:severity: c|SEVERITY_ERROR |
12309 |
|
|
12310 |
|
ElementTypeBinding: |
12311 |
|
@Name: WarnDef |
12312 |
|
@ElementType: |
12313 |
|
dis:ResourceDef |
12314 |
|
@ShadowContent: |
12315 |
|
@@rdf:type: c|DOMErrorType |
12316 |
@@For: ManakaiDOM|DOM3 |
@@For: ManakaiDOM|DOM3 |
12317 |
@@ecore:textFormatter: ManakaiXMLParserExceptionFormatter |
@@ecore:textFormatter: ManakaiXMLParserExceptionFormatter |
12318 |
|
@@c:severity: c|SEVERITY_WARNING |
12319 |
|
|
12320 |
WFErrDef: |
WFErrDef: |
12321 |
@QName: xp|wf-syntax-error |
@QName: xp|wf-syntax-error |
12322 |
@enDesc: |
@enDesc: |
12323 |
The entity does not match to the production rule; it is not |
The entity does not match to the production rule; it is not |
12324 |
well-formed. |
well-formed. |
|
@DOMCore:severity: DOMCore|SEVERITY_FATAL_ERROR |
|
12325 |
@enMufDef: |
@enMufDef: |
12326 |
|%xp-error-token-type;|%xp-error-token-value |
|%xp-error-token-type;|%xp-error-token-value |
12327 |
(prefix => { (|}, suffix => {|)}); is not |
(prefix => { (|}, suffix => {|)}); is not |
12336 |
@enDesc: |
@enDesc: |
12337 |
A processing instruction has its <CODE::PITarget> of |
A processing instruction has its <CODE::PITarget> of |
12338 |
<XML::xml> (in any case) which is not allowed. |
<XML::xml> (in any case) which is not allowed. |
|
@DOMCore:severity: DOMCore|SEVERITY_ERROR |
|
12339 |
@enMufDef: |
@enMufDef: |
12340 |
Processing instruction target name cannot be |%p |
Processing instruction target name cannot be |%p |
12341 |
(name => {<Q::xp|name>});| |
(name => {<Q::xp|name>});| |
12352 |
|
|
12353 |
WFErrDef: |
WFErrDef: |
12354 |
@QName: xp|wf-no-end-tag |
@QName: xp|wf-no-end-tag |
|
@DOMCore:severity: DOMCore|SEVERITY_ERROR |
|
12355 |
@enDesc: |
@enDesc: |
12356 |
An end-tag is not found. |
An end-tag is not found. |
12357 |
@enMufDef: |
@enMufDef: |
12368 |
|
|
12369 |
WFErrDef: |
WFErrDef: |
12370 |
@QName: xp|wf-unsupported-xml-version |
@QName: xp|wf-unsupported-xml-version |
|
@DOMCore:severity: DOMCore|SEVERITY_ERROR |
|
12371 |
@enDesc: |
@enDesc: |
12372 |
The XML version specified in the version declaration is not supported. |
The XML version specified in the version declaration is not supported. |
12373 |
@enMufDef: |
@enMufDef: |
12384 |
|
|
12385 |
WFErrDef: |
WFErrDef: |
12386 |
@QName: xp|wf-malformed-enc-name |
@QName: xp|wf-malformed-enc-name |
|
@DOMCore:severity: DOMCore|SEVERITY_ERROR |
|
12387 |
@enDesc: |
@enDesc: |
12388 |
An <XA::encoding> pseudo-attribute value does not match |
An <XA::encoding> pseudo-attribute value does not match |
12389 |
to the procduction rule <CODE::EncName>. |
to the procduction rule <CODE::EncName>. |
12400 |
|
|
12401 |
WFErrDef: |
WFErrDef: |
12402 |
@QName: xp|wf-malformed-xml-standalone |
@QName: xp|wf-malformed-xml-standalone |
|
@DOMCore:severity: DOMCore|SEVERITY_ERROR |
|
12403 |
@enDesc: |
@enDesc: |
12404 |
An <XA::standalone> pseudo-attribute value is neither <XML::yes> |
An <XA::standalone> pseudo-attribute value is neither <XML::yes> |
12405 |
or <XML::no>. |
or <XML::no>. |
12417 |
|
|
12418 |
WFErrDef: |
WFErrDef: |
12419 |
@QName: xp|wf-legal-literal-character |
@QName: xp|wf-legal-literal-character |
|
@DOMCore:severity: DOMCore|SEVERITY_ERROR |
|
12420 |
@enDesc: |
@enDesc: |
12421 |
Each character in XML entity must match to the production |
Each character in XML entity must match to the production |
12422 |
rule <CODE::Char - RestrictedChar>. |
rule <CODE::Char - RestrictedChar>. |
12430 |
|
|
12431 |
WFErrDef: |
WFErrDef: |
12432 |
@QName: xp|wf-element-type-match |
@QName: xp|wf-element-type-match |
|
@DOMCore:severity: DOMCore|SEVERITY_FATAL_ERROR |
|
12433 |
@enDesc: |
@enDesc: |
12434 |
The <CODE::Name> in an element's end-tag must match the element type |
The <CODE::Name> in an element's end-tag must match the element type |
12435 |
in the start-tag. |
in the start-tag. |
12452 |
|
|
12453 |
WFErrDef: |
WFErrDef: |
12454 |
@QName: xp|wf-unique-att-spec |
@QName: xp|wf-unique-att-spec |
|
@DOMCore:severity: DOMCore|SEVERITY_ERROR |
|
12455 |
@enDesc: |
@enDesc: |
12456 |
An attribute name <kwd:MUST-NOT> appear more than once in |
An attribute name <kwd:MUST-NOT> appear more than once in |
12457 |
the same start-tag or empty-element tag. |
the same start-tag or empty-element tag. |
12466 |
|
|
12467 |
WFErrDef: |
WFErrDef: |
12468 |
@QName: xp|wf-no-external-entity-references |
@QName: xp|wf-no-external-entity-references |
|
@c:severity: c|SEVERITY_ERROR |
|
12469 |
@enDesc: |
@enDesc: |
12470 |
Attribute values <kwd:MUST-NOT> contain direct or indirect |
Attribute values <kwd:MUST-NOT> contain direct or indirect |
12471 |
entity references to external entities. |
entity references to external entities. |
12480 |
|
|
12481 |
WFErrDef: |
WFErrDef: |
12482 |
@QName: xp|wf-no-lt-in-attribute-values |
@QName: xp|wf-no-lt-in-attribute-values |
|
@c:severity: c|SEVERITY_ERROR |
|
12483 |
@enDesc: |
@enDesc: |
12484 |
The replacement text of any entity referred to directly or indirectly |
The replacement text of any entity referred to directly or indirectly |
12485 |
in an attribute value literal <kwd:MUST-NOT> contain a |
in an attribute value literal <kwd:MUST-NOT> contain a |
12492 |
|
|
12493 |
WFErrDef: |
WFErrDef: |
12494 |
@QName: xp|wf-legal-character |
@QName: xp|wf-legal-character |
|
@DOMCore:severity: DOMCore|SEVERITY_ERROR |
|
12495 |
@enDesc: |
@enDesc: |
12496 |
Characters referred to using character references <kwd:MUST> |
Characters referred to using character references <kwd:MUST> |
12497 |
match the production for <CODE::Char>. |
match the production for <CODE::Char>. |
12511 |
|
|
12512 |
WFErrDef: |
WFErrDef: |
12513 |
@QName: xp|wf-entity-declared |
@QName: xp|wf-entity-declared |
|
@c:severity: c|SEVERITY_ERROR |
|
12514 |
@enDesc: |
@enDesc: |
12515 |
{P:: In a document |
{P:: In a document |
12516 |
|
|
12540 |
|
|
12541 |
WFErrDef: |
WFErrDef: |
12542 |
@QName: xp|wf-parsed-entity |
@QName: xp|wf-parsed-entity |
|
@c:severity: c|SEVERITY_ERROR |
|
12543 |
@enDesc: |
@enDesc: |
12544 |
An entity reference <kwd:MUST-NOT> contain the name of an |
An entity reference <kwd:MUST-NOT> contain the name of an |
12545 |
unparsed entity. |
unparsed entity. |
12553 |
|
|
12554 |
WFErrDef: |
WFErrDef: |
12555 |
@QName: xp|wf-no-recursion |
@QName: xp|wf-no-recursion |
|
@c:severity: c|SEVERITY_ERROR |
|
12556 |
@enDesc: |
@enDesc: |
12557 |
A parsed entity <kwd:MUST-NOT> contain a recursive reference |
A parsed entity <kwd:MUST-NOT> contain a recursive reference |
12558 |
to itself, either directly or indirectly. |
to itself, either directly or indirectly. |
12566 |
|
|
12567 |
FatalErrDef: |
FatalErrDef: |
12568 |
@QName: xp|fatal-xml11-end-of-line-in-xml-declaration |
@QName: xp|fatal-xml11-end-of-line-in-xml-declaration |
|
@DOMCore:severity: DOMCore|SEVERITY_ERROR |
|
12569 |
@enDesc: |
@enDesc: |
12570 |
An end-of-line character <CODE::U+0085> or <CODE::U+2028> is appeared |
An end-of-line character <CODE::U+0085> or <CODE::U+2028> is appeared |
12571 |
within an XML declaration or text declaration. |
within an XML declaration or text declaration. |
12578 |
@@enDesc: |
@@enDesc: |
12579 |
The code position of the end-of-line character. |
The code position of the end-of-line character. |
12580 |
|
|
12581 |
|
ErrDef: |
12582 |
|
@QName: xp|error-internal-predefined-entity |
12583 |
|
@enDesc: |
12584 |
|
A general entity declaration whose <CODE::Name> equals to one |
12585 |
|
of predefined entities <kwd:MUST> declare it as an internal entity. |
12586 |
|
@enMufDef: |
12587 |
|
Entity |%p (name => {<Q::xp|name>});| must be declared as an |
12588 |
|
internal entity |
12589 |
|
@ecore:hasParameter: xp|error-token |
12590 |
|
@ecore:hasParameter: |
12591 |
|
@@@: xp|name |
12592 |
|
@@enDesc: |
12593 |
|
The name of the entity. |
12594 |
|
|
12595 |
|
ErrDef: |
12596 |
|
@QName: xp|error-malformed-predefined-entity |
12597 |
|
@enDesc: |
12598 |
|
A general entity declaration whose <CODE::Name> equals to one |
12599 |
|
of predefined entities <kwd:MUST> declare it as a data |
12600 |
|
character for the entity. |
12601 |
|
@enMufDef: |
12602 |
|
Entity declaration for |%p (name => {<Q::xp|name>});| |
12603 |
|
(replacement text |%p (name => {<Q::xp|replacement-text>});|) is malformed |
12604 |
|
@ecore:hasParameter: xp|error-token |
12605 |
|
@ecore:hasParameter: |
12606 |
|
@@@: xp|name |
12607 |
|
@@enDesc: |
12608 |
|
The name of the entity. |
12609 |
|
@ecore:hasParameter: |
12610 |
|
@@@: xp|replacement-text |
12611 |
|
@@enDesc: |
12612 |
|
The replacement text of the entity declaration. |
12613 |
|
|
12614 |
|
WarnDef: |
12615 |
|
@QName: xp|warning-entity-declaration-ignored |
12616 |
|
@enDesc: |
12617 |
|
An entity declaration is ignored because the same entity |
12618 |
|
is declared before. |
12619 |
|
@enMufDef: |
12620 |
|
Entity declaration for |%p (name => {<Q::xp|name>});| is ignored |
12621 |
|
@ecore:hasParameter: xp|error-token |
12622 |
|
@ecore:hasParameter: |
12623 |
|
@@@: xp|name |
12624 |
|
@@enDesc: |
12625 |
|
The name of the entity. |
12626 |
|
|
12627 |
|
VCErrDef: |
12628 |
|
@QName: xp|vc-unique-notation-name |
12629 |
|
@enDesc: |
12630 |
|
A <CODE::Name> <kwd:MUST-NOT> be declared in more than |
12631 |
|
one notation declaration. |
12632 |
|
@enMufDef: |
12633 |
|
Notation |%p (name => {<Q::xp|name>});| is already declared |
12634 |
|
@ecore:hasParameter: xp|error-token |
12635 |
|
@ecore:hasParameter: |
12636 |
|
@@@: xp|name |
12637 |
|
@@enDesc: |
12638 |
|
The name of the notation. |
12639 |
|
|
12640 |
|
XWParam: |
12641 |
|
@QName: xp|replacement-text |
12642 |
|
@enDesc: |
12643 |
|
The replacement text. |
12644 |
|
|
12645 |
XWParam: |
XWParam: |
12646 |
@QName: xp|error-token |
@QName: xp|error-token |
12647 |
@enDesc: |
@enDesc: |