Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: namespace using conventions [Thread Next] Re: namespace using conventionsTo: 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/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
