W3C home > Mailing lists > Public > xml-editor@w3.org > April to June 1998

Error in the XML REC

From: Alain Michard <Alain.Michard@inria.fr>
Date: Tue, 30 Jun 1998 10:26:53 +0100
Message-Id: <l03102800b1be5e292ab6@[]>
To: xml-editor@w3.org, tbray@textuality.com
There's an error and a misleading exemple in the XML REC:

In Annex D, second exemple :
  1 <?xml version='1.0'?>
  2 <!DOCTYPE test [
  3 <!ELEMENT test (#PCDATA) >
  4 <!ENTITY % xx '&#37;zz;'>
  5 <!ENTITY % zz '&#60;!ENTITY tricky "error-prone" >' >
  6 %xx;
  7 ]>
  8 <test>This sample shows a &tricky; method.</test>

First, the PER %zz; in line 4 is not written correctly, the % is missing.
Second, this exemple contradicts the following statement :
Well-Formedness Constraint: PEs in Internal Subset
In the internal DTD subset, parameter-entity references can occur only
where markup declarations can occur, not within markup declarations. (This
does not
apply to references that occur in external parameter entities or to the
external subset.)

In section 4.5, this exemple:
  <!ENTITY % pub    "&#xc9;ditions Gallimard" >
  <!ENTITY   rights "All rights reserved" >
  <!ENTITY   book   "La Peste: Albert Camus,
  &#xA9; 1947 %pub;. &rights;" >

is well-formed ONLY if it appears in the external subset of a DTD.
A little "warning" would have been helpfull to avoid erroneous
interpretation of the exemple.


Alain Michard
Received on Tuesday, 30 June 1998 04:26:06 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:37:38 UTC