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

Re: Irony heaped on irony

  • From: David Carlisle <davidc@n...>
  • To: timbl@w...
  • Date: Sat, 20 May 2000 23:36:39 +0100 (BST)

Re: Irony heaped on irony

   ...or presumably (4)  the schema document returned on a query of the
   namespace URI
    contains some information in xml-schema and some in rdf-schema.  (and some
   in XHTML for people?)

   Isn't this what multiple namespaces in a document can be used for?

   Tim

I don't understand the last comment, could you expand on it?

I can't see how you can use multiple namespaces in a document to return
different sorts of information about a given element.
Each element is only in one namespace.

It seems all your use cases involve locating a schema (of some sort)
at the namespace URI. This will of necessity be such a rare and marginal
case that it is a dangerous thing to use as a basis for changing the
namespace rec.

It only makes sense to use the namespace URI as the schemaLocation if
there is a direct 1-1 correspondence between the namespace and schema.

This will almost never be the case, Just consider the current W3C
namespaces as examples,

XHTML one namespace 5 schema (xhtml 1.0 strict, transitional, frameset,
xhtml basic, xhtml 1.1) and we're still in the first year.

MathML one namespace 2 schema (mathml 1 predated namespace rec but the
MathML namespace is dated 1998 and effectively added to MathML 1 once
announced, and the later MathML 2 drafts use the same namespace.

XSLT one namespace, currently just xslt 1.0, but xslt rec explicit how
versioning of future versions will go, and they will be in the same
namespace, but would of course require different schema.

For historical reasons most of the current schema are in dtd syntax,
but there is no reason to suppose things will be different once we
switch to xml schema syntax. There will usually be several schema
for any given namespace.

If in the early days of a schema for version 1.0 of a language you make
large scale use of the  shortcut of using the namespace URI to avoid
writing schemaLocation, you will just be storing up confusion for users
when version 2 inevitably comes out. You can't change the namespace but
you need to put the schema at a different URI, so in the end you have to
use schemaLocation anyway.

David



***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

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.