Yes - I have always seen a DTD as a collection of element/attribute
constraints. It only describes a document if the document structure happens
to fit the root element. But very often the it will describe the individual
elements (including their children) and not the whole document. Of course a
parser will regard that as an error at present, but the element-based
approach has still a great deal of value - especially in a namespace context.
P.
Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic
net connection
VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary
http://www.venus.co.uk/vhg