Valid XML document

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


Hi,

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"?>
<test>
<xsl:stylesheet version="1.0"
			xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<html>
<title>this is a test</title>
<body><xsl:value-of select="//greeting"></body>
</html>
</xsl:stylesheet>
<greeting>Hello, world!</greeting>
</test>

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

Cheers
Didier PH Martin
mailto:martind at netfolder.com
http://www.netfolder.com


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





More information about the Xml-dev mailing list