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

Re: NAMESPACES: expressing commonality or distinction

  • From: Ann Navarro <ann@w...>
  • To: "James Tauber" <jtauber@j...>, "XML-Dev Mailing list" <xml-dev@i...>
  • Date: Mon, 30 Aug 1999 10:11:54 -0400

commonality of last name
At 10:12 AM 8/30/99 +0800, James Tauber wrote:

>However, as David Megginson and Tim Bray have argued, capturing the
>commonality between, say, "p" in each DTD is not just valuable, but pretty
>much vital.

I think that the distinctions are just as vital, from the global
perspective, not just from an application developer perspective. 

>It seems to me that this is an argument to expand the role of namespaces (to
>express commonality, not just distinction) on grounds of practicality.
>
>I imagine that most people would agree that:
>
>1. There is a difference between strict:p and transitional:p
>2. The difference is small and most applications will not care about it
>3. Most applications *will* care about the commonality

If the qualifier were "many", rather than "most', I indeed agree (though
that's splitting hairs). 


>Here are a couple of possibilities:
>
>1. PREFIX MATCHING ON NAMESPACE URIs
>
>Use URIs to develop a hierarchy of namespaces and then allow
>underspecification for matching via prefixes.
>
>Use the Namespace URIs:
>
>http://www.w3.org/HTML/Strict/1.0
>http://www.w3.org/HTML/Transitional/1.0
>
>and allow applications to match
>
>http://www.w3.org/HTML


>PRO: uses existing namespace mechanism
>CON: would require modification to XPath, etc.

I like it -- XPath isn't completely done yet (though we are in last call,
so it is a bit late)


>2. A COMMON ATTRIBUTE THAT CAN BE MATCHED
>
>Have all elements in all three DTDs take a FIXED attribute. For example:
>
>    w3c:vocab="HTML" xmlns:w3c="http://www.w3.org/"

>PRO: doesn't require modification of XPath, etc.
>CON: invents new mechanism

I think it's realistic that we may indeed need a new mechanism. 

Either one seems a viable option to me. 

Ann


---

Author of Effective Web Design: Master the Essentials
Coming in September --- Mastering XML

Founder, WebGeek Communications            http://www.webgeek.com
Vice President-Finance, HTML Writers Guild http://www.hwg.org
Director, HWG Online Education             http://www.hwg.org/services/classes





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.