Re: Wrong Example at 'Extensible Markup Language (XML) 1.0 (Fifth Edition) - 4.6 Predefined Entities

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

WalkinRaven writes:

> Hello,
>
> At here:
> http://www.w3.org/TR/2008/REC-xml-20081126/#sec-predefined-ent
>
> There is an example:
> <!ENTITY lt      "&#38;#60;">
> <!ENTITY gt      "&#62;">
> <!ENTITY amp     "&#38;#38;">
> <!ENTITY apos    "&#39;">
> <!ENTITY quot    "&#34;">

Those definitions are unchanged since the first edition.  They are
correct as given, because &#38; and &#60; must be expanded immediately
on being encountered, as explained at the top of that section.

<!ENTITY lt      "&#60;">
<!ENTITY amp     "&#38;">

Both of those  violate well-formedness conditions.  Have you tried them?

ht
- -- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 651-1426, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFMtdRTkjnJixAXWBoRAhLgAJ9EqdOnFm9PnBjmMRAH7F6QrjXzIgCdHNz9
ucuPib2uIaIE9k2URnNdn0o=
=Ri9l
-----END PGP SIGNATURE-----

Received on Wednesday, 13 October 2010 15:46:59 UTC