Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


namespace using conventions

From: "Pavils Jurjans" <pavils@-------.----.-->
To: 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




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