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

Modules (was Re: namespaces )

  • From: "Rick Jelliffe" <ricko@a...>
  • To: "james anderson" <mecom-gmbh@m...>, <xml-dev@i...>
  • Date: Wed, 7 Jan 1998 17:05:08 +1100

xml reserved keywords

 
> From: james anderson <mecom-gmbh@m...>

> i had found two proposals at the time i was implementing namespaces, the
> implementation is closest to the one which i can attribute only to "microsoft"
> (my copy has no authorship noted) and which dates from 21.10.97.
> we use the pi-form from the microsoft proposal to denote the creationof the
> specified package and to load the specified dtd into that package.

You may also be interested in the "Module" proposals, which were suggested for
inclusion into SGML. The idea started in Japan and has floated around getting
firmer and simpler over the last year of XML discussions.

The idea is simply to use any parameter entity name as a module prefix.
So you could have, for example (though presumably it would use external
parameter entities, not internal like in this example)

<!DOCTYPE y [ 
	<!ENTITY % one " 
		<!ELEMENT x (#PCDATA)>
	">
	<!ENTITY % two " 
		<!ELEMENT x ( #PCDATA | y )* >
		%one;
	">
	%one;
	%two;
]>
<y>
	<x>This is the element type declared in PE "one", as expected.</x>
 	<one::x>This is also the element type declared in PE "one".</one::x>
 	<two::x>This is the element type declared in PE "two".<y/></two::x>
	<two::one::x>This is the element type declared in "one".</two::one::x>
</y>

These merely provide a directory system to resolve names, they
don't attempt to provide any schema solution (that is a separate
problem). Because parameter entities can contain other PEs,
the module prefixes can concatenate (e.g., two::one::x above).

(In the SGML proposals, there is actually a special keyword MODULE
put as part of the parameter entity declaration, to flag that the
PE is also a module, but this is not required.)

Rick Jelliffe



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto: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-2007 All Rights Reserved.