Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: namespace using conventions namespace using conventionsTo: NULL Date: 5/1/2004 8:55:00 AM Hello,
I am developing my own template XML language. For it's special tags I am
going to use my own namespace, say, "my:". The XML code that is heavily
mixed with the template tags, is mostly XHTML. I have question regarding use
of attributes in the foreign tags:
For example, I have this markup:
<my:special value="ABC">
<div>Some HTML content here</div>
</my:special>
Here I have a tag from "my:" namespace, but within this tag I am using
"value" attribute from (default?) unnamed namespace. The question is, what
would be "more correct" way - using
<my:special value="ABC">....
or
<my:special my:value="ABC">
the "value" attribute in this particular case is consumed solely by
my:special tag, and not directly parsed into "value" attribute of some html
tag. The latter approac, using namespace def with attribute name, of course,
is more ugly, and likes me less than the first. However, I'd certainly like
to know the "philosofy" behind attribute namespaces within foreigh namespace
tags.
Thanks,
-- Pavils
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
