4.3.2 Well-Formed Parsed Entities of XML 1.0 and XML 1.1

We would like to have some explanation regarding the interpretation of
the following paragraph in section 4.3.2 of
XML 1.1 (Proposed recommendation) and XML 1.0 (recommendation).
 
“An internal general parsed entity is well-formed if its replacement
text matches the production labeled content
<http://www.w3.org/TR/2003/PR-xml11-20031105/#NT-content> .”
 
The word “match” should be interpreted such that a XML parser does not
have to check WFCs in the replacement text ?
We would also like to have some clarification regarding this issue for
XML Namespaces conformant parsers.
The following example XML documents might help clarifying this issue.
Are the following documents well-formed ?
 
TEST 1:
 
<?xml version="1.0"?>
<!DOCTYPE root [
            <!ENTITY bogus "<a></b>">
]>
<root>
</root>
 
TEST 2:
 
<?xml version="1.0"?>
<!DOCTYPE root [
            <!ENTITY bogus "<a att='1' att='2'></a>">
]>
<root>
</root>
 
TEST 3:
 
<?xml version="1.0"?>
<!DOCTYPE root [
            <!ENTITY bogus "<x:y/>">
]>
<root>
</root>
 
Best regards,
 
            Carlos Viegas Damásio, Peter Novak and Martin Balaz
 
Carlos Viegas Damásio (Prof. Auxiliar) | Tel: +351-21-294 8536
(ext.10758)
Departamento de Informática            | Fax: +351-21-294 8541
Fac. de Ciências e Tecnologia da       |
Universidade Nova de Lisboa            | 
Qta. da Torre - 2829-516 Caparica      | e-mail: cd@di.fct.unl.pt
PORTUGAL                               |
http://centria.di.fct.unl.pt/~cd
 

Received on Thursday, 11 December 2003 15:17:02 UTC