Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Name Spaces

Status
Not open for further replies.

Skittle

ISP
Sep 10, 2002
1,528
US
I the books I am using to learn about XML, there is often a name space reference to a web address. What is the function of the namespace line? In particular, why does it have a web address assigned to it? Is it purely for information purposes or can the XML go to the web site and ue the names space definition somehow?

Example:-

<article xmlns:" type ="sales" id="A123">
...
...
... XML Meta Tags And Data
...
...
</article>

Dazed and confused
 
If two companies need to exchange order information, it's very likely that both of them will have an element named "Order".

By putting a namespace (like a company abbreviation or something) in front of the element, you're able to distinguish between the two.

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Is this true for XML/XSLT combination?

That is my XML refer to XSL file as below:

<?xml:stylesheet type="text/xsl" href="testme1.xsl"?>

and my XSLT file declaration goes as below:
<xsl:stylesheet version="1.0" xmlns:xsl="
where testme is a virtual directory exist on the IIS Server. If I type the above URl on my browser I can see the home page.

My experience is the XML file does not shows up any thing if supplied the above URL on the namespace, but if I provide xmlns:xsl=" the page is shown as desired.

Please explain.
Thanks
Pranab
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top