Hello,
One addition to this: if I have no XML
Schema does this mean that the ``a column is meaningless?
For example
If I have no schema, is the following OK,
with regards to namespaces, or not?
<a>
<b/>
<b xmlns=foo/>
</a>
<a> and the first <b> are not
qualified, and the second <b> is qualified.
Does this make sense? I mean, if theres
no schema, does it means that every name is unqualified unless it is qualified
explicitly qualified? (this sorts of sounds like a tautology
)
Shlomo.
From: Shlomo Yona
[mailto:S.Yona@f...]
Sent: ã 30 îàé 2007 08:33
To: xml-dev@l...
Subject: namespaces
support decision table
Hello,
I am trying to understand the impact of schema hints and
evidence from XML documents on the proper handling of namespaces. Here is what
I came up with
a. Name is qualified in XML Schema: yes/no
b. Name is prefixed in XML document: yes/no (default
namespace is also considered as a prefix, the empty string prefix, for this
discussions sake)
c. Prefix for name is defined in XML document: yes/no
There are 8 possibilities for the above criterions.
An error should be issued (not necessarily same error in all
cases) in all cases except for the following three:
a==b==c==0
a==1 b==0 c==1
a==1 b==1 c==1
My question is, are these indeed all possibilities? Are
there other factors that need to be considered? Is my understanding correct?
Thanks.
Shlomo.