[
Lists Home |
Date Index |
Thread Index
]
- From: "Ingo Macherius" <Ingo.Macherius@TU-Clausthal.de>
- To: akirkpatrick@ims-global.com
- Date: Wed, 25 Jun 1997 19:53:05 +0000
> 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@tu-clausthal.de 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@ic.ac.uk the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa@ic.ac.uk)
|