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

Re: words (RE: extensibility in XSchema?)

  • From: Peter Murray-Rust <peter@u...>
  • To: <xml-dev@i...>
  • Date: Mon, 22 Jun 1998 19:51:25

re words
At 23:50 22/06/98 +1000, Rick Jelliffe wrote:
[...]
>
>This is why the particular word "semantics" is worthless. People
>use it so equivocally that sentences containing the word are rendered
>useless. I try to avoid the word now. I try to stick with SGML's
>	text = data + markup
>and use "data" and "information" wherever possible.

I'll buy this - at least to the extent that I shall try to avoid the term
semantics.  However I need *some* terminology to describe what I want to
do. Perhaps we can converge on some of that (given also that spec drafters
are also trying to firm up *some* of the terminological problems). I shall
use the word 'meaning' at present.

I'm a pragmatist and need to address the following problems:

- how do I add human 'meaning' to an object (e.g. an element or attribute)?
- how do I add machine 'meaning' to an object?

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'.
	- there is a DTD whose sole purposes are: 
		- to expand minimisation (irrelevant for this document)
		- to validate the document.
Yes, you can fill the DTD with comments, but they have no formal meaning
and there is no way even of knowing which comment belongs to which element
apart from guessing. It is even worse with attributes, unless each exists
in a single <!ATTLIST>


Now compare MIME:
	If I get sent a file of type image/gif I can:
	- determine that 'image/gif' is a MIME type
	- see if it is in the central IETF registry. If so I can read the formal
definition, etc.
	- *and most important for me* I can associate the MIME type with a program
through the mailcap file, *even if the MIME type is not registered*.

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. 

This is what I used to call semantics. If someone can come up with a better
term, it would be useful. RickJ uses the word 'bind' - I like that.

	P.

Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic
net connection
VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary
http://www.venus.co.uk/vhg

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.