[
Lists Home |
Date Index |
Thread Index
]
Elliotte Rusty Harold wrote:
> 1. Before now, what was your understanding of this point?
That SAX would return the element type name in localName.
> When
> writing and teaching did you tell your students to rely on local
> names or qNames for non-namespace qualified elements?
local names
> What have you
> relied on in your code?
local names
> 2. If you've implemented a parser, what does your parser do?
Haven't implemented a parser
> 3. If you participated in the original specification of SAX2 back in
> 1999/2000 what were you thinking about this then?
Didn't participate.
NOTE:
I believe that the namespaces spec states that the local name is always
non-null. In particular, the definition of a QName has an optional
prefix:
QName ::= (Prefix ':')? LocalPart
and states that, "[Definition:] The LocalPart provides the local part of
the qualified name."
If there was no such thing as a local name when namespaces weren't used,
then it seems that the spec would not explicitly cover the case where no
prefix is used and there is no default namespace (see section 5.2). That
is, it would require either a prefix or a default namespace and it would
explicitly state that documents containing unprefixed names in the
absence of a default namespace would be considered non-conformant.
-- Ron
|