OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: [xml-dev] a namespace definitions related question(s)

Thanks for the detailed answer.

If my XML processor is not only parsing but also validating and namespace aware, it seems natural to expect it to allow/tolerate examples such as the one I gave.

What I'm asking is, is there a downside to "semantically" matching start/end tags by using namespace information?

Another questions is: what happens with attributes:

	<foo:bar xmlns:foo="foobar" foo:a="b" a="c"/>

Is there a "collision" between foo:a and a?


-----Original Message-----
From: Pete Cordell [mailto:petexmldev@tech-know-ware.com] 
Sent: ג 20 פברואר 2007 12:11
To: Shlomo Yona
Cc: xml-dev@lists.xml.org
Subject: Re: [xml-dev] a namespace definitions related question(s)

Original Message From: "Shlomo Yona" <S.Yona@F5.com>

> In the XML instance that I posted:
> * is the document well formed?

No - because in your example the end tag name does not match the start tag 
name.  I think in one of the earlier XML versions it says that the end tag 
name must 'echo' the start tag name which I think is clearer in what the 
intent it.

> Should XML processors be XML-Namespace aware?

They needn't be, but it's good if they are.

> Say I have a schema, is the well-formedness dependent upon the schema??

No - well formedness is purley an XML issue about whether start tags are 
matched by end tags, attributes have the right quotation marks and so on.

A schema will help determine whether a particular (well-formed) XML instance 
is 'valid' against that schema.

> What I'm asking is whether or not an XML parser should be namespace
> aware, and whether or not its capabilities should depend (and how) on a
> schema.

It is possible to define XML schemas that specify XML documents that don't 
use namespaces.  In that case the XML processor needn't be namespace aware. 
Although it's unlikely that you'll find a schema aware validating XML 
processor that is not namespace aware.


Pete Cordell
Tech-Know-Ware Ltd
for XML to C++ data binding visit
(or http://www.xml2cpp.com)

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS