Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Namespace URLs

 
Jeff X Williams
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand what a namespace URL is supposed to point to. Is the namespace URL supposed to contain some kind of list of valid elements, data types, etc? I visited the XML Schema namespace URL (www.w3.org/2001/XMLSchema")and didn't see anything like that.
I have read the chapter in Professional XML that talks about namespaces, but found it to be very poorly done and only gave me more confusion.
I guess what I don't understand is when an XML parser sees a namespace declaration, does it actually go to that URL? If so, what does it do there, and what if that URL is offline?
Thanks.
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeff,
‘XML in a nutshell’ (page 64) says –
“Namespace URIs do not necessarily point to an actual document or page. In fact, they don’t have to use the http scheme. They might even use another protocol, such as mailto, in which URIs don’t even point to documents. ... The W3C got tired of receiving broken link reports for the namespace URIs in their specifications, so they added simple pages at their namespace URIs."
Cheers,
Dan
 
Jeff X Williams
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If a namespace is nothing more than a unique prefix, why do they generally include http://
Why not just www.something.com/namespace?
Are there cases when there is something actually located at the namespace URL? If so, what?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic