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

Possible errata in XML 1.0/1.1 Section 2.3

From: Satoshi ISHIKAWA <webmaster@satoshii.org>
Date: Mon, 10 Nov 2003 07:23:50 +0900
To: <xml-editor@w3.org>
Message-ID: <BBD4ED86.1BE2%webmaster@satoshii.org>

Hi,

"2.3. Common Syntactic Constructs" of XML 1.0 SE [1], XML 1.0 third
edition PER [2] and XML 1.1 PR [3] is described as follows:

> Note:
>   Although the EntityValue production allows the definition
>   of an entity consisting of a single explicit < in the literal
>   (e.g., <!ENTITY mylt "<">), it is strongly advised to avoid
>   this practice since any reference to that entity will cause
>   a well-formedness error.

However, this statement is not applied to parameter entity references.
E.g., the following declarations are valid.

 <!ENTITY % mylt "<" >
 <!ENTITY % myDecl "%mylt;!ELEMENT myElem EMPTY >" >
 %myDecl;

Such descriptions are nonsense, but conforms to XML syntax.
So the word 'entity' should be changed to 'general entity'.


[1] http://www.w3.org/TR/2000/REC-xml-20001006#sec-common-syn
[2] http://www.w3.org/TR/2003/PER-xml-20031030/#sec-common-syn
[3] http://www.w3.org/TR/2003/PR-xml11-20031105/#sec-common-syn

Regards,
-- 
Satoshi ISHIKAWA / webmaster@satoshii.org
http://www.satoshii.org/markup/
Received on Sunday, 9 November 2003 17:25:02 UTC

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