[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: DTD invented by Microsoft?!
> Could someone explain what "instance syntax for type definitions" > means. Thanks! <meta> I am aware this is a beginner's question. Is xml-dev the right place to answer ? If not, where is the place for such Q/A ? </meta> Anyway: In valid XML there are two distinct parts of a document, the DTD and the "document instance". Both serve different purposes. The "instance" is the marked up text the user produces. (So any valid HTML page is an "instance" of the HTML DTD). The tags allowed in the instance are declared in the DTD using a different syntax. The term "instance syntax for type definitions" means, that the same syntax is used for both DTD and instance. Compare: <!doctype aaa [ <!element aaa (bbb+) > <!-- This is XML DTD syntax --> <!element bbb (ccc*) > <!element ccc (#PCDATA) > ]> with <doctype> <!-- This is the same structure --> <element> <!-- expressed in instance syntax --> <name>aaa</name> <!-- (example only, invalid) --> <model><plus>bbb</plus></model> </element> <element> <name>bbb</name> <model><rep>ccc</rep></model> </element> <element> <name>ccc</name> <model></rni type="PCDATA"></model> </element> </doctype> Using the second case there has to be a mechanism to tell meta-structure-defining tags (<element>, <doctype>, ...) from user-defined ones, e.g. 1. namespaces (proposed mechanism for XML) 2. reserved attributes (like the current XML-Link draft) 3. reserved names (like with HTML) 4. processing instructions (shudder) 5 ... Q: Has Microsoft published the intended syntax for "Schemata" (the MS name for "marked up" DTD) to the public ? I can't find the link, help is welcome. ++im -- Ingo Macherius // L'Aigler Platz 4 // D-38678 Clausthal-Zellerfeld mailto:Ingo.Macherius@t... http://www.tu-clausthal.de/~inim/ Information!=Knowledge!=Wisdom!=Truth!=Beauty!=Love!=Music==BEST (Frank Zappa) xml-dev: A list for W3C XML Developers Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ To unsubscribe, send to majordomo@i... the following message; unsubscribe xml-dev List coordinator, Henry Rzepa (rzepa@i...)
|
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
|