[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: DTD invented by Microsoft?!

  • From: "Ingo Macherius" <Ingo.Macherius@T...>
  • To: akirkpatrick@i...
  • Date: Wed, 25 Jun 1997 19:53:05 +0000

xml microsoft dtd
> 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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.