Re: Attributes and Default Namespaces

Mukul Gandhi <[email protected]>
Newsgroups gmane.text.xml.schema.devel
Message-ID <[email protected]>
On Fri, Nov 12, 2010 at 3:01 PM, Neil Beddoe <[email protected]> wrote:
> I've also discovered from this article http://msdn.microsoft.com/en-us/magazine/cc302166.aspx  that attributes must be fully qualified and aren't mapped by an xmlns="... declaration like elements are.

I don't think it's *absolutely necessary* for attributes to be
namespace qualified (i.e they can validly be in null namespace), when
participating in XML schema validation. They follow same rules as XML
elements for namespace qualification, and it's controlled by
instruction attributeFormDefault (which has a default value of
"unqualified") in a schema document.

But to have XML attributes in non null namespace, I think their schema
definitions must be imported (in 1.0 mode) from another schema (via
xs:import).



-- 
Regards,
Mukul Gandhi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.