W3C home > Mailing lists > Public > xml-editor@w3.org > October to December 2003

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

From: Carlos Viegas Damásio <cd@di.fct.unl.pt>
Date: Thu, 11 Dec 2003 20:16:45 -0000
To: <xml-editor@w3.org>
Cc: "'Martin Balaz'" <balaz@danka.ii.fmph.uniba.sk>, "'Peter Novak'" <pno@aronde.net>
Message-ID: <001501c3c023$b7fb1660$fe82c80a@pccd>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 23:39:46 UTC