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

Re: Another look at namespaces

  • From: Paul Prescod <paul@p...>
  • To: Rick Jelliffe <ricko@a...>
  • Date: Fri, 17 Sep 1999 17:08:12 +0200

Re: Another look at namespaces
Rick Jelliffe wrote:
> 
> Again, Andrew is simply conflating schema and namespace.  The idea that
> he and Tim are putting forward is that a language is defined by a single
> set of content models; this confuses "language" with "grammar" 

What definition of language are you using that does NOT state that every
language has one and only one grammar. Is there a book I can read that
defines it? The SGML Cookbook doesn't count.

> and
> is disproved by long-standing SGML practise, in which variants of
> a language can be defined in the same DTD (selected by marked sections,
> or by simply overriding parameter entity declarations).

SGML does not (AFAIR) define the word "language." It defines the word
"document type" and a document type has one and only one grammar. 

Even if we ignored this we could say that SGML use a very flexible
grammar definition language that defines grammars that are not
context-free or hedge-regular or whatever. Grammars can be
paramaterizable, extensible and otherwise complex.

But as Tim B-L and I both said, the important consideration is temporal.
XHTML 1.0 could be defined with one of these "parameterizable grammars".
We could have one dialect and neither of us would care much. But it
would set a bad precedent because it would validate this fuzzy notion of
"wink, wink, we know what a language is, nudge, nudge." This will cause
problems over time when new versions come about.

Assertion: Once there are deployed XHTML processors it should be
absolutely illegal to silently pass off new, incompatible versions as if
they were the same as old versions. New, compatible versions (e.g.
subsets) are not a problem.

A version attribute has a few problems

 * it is HTML *specific* -- every document type has versioning issues
and every document type (now) has a different approach to it. There can
be no general version-handling "engine" as long as this is the case.

 * the version attribute doesn't tell a new processor what it needs to
know in order to know whether it can process the document safely. Once
again, there is no standard for communicating *what has changed*.

"Rip Van Winkle, the language has changed. Certain of your grammatical
constructs have become offensive. You will be shot if you use them"

"Can you tell me which ones?"

"Sorry, you'll just have to learn by experimentation."

> If the <blink> element is removed, it is the
> declarations
> for running text that should be changed, not the declarations for <p>.
> DTDs only provide parameter entities for this, which disguises this
> basic
> modeling truth. 

The modelling language isn't the issue. The resulting grammar is the
issue. You could use prose to define XHTML -- if there are three
grammars there are three languages. If you use a flexible grammar
notation that allows the three grammars to be collapsed into one (such
as prose) then you have one language. But if we define HTML's grammar
*today* so that it automatically allows any extension we can think of in
the future:

<!ELEMENT p ANY>
<!ELEMENT body ANY>
<!ELEMENT h1 ANY>

Then we have issued an invitation for massive abuse by software vendors.

> If W3C says a namespace is a schema, they should withdraw the XML
> Namespaces
> Spec immediately. 

There is a world of difference between saying that a namespace *is a
schema* and saying that there are a set of W3C specifications (including
XHTML) that have namespaces that have a one to one correspondance with
schemas. It's like saying that "p" doesn't have to be defined in a DTD
(because not every XML document has DTDs) but the *HTML* "p" *is*
defined in a DTD (which has been the stance since HTML 2).

 Paul Prescod



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/ and on CD-ROM/ISBN 981-02-3594-1
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.