303 |
|
|
304 |
__DEEP{ |
__DEEP{ |
305 |
$r = $self->{<H::c|implementation>}-><M::DOMImpl.createDocument>; |
$r = $self->{<H::c|implementation>}-><M::DOMImpl.createDocument>; |
|
$r-><AS::Document.strictErrorChecking> (false); |
|
306 |
$self->{doc} = $r; |
$self->{doc} = $r; |
307 |
|
$self->{doc_cfg} = $r-><AG::Document.domConfig>; |
308 |
CORE::delete $self->{docx}; |
CORE::delete $self->{docx}; |
309 |
CORE::delete $self->{dtdef}; |
CORE::delete $self->{dtdef}; |
310 |
CORE::delete $self->{dtdecl}; |
CORE::delete $self->{dtdecl}; |
311 |
$self->{cfg} = $r-><AG::Document.domConfig>; |
|
312 |
local $r->{<H::mn:node>} |
$r-><AS::Document.strictErrorChecking> (false); |
313 |
->{<H::cfg|entity-reference-read-only>} = false; |
## NOTE: Any checks such as |Name| validity done by |
314 |
|
## methods on DOM nodes are disabled. It might result |
315 |
|
## in creating an ill-formed DOM tree when parser |
316 |
|
## errors are traped by |error-handler|. |
317 |
|
$self->{doc_cfg}-><M::c|DOMConfiguration.setParameter> |
318 |
|
(<Q::cfg|entity-reference-read-only> => false); |
319 |
|
## NOTE: Turn this configuration parameter off is required |
320 |
|
## because entity reference subtree is created by |
321 |
|
## the parser rather than |createEntityReference|'s |
322 |
|
## cloning. Parser's |cfg:entity-reference-read-only| |
323 |
|
## configuration parameter controls whether generated |
324 |
|
## subtree is then marked as read-only or not. |
325 |
|
$self->{doc_cfg}-><M::c|DOMConfiguration.setParameter> |
326 |
|
(<Q::cfg|clone-entity-reference-subtree> => true); |
327 |
|
## NOTE: Turn this configuration parameter on makes |
328 |
|
## entity reference subtrees in attribute default values |
329 |
|
## cloned as is into default attribute node subtrees. |
330 |
|
|
331 |
## Document entity -> |Document| node |
## Document entity -> |Document| node |
332 |
$self->_parse_DocumentEntity; |
$self->_parse_DocumentEntity; |
345 |
## TODO: External entity support |
## TODO: External entity support |
346 |
$self->_parse_InternalGeneralParsedEntity ($ent->{node}); |
$self->_parse_InternalGeneralParsedEntity ($ent->{node}); |
347 |
$ent->{node}-><AS::x|Entity.hasReplacementTree> (true); |
$ent->{node}-><AS::x|Entity.hasReplacementTree> (true); |
348 |
|
## ISSUE: Should errors detected by this phase result |
349 |
|
## in |DOMLS:PARSE_ERR| exception thrown? |
350 |
} |
} |
351 |
## TODO: Read-only if configuration (for all entities) |
## TODO: Read-only if configuration (for all entities) |
352 |
} |
} |
353 |
|
|
354 |
|
## Turns flags to their default value |
355 |
|
$self->{doc_cfg}-><M::c|DOMConfiguration.setParameter> |
356 |
|
(<Q::cfg|entity-reference-read-only> => null); |
357 |
|
$self->{doc_cfg}-><M::c|DOMConfiguration.setParameter> |
358 |
|
(<Q::cfg|clone-entity-reference-subtree> => null); |
359 |
$r-><AS::Document.strictErrorChecking> (true); |
$r-><AS::Document.strictErrorChecking> (true); |
360 |
}__; |
}__; |
361 |
|
|
2284 |
my $er; |
my $er; |
2285 |
lang:Perl ($name => $token.value) : has-error { |
lang:Perl ($name => $token.value) : has-error { |
2286 |
## TODO: Namespace well-formedness |
## TODO: Namespace well-formedness |
|
## TODO: Entity declared constraints |
|
2287 |
|
|
2288 |
$er = $self->{doc}-><M::Document.createEntityReference> ($name); |
$er = $self->{doc}-><M::Document.createEntityReference> ($name); |
2289 |
$er-><AS::Node.textContent> (''); |
$er-><AS::Node.textContent> (''); |
2560 |
|
|
2561 |
lang:Perl { |
lang:Perl { |
2562 |
$self->{dtdef} = $node; |
$self->{dtdef} = $node; |
2563 |
$doc-><M::Node.appendChild> ($node); |
$self->{doc}-><M::Node.appendChild> ($node); |
2564 |
$doc-><AG::Document.domConfig> |
$self->{doc_cfg}-><M::c|DOMConfiguration.setParameter> |
2565 |
-><M::c|DOMConfiguration.setParameter> |
('schema-type' => <Q::xml-dtd:>); |
2566 |
('schema-type' => <Q::xml-dtd:>); |
## ISSUE: Should default schema language information be |
2567 |
|
## preserved by some other flag? |
2568 |
} |
} |
2569 |
|
|
2570 |
~? (DSO) { |
~? (DSO) { |
9888 |
} |
} |
9889 |
} |
} |
9890 |
|
|
9891 |
|
@@XMLTest: |
9892 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.nopref.1.test |
9893 |
|
@@@DEnt: |
9894 |
|
@@@@test:value: |
9895 |
|
<!DOCTYPE p [ |
9896 |
|
<!ATTLIST p a CDATA "&entity;"> |
9897 |
|
]> |
9898 |
|
<p/> |
9899 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (2, 22)..(2, 29); } |
9900 |
|
@@XMLTest: |
9901 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.nopref.2.test |
9902 |
|
@@@DEnt: |
9903 |
|
@@@@test:value: |
9904 |
|
<!DOCTYPE p [ |
9905 |
|
<!ENTITY other "aa"> |
9906 |
|
<!ENTITY % another "aa"> |
9907 |
|
<!ATTLIST p a CDATA "&entity;"> |
9908 |
|
]> |
9909 |
|
<p/> |
9910 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (4, 22)..(4, 29); } |
9911 |
|
@@XMLTest: |
9912 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.nopref.3.test |
9913 |
|
@@@DEnt: |
9914 |
|
@@@@test:value: |
9915 |
|
<?xml version="1.0" standalone="yes"?> |
9916 |
|
<!DOCTYPE p [ |
9917 |
|
<!ATTLIST p a CDATA "&entity;"> |
9918 |
|
]> |
9919 |
|
<p/> |
9920 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (3, 22)..(3, 29); } |
9921 |
|
@@XMLTest: |
9922 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.nopref.4.test |
9923 |
|
@@@DEnt: |
9924 |
|
@@@@test:value: |
9925 |
|
<?xml version="1.0" standalone="no"?> |
9926 |
|
<!DOCTYPE p [ |
9927 |
|
<!ATTLIST p a CDATA "&entity;"> |
9928 |
|
]> |
9929 |
|
<p/> |
9930 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (3, 22)..(3, 29); } |
9931 |
|
@@XMLTest: |
9932 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.nopref.5.test |
9933 |
|
@@@DEnt: |
9934 |
|
@@@@test:value: |
9935 |
|
<?xml version="1.0" standalone="yes"?> |
9936 |
|
<!DOCTYPE p [ |
9937 |
|
<!ENTITY other "aa"> |
9938 |
|
<!ENTITY % another "aa"> |
9939 |
|
<!ATTLIST p a CDATA "&entity;"> |
9940 |
|
]> |
9941 |
|
<p/> |
9942 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (5, 22)..(5, 29); } |
9943 |
|
@@XMLTest: |
9944 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.nopref.6.test |
9945 |
|
@@@DEnt: |
9946 |
|
@@@@test:value: |
9947 |
|
<?xml version="1.0" standalone="no"?> |
9948 |
|
<!DOCTYPE p [ |
9949 |
|
<!ENTITY other "aa"> |
9950 |
|
<!ENTITY % another "aa"> |
9951 |
|
<!ATTLIST p a CDATA "&entity;"> |
9952 |
|
]> |
9953 |
|
<p/> |
9954 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (5, 22)..(5, 29); } |
9955 |
|
@@XMLTest: |
9956 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.nopref.-1.test |
9957 |
|
@@@DEnt: |
9958 |
|
@@@@test:value: |
9959 |
|
<!DOCTYPE p [ |
9960 |
|
<!ENTITY entity "value"> |
9961 |
|
<!ATTLIST p a CDATA "&entity;"> |
9962 |
|
]> |
9963 |
|
<p/> |
9964 |
|
@@@test:domTree: |
9965 |
|
document { |
9966 |
|
document-type { |
9967 |
|
general-entity { |
9968 |
|
node-name: 'entity'; |
9969 |
|
text-content: 'value'; |
9970 |
|
} |
9971 |
|
element-type-definition { |
9972 |
|
node-name: 'p'; |
9973 |
|
attribute-definition { |
9974 |
|
node-name: 'a'; |
9975 |
|
general-entity-reference { |
9976 |
|
node-name: 'entity'; |
9977 |
|
is-expanded: true; |
9978 |
|
text-content: 'value'; |
9979 |
|
} |
9980 |
|
} |
9981 |
|
} |
9982 |
|
} |
9983 |
|
element { |
9984 |
|
attribute { |
9985 |
|
node-name: 'a'; |
9986 |
|
specified: false; |
9987 |
|
general-entity-reference { |
9988 |
|
node-name: 'entity'; |
9989 |
|
is-expanded: true; |
9990 |
|
text-content: 'value'; |
9991 |
|
} |
9992 |
|
} |
9993 |
|
} |
9994 |
|
} |
9995 |
|
@@XMLTest: |
9996 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.nopref.-1.2.test |
9997 |
|
@@@DEnt: |
9998 |
|
@@@@test:value: |
9999 |
|
<!DOCTYPE p [ |
10000 |
|
<!ATTLIST p a CDATA "&entity;"> |
10001 |
|
<!ENTITY entity "value"> |
10002 |
|
]> |
10003 |
|
<p/> |
10004 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (2, 22)..(2, 29); } |
10005 |
|
@@XMLTest: |
10006 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.nopref.-2.test |
10007 |
|
@@@DEnt: |
10008 |
|
@@@@test:value: |
10009 |
|
<!DOCTYPE p [ |
10010 |
|
<!ENTITY entity "value"> |
10011 |
|
<!ENTITY another SYSTEM "another"> |
10012 |
|
<!ATTLIST p a CDATA "&entity;"> |
10013 |
|
]> |
10014 |
|
<p/> |
10015 |
|
@@@test:domTree: |
10016 |
|
document { |
10017 |
|
document-type { |
10018 |
|
element-type-definition { |
10019 |
|
node-name: 'p'; |
10020 |
|
attribute-definition { |
10021 |
|
node-name: 'a'; |
10022 |
|
general-entity-reference { |
10023 |
|
node-name: 'entity'; |
10024 |
|
is-expanded: true; |
10025 |
|
text-content: 'value'; |
10026 |
|
} |
10027 |
|
} |
10028 |
|
} |
10029 |
|
general-entity { |
10030 |
|
node-name: 'entity'; |
10031 |
|
text-content: 'value'; |
10032 |
|
has-replacement-tree: true; |
10033 |
|
} |
10034 |
|
general-entity { |
10035 |
|
node-name: 'another'; |
10036 |
|
public-id: null; |
10037 |
|
system-id: 'another'; |
10038 |
|
has-replacement-tree: false; |
10039 |
|
} |
10040 |
|
} |
10041 |
|
element { |
10042 |
|
attribute { |
10043 |
|
node-name: 'a'; |
10044 |
|
specified: false; |
10045 |
|
general-entity-reference { |
10046 |
|
node-name: 'entity'; |
10047 |
|
is-expanded: true; |
10048 |
|
text-content: 'value'; |
10049 |
|
} |
10050 |
|
} |
10051 |
|
} |
10052 |
|
} |
10053 |
|
@@XMLTest: |
10054 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.nopref.-2.2.test |
10055 |
|
@@@DEnt: |
10056 |
|
@@@@test:value: |
10057 |
|
<!DOCTYPE p [ |
10058 |
|
<!ATTLIST p a CDATA "&entity;"> |
10059 |
|
<!ENTITY entity "value"> |
10060 |
|
<!ENTITY another SYSTEM "another"> |
10061 |
|
]> |
10062 |
|
<p/> |
10063 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (2, 22)..(2, 29); } |
10064 |
|
@@XMLTest: |
10065 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.standalone.2.test |
10066 |
|
@@@DEnt: |
10067 |
|
@@@@test:value: |
10068 |
|
<?xml version="1.0" standalone="yes"?> |
10069 |
|
<!DOCTYPE p [ |
10070 |
|
<!ATTLIST p a CDATA "&entity;"> |
10071 |
|
]> |
10072 |
|
<p/> |
10073 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (3, 22)..(3, 29); } |
10074 |
|
@@XMLTest: |
10075 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.standalone.3.test |
10076 |
|
@@@DEnt: |
10077 |
|
@@@@test:value: |
10078 |
|
<?xml version="1.0" standalone="yes"?> |
10079 |
|
<!DOCTYPE p [ |
10080 |
|
<!ATTLIST p a CDATA "&entity;"> |
10081 |
|
<!ENTITY % para "<!-- -->"> |
10082 |
|
%para; |
10083 |
|
]> |
10084 |
|
<p/> |
10085 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (3, 22)..(3, 29); } |
10086 |
|
@@XMLTest: |
10087 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.standalone.3.2.test |
10088 |
|
@@@DEnt: |
10089 |
|
@@@@test:value: |
10090 |
|
<?xml version="1.0" standalone="yes"?> |
10091 |
|
<!DOCTYPE p [ |
10092 |
|
<!ENTITY % para "<!-- -->"> |
10093 |
|
%para; |
10094 |
|
<!ATTLIST p a CDATA "&entity;"> |
10095 |
|
]> |
10096 |
|
<p/> |
10097 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (5, 22)..(5, 29); } |
10098 |
|
@@@enImplNote: |
10099 |
|
The <XML::ATTLIST> declaration is processed since |
10100 |
|
it is a <XA::standalone> document. |
10101 |
|
@@XMLTest: |
10102 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.standalone.-1.test |
10103 |
|
@@@DEnt: |
10104 |
|
@@@@test:value: |
10105 |
|
<?xml version="1.0" standalone="no"?> |
10106 |
|
<!DOCTYPE p [ |
10107 |
|
<!ATTLIST p a CDATA "&entity;"> |
10108 |
|
<!ENTITY % para "<!-- -->"> |
10109 |
|
%para; |
10110 |
|
]> |
10111 |
|
<p/> |
10112 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (3, 22)..(3, 29); } |
10113 |
|
@@XMLTest: |
10114 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.standalone.-1.2.test |
10115 |
|
@@@DEnt: |
10116 |
|
@@@@test:value: |
10117 |
|
<?xml version="1.0" standalone="no"?> |
10118 |
|
<!DOCTYPE p [ |
10119 |
|
<!ATTLIST q b CDATA #IMPLIED> |
10120 |
|
<!ENTITY % para "<!-- -->"> |
10121 |
|
%para; |
10122 |
|
<!ATTLIST p a CDATA "&entity;"> |
10123 |
|
]> |
10124 |
|
<p c="d"/> |
10125 |
|
@@@test:domTree: |
10126 |
|
document { |
10127 |
|
document-type { |
10128 |
|
element-type-definition { |
10129 |
|
node-name: 'q'; |
10130 |
|
attribute-definition { |
10131 |
|
node-name: 'b'; |
10132 |
|
} |
10133 |
|
} |
10134 |
|
} |
10135 |
|
element { |
10136 |
|
attribute { |
10137 |
|
node-name: 'c'; |
10138 |
|
text-content: 'd'; |
10139 |
|
} |
10140 |
|
} |
10141 |
|
} |
10142 |
|
@@@enImplNote: |
10143 |
|
The second <XML::ATTLIST> declaration is read but not processed |
10144 |
|
and its <XML::&entity;> general entity reference violates |
10145 |
|
entity declared validty constraint rather than well-formedness |
10146 |
|
constraint. |
10147 |
|
@@XMLTest: |
10148 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.standalone.-2.test |
10149 |
|
@@@DEnt: |
10150 |
|
@@@@test:value: |
10151 |
|
<!DOCTYPE p [ |
10152 |
|
<!ATTLIST p a CDATA "&entity;"> |
10153 |
|
<!ENTITY % para "<!-- -->"> |
10154 |
|
%para; |
10155 |
|
]> |
10156 |
|
<p/> |
10157 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (2, 22)..(2, 29); } |
10158 |
|
@@XMLTest: |
10159 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.standalone.-2.2.test |
10160 |
|
@@@DEnt: |
10161 |
|
@@@@test:value: |
10162 |
|
<!DOCTYPE p [ |
10163 |
|
<!ATTLIST q b CDATA #IMPLIED> |
10164 |
|
<!ENTITY % para "<!-- -->"> |
10165 |
|
%para; |
10166 |
|
<!ATTLIST p a CDATA "&entity;"> |
10167 |
|
]> |
10168 |
|
<p c="d"/> |
10169 |
|
@@@test:domTree: |
10170 |
|
document { |
10171 |
|
document-type { |
10172 |
|
element-type-definition { |
10173 |
|
node-name: 'q'; |
10174 |
|
attribute-definition { |
10175 |
|
node-name: 'b'; |
10176 |
|
} |
10177 |
|
} |
10178 |
|
} |
10179 |
|
element { |
10180 |
|
attribute { |
10181 |
|
node-name: 'c'; |
10182 |
|
text-content: 'd'; |
10183 |
|
} |
10184 |
|
} |
10185 |
|
} |
10186 |
|
@@XMLTest: |
10187 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.standalone.4.test |
10188 |
|
@@@DEnt: |
10189 |
|
@@@@test:value: |
10190 |
|
<?xml version="1.0" standalone="yes"?> |
10191 |
|
<!DOCTYPE p [ |
10192 |
|
<!ATTLIST p a CDATA "&entity;"> |
10193 |
|
<!ENTITY % para SYSTEM "p"> |
10194 |
|
%para; |
10195 |
|
]> |
10196 |
|
<p/> |
10197 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (3, 22)..(3, 29); } |
10198 |
|
@@XMLTest: |
10199 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.standalone.4.2.test |
10200 |
|
@@@DEnt: |
10201 |
|
@@@@test:value: |
10202 |
|
<?xml version="1.0" standalone="yes"?> |
10203 |
|
<!DOCTYPE p [ |
10204 |
|
<!ENTITY % para SYSTEM "p"> |
10205 |
|
%para; |
10206 |
|
<!ATTLIST p a CDATA "&entity;"> |
10207 |
|
]> |
10208 |
|
<p/> |
10209 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (5, 22)..(5, 29); } |
10210 |
|
@@@enImplNote: |
10211 |
|
The <XML::ATTLIST> declaration is processed since |
10212 |
|
it is a <XA::standalone> document. |
10213 |
|
@@XMLTest: |
10214 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.standalone.-3.test |
10215 |
|
@@@DEnt: |
10216 |
|
@@@@test:value: |
10217 |
|
<?xml version="1.0" standalone="no"?> |
10218 |
|
<!DOCTYPE p [ |
10219 |
|
<!ATTLIST p a CDATA "&entity;"> |
10220 |
|
<!ENTITY % para SYSTEM "p"> |
10221 |
|
%para; |
10222 |
|
]> |
10223 |
|
<p/> |
10224 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (3, 22)..(3, 29); } |
10225 |
|
@@@enImplNote: |
10226 |
|
Is this well-formed? It has a parameter entity reference, |
10227 |
|
therefore, it does not violates Entity Declared WFC, isn't it? |
10228 |
|
|
10229 |
|
Note that Firefox 1.5 and Opera 9 TP1 reports that this document has a |
10230 |
|
fatal error (also note that they does not support unexpanded). |
10231 |
|
|
10232 |
|
See also: |
10233 |
|
<URI::http://suika.fam.cx/gate/2005/sw/%E5%B1%9E%E6%80%A7%E5%80%A4%E8%A1%A8%E8%A8%98#anchor-8> |
10234 |
|
@@XMLTest: |
10235 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.standalone.-3.2.test |
10236 |
|
@@@DEnt: |
10237 |
|
@@@@test:value: |
10238 |
|
<?xml version="1.0" standalone="no"?> |
10239 |
|
<!DOCTYPE p [ |
10240 |
|
<!ATTLIST q b CDATA #IMPLIED> |
10241 |
|
<!ENTITY % para SYSTEM "p"> |
10242 |
|
%para; |
10243 |
|
<!ATTLIST p a CDATA "&entity;"> |
10244 |
|
]> |
10245 |
|
<p c="d"/> |
10246 |
|
@@@test:domTree: |
10247 |
|
document { |
10248 |
|
document-type { |
10249 |
|
element-type-definition { |
10250 |
|
node-name: 'q'; |
10251 |
|
attribute-definition { |
10252 |
|
node-name: 'b'; |
10253 |
|
} |
10254 |
|
} |
10255 |
|
} |
10256 |
|
element { |
10257 |
|
attribute { |
10258 |
|
node-name: 'c'; |
10259 |
|
text-content: 'd'; |
10260 |
|
} |
10261 |
|
} |
10262 |
|
} |
10263 |
|
@@@enImplNote: |
10264 |
|
The second <XML::ATTLIST> declaration is read but not processed |
10265 |
|
and its <XML::&entity;> general entity reference violates |
10266 |
|
entity declared validty constraint rather than well-formedness |
10267 |
|
constraint. |
10268 |
|
@@XMLTest: |
10269 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.standalone.-4.test |
10270 |
|
@@@DEnt: |
10271 |
|
@@@@test:value: |
10272 |
|
<!DOCTYPE p [ |
10273 |
|
<!ATTLIST p a CDATA "&entity;"> |
10274 |
|
<!ENTITY % para SYSTEM "p"> |
10275 |
|
%para; |
10276 |
|
]> |
10277 |
|
<p/> |
10278 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (2, 22)..(2, 29); } |
10279 |
|
@@XMLTest: |
10280 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.standalone.-4.2.test |
10281 |
|
@@@DEnt: |
10282 |
|
@@@@test:value: |
10283 |
|
<!DOCTYPE p [ |
10284 |
|
<!ATTLIST q b CDATA #IMPLIED> |
10285 |
|
<!ENTITY % para SYSTEM "p"> |
10286 |
|
%para; |
10287 |
|
<!ATTLIST p a CDATA "&entity;"> |
10288 |
|
]> |
10289 |
|
<p c="d"/> |
10290 |
|
@@@test:domTree: |
10291 |
|
document { |
10292 |
|
document-type { |
10293 |
|
element-type-definition { |
10294 |
|
node-name: 'q'; |
10295 |
|
attribute-definition { |
10296 |
|
node-name: 'b'; |
10297 |
|
} |
10298 |
|
} |
10299 |
|
} |
10300 |
|
element { |
10301 |
|
attribute { |
10302 |
|
node-name: 'c'; |
10303 |
|
text-content: 'd'; |
10304 |
|
} |
10305 |
|
} |
10306 |
|
} |
10307 |
|
@@XMLTest: |
10308 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.standalone.5.test |
10309 |
|
@@@DEnt: |
10310 |
|
@@@@test:value: |
10311 |
|
<?xml version="1.0" standalone="yes"?> |
10312 |
|
<!DOCTYPE p SYSTEM "dtd" [ |
10313 |
|
<!ATTLIST p a CDATA "&entity;"> |
10314 |
|
]> |
10315 |
|
<p/> |
10316 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (3, 22)..(3, 29); } |
10317 |
|
@@@enImplNote: |
10318 |
|
This document has an error - result is implementation dependent. |
10319 |
|
@@XMLTest: |
10320 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.standalone.-5.test |
10321 |
|
@@@DEnt: |
10322 |
|
@@@@test:value: |
10323 |
|
<?xml version="1.0" standalone="no"?> |
10324 |
|
<!DOCTYPE p SYSTEM "dtd" [ |
10325 |
|
<!ATTLIST p a CDATA "&entity;"> |
10326 |
|
]> |
10327 |
|
<p/> |
10328 |
|
@@@test:domTree: |
10329 |
|
document { |
10330 |
|
document-type { |
10331 |
|
element-type-definition { |
10332 |
|
node-name: 'p'; |
10333 |
|
attribute-definition { |
10334 |
|
node-name: 'a'; |
10335 |
|
general-entity-reference { |
10336 |
|
node-name: 'entity'; |
10337 |
|
is-expanded: false; |
10338 |
|
} |
10339 |
|
} |
10340 |
|
} |
10341 |
|
} |
10342 |
|
element { |
10343 |
|
attribute { |
10344 |
|
node-name: 'a'; |
10345 |
|
specified: false; |
10346 |
|
general-entity-reference { |
10347 |
|
node-name: 'entity'; |
10348 |
|
is-expanded: false; |
10349 |
|
} |
10350 |
|
} |
10351 |
|
} |
10352 |
|
} |
10353 |
|
@@@enImplNote: |
10354 |
|
This document has an error - result is implementation dependent. |
10355 |
|
@@XMLTest: |
10356 |
|
@@@QName: xp.attlist.attval.ger.entity.declared.standalone.-6.test |
10357 |
|
@@@DEnt: |
10358 |
|
@@@@test:value: |
10359 |
|
<!DOCTYPE p SYSTEM "dtd" [ |
10360 |
|
<!ATTLIST p a CDATA "&entity;"> |
10361 |
|
]> |
10362 |
|
<p/> |
10363 |
|
@@@test:domTree: |
10364 |
|
document { |
10365 |
|
document-type { |
10366 |
|
element-type-definition { |
10367 |
|
node-name: 'p'; |
10368 |
|
attribute-definition { |
10369 |
|
node-name: 'a'; |
10370 |
|
general-entity-reference { |
10371 |
|
node-name: 'entity'; |
10372 |
|
is-expanded: false; |
10373 |
|
} |
10374 |
|
} |
10375 |
|
} |
10376 |
|
} |
10377 |
|
element { |
10378 |
|
attribute { |
10379 |
|
node-name: 'a'; |
10380 |
|
specified: false; |
10381 |
|
general-entity-reference { |
10382 |
|
node-name: 'entity'; |
10383 |
|
is-expanded: false; |
10384 |
|
} |
10385 |
|
} |
10386 |
|
} |
10387 |
|
} |
10388 |
|
@@@enImplNote: |
10389 |
|
This document has an error - result is implementation dependent. |
10390 |
|
|
10391 |
|
@@XMLTest: |
10392 |
|
@@@QName: xp.attlist.dup.entity.declared.1.test |
10393 |
|
@@@DEnt: |
10394 |
|
@@@@test:value: |
10395 |
|
<!DOCTYPE p [ |
10396 |
|
<!ATTLIST p a CDATA "no-entity"> |
10397 |
|
<!ATTLIST p a CDATA "&entity;"> |
10398 |
|
]> |
10399 |
|
<p/> |
10400 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (3, 21)..(3, 29); } |
10401 |
|
@@XMLTest: |
10402 |
|
@@@QName: xp.attlist.dup.entity.declared.2.test |
10403 |
|
@@@DEnt: |
10404 |
|
@@@@test:value: |
10405 |
|
<!DOCTYPE p [ |
10406 |
|
<!ATTLIST p a CDATA "no-entity" |
10407 |
|
a CDATA "&entity;"> |
10408 |
|
]> |
10409 |
|
<p/> |
10410 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (3, 21)..(3, 29); } |
10411 |
|
@@XMLTest: |
10412 |
|
@@@QName: xp.attlist.unused.entity.declared.1.test |
10413 |
|
@@@DEnt: |
10414 |
|
@@@@test:value: |
10415 |
|
<!DOCTYPE p [ |
10416 |
|
<!ATTLIST q a CDATA "&entity;"> |
10417 |
|
]> |
10418 |
|
<p/> |
10419 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (2, 21)..(2, 29); } |
10420 |
|
@@XMLTest: |
10421 |
|
@@@QName: xp.attlist.unused.entity.declared.2.test |
10422 |
|
@@@DEnt: |
10423 |
|
@@@@test:value: |
10424 |
|
<!DOCTYPE p [ |
10425 |
|
<!ATTLIST p a CDATA "&entity;"> |
10426 |
|
]> |
10427 |
|
<p a="bb"/> |
10428 |
|
@@@c:erred: <[[xp|wf-entity-declared]]> { (2, 21)..(2, 29); } |
10429 |
|
|
10430 |
@@enImplNote: |
@@enImplNote: |
10431 |
{TODO:: Entity declared WFC for |
{TODO:: Entity declared WFC for |
10432 |
|
|
|
- General entity references in attribute value literals in |
|
|
attlist declarations |
|
|
|
|
10433 |
- General entity references in replacement texts referenced |
- General entity references in replacement texts referenced |
10434 |
in attribute value literals in tags |
in attribute value literals in tags |
10435 |
|
|