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

Re: Namespace question

  • From: Norman Gray <norman@a...>
  • To: Linda Grimaldi <grimlinda@e...>
  • Date: Fri, 7 Apr 2000 13:19:09 +0100 (BST)

Re: Namespace question

Greetings,

On Thu, 6 Apr 2000, Linda Grimaldi wrote:

> Am fairly new to this mailing list, and I must admit, the sheer volume and 
> intensity of the messages is very impressive.  I'm looking forward to 
> participating more actively.  But, for the moment, I hope you have patience 
> for a relatively newbie question, to wit;   How would I go about 
> registering an XML namespace designation?  Is it an IANA thing?

Because it's based on a URL prefix, you don't have to register anything.

You simply pick a URL (well, actually a URI, but the difference perhaps
doesn't amount to much in this context) which refers to a resource
you have control over.  That's the namespace name.  You might pick
`http://www.earthlink.net/my/path/to/DTD' for example.

Anyone who wants to refer to elements in that namespace can do so with
a declaration like

   <x xmlns:blurble='http://www.earthlink.net/my/path/to/DTD'>
   ...
   </x>

so that `blurble:' is now the namespace prefix they'll use in their
document.

The crucial points are:

  - The URL doesn't have to point to anything, it's simply a means of
    generating a unique string.  However, it's obviously sensible if
    it points to a DTD or something.
  - You don't choose the namespace prefix -- that's up to the person
    who's writing the document.

All the best,

Norman

-- 
---------------------------------------------------------------------------
Norman Gray                        http://www.astro.gla.ac.uk/users/norman/
Physics and Astronomy, University of Glasgow, UK     norman@a...


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