• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NameSpace URI?

 
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What does the NameSpace URI represent? Some set of documents/xsd's?
When I look at this URI http://www.w3.org/1999/XSL/Transform- I just see the html msg: This is the XSLT namespace.
TIA
Sanjay
 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello ,
NameSpaces are used in scheemas for document validation .
These are also used to make xml more readable and clear .
you can check further http://www.w3.org/TR/WD-xml-names.
Bajwa
 
Tiger Scott
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Thanks.
I am familiar with the NameSpace usage and benefits but not some of the details thereof.
My question is (to rephrase)- how do I create a nameSpace- What set of document(s) I need to be able to create a nameSpace. Some refrences I read indicate the URI can have a set of documents or none. I do not know the documents or the structure thereof.
I am familiar with the specs but the specs do not clarify this aspect.
The latest spec document is at http://www.w3.org/TR/REC-xml-names/
Thanks
Sanjay
 
author
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The URI you specify for a namespace is not intended as a link; it is simply a way of uniquely identifying the namespace.
Often you find that if you do follow the URI as a link, it points to some documentation about the namespace, but this is entirely optional.
David
 
Tiger Scott
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
David,
Thanks.
That is what is my question- the URI points to what- what will the parser/validator do with the URI. Suppose I want to create a nameSpace what should I do? I would think there is some xsd out there in some format?
TIA
Sanjay
 
David Peterson
author
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The URI points to whatever you like. It doesn't have to point to anything. The parser does nothing with the URI. It's just a label. If you like it can point to some documentation, but it doesn't have to point to anything at all.
If you want to create a namespace, use something that is unique to you (e.g. "http://mydomainname.com/mynamespace"). If you don't have your own domain name, use something like your e-mail address (e.g. "mailto:myusername@hotmail.com?mynamespace")
David
 
yeah, but ... what would PIE do? Especially concerning this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic