[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Requirements for making DTD validation work with namespaces
IMHO, that solution (like just about every other one I've heard) is lacking. I believe Microsoft tried something like that, with unpleasant and incompatible results (Hint: try to declare an element with a colon in the name, and no attributes, using MSXML 1.0). WRT the earlier proposal by Paul Abrahams, let me draw your attention to the following line from the XML Namespaces REC: "No entity names, PI targets, or notation names contain any colons." Everyone seems to have their own 'pet' schemes for making DTD validation work with Namespaces. To help further useful discussion of this, I propose the following: ==================== Requirements for making DTD validation work with namespaces ==================== I submit that any "special" processor behavior needs to be 100% compatible with XML 1.0 and the XML Namespaces Rec: 1. All XML 1.0 Valid documents are still Valid; 2. All XML 1.0 Invalid documents are still Invalid; 3. All namespace declarations work just as in the XML Namespaces REC (whether document is Valid or not) A frequent proposal is creation of a new definition of "Namespace-Valid" XML Documents. I also submit that, for this to work: 4. ALL XML 1.0 documents that are Valid and conform to the XML Namespaces REC, are considered to be "Namespace-Valid"; 5. SOME XML 1.0 documents that are Well-Formed, Invalid, and conform to the XML Namespaces REC, are considered to be "Namespace-Valid". I, for one, am not interested in any scheme for integrating DTDs and Namespaces unless in adheres to all five requirements, above. Sadly, the leading candidates seem to be: 1. Ignore the whole problem, and hope it goes away 2. Nested Parameter Entities, as used in the DTD for XML Schemas -Wayne Steele >From: james anderson <james.anderson@m...> > >If one were expect a processor to implement this mechanism, then one >could just as well expect a processor to implement the mechanism which >is already implied by the namespace spec. Namely, to observe attribute >default bindings for namespace attributes when reading the dtd. If >specified in the internal subset for the root element of a dtd fragment >which is described externally, the encoding is not significantly more >complex then the implicit qualification proposed here. It also requires >just implementing things which are already described... ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|