This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes xml namespace Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "xml namespace" Watch "xml namespace" New topic
Author

xml namespace

nirjari patel
Ranch Hand

Joined: Apr 23, 2009
Posts: 239
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">


This is the second line of the xsl styleshhet I am creating. Now, do I need to install this namespace document on my server in order to use it ?
If yes, from where can I download or install it ?
If no, then how will the server understand what a particular tag means ?
If I am using few tags which arer in different namespaces, do I need to al of them on server in order to use the tage specified in them ?

thanks
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

There's no such thing as a "namespace document". A namespace URI is simply a string of characters. Typically it appears to be a link to a web page but it isn't one. It's just a string of characters. XML parsers won't treat it as a link.

You're asking how the server will recognize what an element in that namespace means? Well, it won't. But if -- in the example you posted -- you have an XSLT transformer process that document, it's designed to know what elements in that namespace mean. Other software won't be designed to know that and hence won't be able to understand them.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: xml namespace
 
Similar Threads
how to pick the node/attribute for a particular namespace
Creating Namespace XML document
Exporting EJB to another workspace in VAJ
opensso and tomcat
WS 5 mapping applications