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

Re: words (RE: extensibility in XSchema?)

  • From: "W. Eliot Kimber" <eliot@i...>
  • To: <xml-dev@i...>
  • Date: Mon, 22 Jun 1998 16:29:59 -0500

foo foo lamar
At 07:51 PM 6/22/98, Peter Murray-Rust wrote:

>At present there are *no* defined mechanisms for either of these in XML. I
>find this amazing and regrettable (I - and others such have Rick) have been
>shouting for it).  Consider:
>
><foo bar="baz"/>
>
>That's it. All we can say is there is a foo element with a bar attribute
>whose value is baz.
>
>Now try:
><!DOCTYPE foo SYSTEM "foo.dtd">
><foo bar="baz"/>
>
>The DOCTYPE adds the meaning, doesn't it? Nope, it says the following:
>	- the root element is a foo element. But we know that already. It does NOT
>define the document as of type 'foo'.

[...]

>This is all I am asking for, but there seems to be no way to do a similar
>thing for an XML element or attribute. 

You could try:

<?XML version="1.0"?>
<?IS10744 arch 
  name="foo"
  public-id="+//IDN me.com//NOTATION Foo Architecture//EN"
  dtd-system-id="foo.dtd"
  doc-elem-name="foo"
?>
<foo bar="baz"/>

Which at least tells you that the document is governed by the "Foo
Architecture", which you could, given some appropriate infrastructure
(which might be a mapping from architecture public IDs to MIME types if
such a thing made sense--it's no more silly than mapping extensions to MIME
types, and at least uses names that can be made universally unique),
dereference to various definitional documents and formalisms.  The pointer
to the architectural DTD lets you syntactically validate the document using
that DTD using a parser like SP and apply normal XML processing to the
architectural instance.

Remember that, by definition, the external ID of a notation is intended to
get you to the definition of that notation, in the same way that a MIME
type gets you to the official definition of the type.

I see you as asking for two things:

1. A way to unambiguously relate a document to a governing semantic
definition.
2. A way to get the parts of that definition in some predictable ways.

Certain the PI shown above satisfies requirement 1. I'm not sure that
requirement 2 can be satisfied in a completely general way, but certainly
one could define domain-specific conventions or standards ala MIME
processing (e.g., a registry of definition documents in some agreed upon
form (which might be simply "prose")).

Cheers,

E.
--
<Address HyTime=bibloc>
W. Eliot Kimber, Senior Consulting SGML Engineer
ISOGEN International Corp.
2200 N. Lamar St., Suite 230, Dallas, TX 95202.  214.953.0004
www.isogen.com
</Address>

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-2013 All Rights Reserved.