Re: Comments on XHTML 2.0 document conformance requirements

Henri Sivonen is right. To avoid confusion about redirection the example 
should be

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2/" xml:lang="en">
    <head>
      <title>Virtual Library</title>
    </head>
    <body>
      <p>The Virtual Library</p>
    </body>
</html>

To use entities without a "legacy" DOCTYPE declaration it shold be 
possible to write

<?xml version="x.x" encoding="UTF-8"?>
<!DOCTYPE
[
   <!ENTITY virtlib "Virtual Library">
]>
<html xmlns="http://www.w3.org/2002/06/xhtml2/" xml:lang="en">
    <head>
      <title>&virtlib;</title>
    </head>
    <body>
      <p>The &virtlib;</p>
    </body>
</html>

or simply

<?xml version="x.x" encoding="UTF-8"?>
<!ENTITY virtlib "Virtual Library">
<html xmlns="http://www.w3.org/2002/06/xhtml2/" xml:lang="en">
    <head>
      <title>&virtlib;</title>
    </head>
    <body>
      <p>The &virtlib;</p>
    </body>
</html>

But this is a problem for the XML working group.
--
Herbert Schiemann
mailto:h.schiemann@laemmerzahl.de

Received on Thursday, 16 June 2005 01:31:09 UTC