W3C home > Mailing lists > Public > xml-editor@w3.org > July to September 1998

Re: Error in the XML REC

From: Tim Bray <tbray@textuality.com>
Date: Thu, 02 Jul 1998 05:57:06 -0700
Message-Id: <3.0.32.19980701184413.00a36ff0@pop.intergate.bc.ca>
To: Alain Michard <Alain.Michard@inria.fr>, xml-editor@w3.org
At 10:26 AM 6/30/98 +0100, Alain Michard wrote:
>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.

No.  The &#37; makes a '%' and the value of %xx; is in fact %zz;

>Second, this exemple contradicts the following statement :

Good point, maybe, I'll check.

>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.

Good point. -Tim
Received on Thursday, 2 July 1998 08:55:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:29 GMT