Valid XML document

Didier PH Martin martind at
Wed Nov 24 14:03:02 GMT 1999


Is the following XML document a valid XML 1.0 document?

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE greeting [
  <!ELEMENT test (greeting)>
  <!ELEMENT greeting (#PCDATA)>
<?xml-stylesheet href="#Style" type="text/xsl"?>
<xsl:stylesheet version="1.0"
<title>this is a test</title>
<body><xsl:value-of select="//greeting"></body>
<greeting>Hello, world!</greeting>

According to the XSLT recommendation section 2.7 it should be. But according
to the XML 1.0 recommendation is it?

Didier PH Martin
mailto:martind at

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list