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

Re: Namespaces !

  • From: James Clark <jjc@j...>
  • To: "XML Developers' List" <xml-dev@i...>
  • Date: Tue, 04 Aug 1998 16:41:50 +0700

xml reserved names
Patrice Bonhomme wrote:

>  1/ The example following this definition uses a NS declared after its use :
>         "<html:html xmlns:html='http://www.w3.org/TR/REC-html40'>"

This is allowed.  The spec should be clearer about this.

>     I am not sure that attribute-based is the best way for declaring NS. Why
> not have preserved the old specification for the declarations of XML
> Namespaces (using PI) ?

This has been discussed an exhaustive length in the WG.  If you are a
W3C member, you can go read the archives.  I don't think it is
profitable to rehash the discussion in this forum.

>     Create another reserved name (xmlns)

The XML Recommendation already reserves xmlns and indeed all names
beginning with "xml".

> weighs down the XML notation and
> opens the door to already encountered problems (remenber HTML!). Each one
> (Microsoft, Netscape, Sun, ...) will arrive with its own reserved name and one
> will fall down in the same problems as with HTML (<OBJECT> vs <EMBED> for
> example). 

Only names beginning with "xml" (any case) are reserved and they are
reserved for use only by future versions of XML.

> We should have only one reserved name : "xml" !!!
> 
>  2/ There is a redundancy of information.
> 
> A simple prefix is enough to specify the namespace used :
> 
>         <book xmlns='urn:loc.gov:books' xmlns:isbn='urn:ISBN:0-395-36341-6'>
>           <title>Cheaper by the Dozen</title>
>           <isbn:number>1568491379</isbn:number> ...
> 
> Should be :
> 
>         <book xml:ns="books"> <!-- the default NS is "books" -->
>           <title>Cheaper by the Dozen</title>
>           <!-- switch to "isbn" NS -->
>           <isbn:number>1568491379</isbn:number> ...
> 
>     This makes also XML document not easily readable.

Where is the "isbn:" prefix declared?  How would that allow global
attributes with different namespaces?

You are wasting your time suggesting alternative designs.  Read the
"Status of this document" section: "the Working Group intends to keep
the features [the draft] describes functionally unchanged unless
problems are discovered during early implementation work".

>  3/ Implementation.
> 
> If i understand the new WD, it's possible to have everywhere within the
> document (in each Element start tag) a Namespace declaration. Hum, i agree
> with James Clark that it is easy to implement but we have to provide for each
> Element object an 'xmlns' attribute and make inherited each one of its
> descendants.

You have to be able to find the inherited value of namespace declaring
attributes; this is no different from what you already have to do for
xml:lang and xml:space.

James



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...)


  • References:
    • Namespaces !
      • From: Patrice Bonhomme <Patrice.Bonhomme@l...>

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.