From: Ronald Bourret <rpbourret@rp...> - 2002-05-30 06:05:58
Elliotte Rusty Harold wrote:
> 1. Before now, what was your understanding of this point?
That SAX would return the element type name in localName.
> writing and teaching did you tell your students to rely on local
> names or qNames for non-namespace qualified elements?
> What have you
> relied on in your code?
> 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?
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
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.
Get latest updates about Open Source Projects, Conferences and News.