Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: namespace using conventions

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 5/6/2004 1:19:00 PM

Pavils Jurjans wrote:


> Is there some way how to define all the namespaces in the very beginning of
> the XML file, so that XML code is less messed up wil all those URNs?
> 
> Would this be the right way? ("template" tag is the document object tag)
> 
> 
> <my:template xmlns:my="http://www.domain.com/xml/ns/my">

If needed you could already declare the xhtml prefix here e.g.
   <my:template xmlns:my="http://www.domain.com/xml/ns/my"
                xmlns:xhtml="http://www.w3.org/1999/xhtml">

> Actually, what's the convention - what to put in the namespace URN? Would
> that be an existing web page? I've seen namespaces not refering to any http
> source at all.

That is possible as URLs are only used to have an internationally unique 
name, there is no requirement that that URL points to an actual resource 
on the web.
-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent