Problems validating the W3C schema DTD's

Paul Prescod paul at prescod.net
Mon May 17 21:47:46 BST 1999


Andrew Layman wrote:
> 
> The MSXML parser requires that any "xmlns" attribute declared in a DTD must
> be FIXED because, if you want to use the DTD to validate an instance, you
> must use exactly the same prefixes in the instance as were used in the DTD.

Nevertheless the parser rejects documents that are valid both according to
the XML and XML namespaces specification.

> Looking at the same point from another angle, DTDs do not treat namespace
> prefixes as symbolic intermediaries, but instead as ordinary characters in
> element and attribute names.  As such, their binding is fixed by the author
> of the DTD, and any alteration of the binding in a document instance would
> produce an instance no longer described by that DTD. 

When that occurs you can signal the error.

-- 
 Paul Prescod  - ISOGEN Consulting Engineer speaking for only himself
 http://itrc.uwaterloo.ca/~papresco

The dress code in Las Cruces New Mexico has been tightened [to] target 
Gothic clothing, such as dark trench coats. "It is not a witch hunt"
Superintendent Jesse L. Gozales said. "It is for the safety of the kids
in our schools."  - Associated Press, May 16 1999

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 (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe 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