[XML-DEV Mailing List Archive Home]
[Reply To This Message]
RE: namespaces support decision table
- From: "Shlomo Yona" <S.Yona@F...>
- To: "Michael Kay" <mike@s...>,<xml-dev@l...>
- Date: Wed, 30 May 2007 03:58:18 -0700
I dont think you understood my
question(s) but thanks anyway.
From: Michael Kay
Sent: ã 30 îàé 2007 12:59
To: Shlomo Yona;
Subject: RE: namespaces
support decision table
Your questions seem to suggest a lot of
confusion, and I don't think that can be solved by answering them directly.
An element (instance) has a name (the
"expanded name") that's in two parts: namesapce URI and local name.
The local name is as written in the source, the namespace URI is obtained by
looking for the namespace binding of its prefix and/or the default namespace.
A schema defines rules for elements in
terms of their expanded name. When you use an element name in
name="x" its local name is x and it's namespace URI is either null or
the target namespace depending on the values of elementForm and
elementFormDefault. If you use an element name in ref="[p:]x" then
its local name is x and its namespace URI is obtained by looking for the namespace
binding of p or the default namespace.
If the expanded name in the schema is
different from the expanded name in the instance (whether it's the local names
that differ or the URIs) then they're simply talking about different elements.
Sent: 30 May 2007 06:33
support decision table
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
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==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?
| [Thread Prev]
| [Thread Next]
| [Date Next]
| [Thread Index]
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
Stylus Studio has published XML-DEV in RSS and ATOM formats,
enabling users to easily subcribe to the list from their preferred news reader application.
Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website.
they were not included by the author in the initial post. To view the content without the Sponsor Links please