[Home] [By Thread] [By Date] [Recent Entries]

  • To: xerces-j-dev@x..., sax-devel@l..., xml-dev@l...
  • Subject: Re: [Sax-devel] Re: SAX survey: expected local name for non-namespace qualified elements
  • From: Robin Berjon <robin@k...>
  • Date: Mon, 3 Jun 2002 10:54:35 +0200
  • In-reply-to: <3CF7A148.1090903@p...>
  • Organization: Knowscape ://
  • References: <" <4.2.0.58.J.20020528113123.044b18f8"@localhost> <3CF559FB.9050008@u...> <3CF7A148.1090903@p...>
  • Reply-to: robin@k...

On Friday 31 May 2002 18:14, David Brownell wrote:
> > What is the localName in "foo:bar" and "foo:bar:foo" which are legal
> > element names in XML 1.0 and should therefore be passed through when
> > namespaces are off?
>
> I'd expect that localName would still be defined to be the syntactic
> "strip off the only prefix" transform of qName that it is in other
> cases ... so "foo:bar" would become "bar", and "foo:bar:foo" would
> be an error (normally reported as an empty localName).

I don't think that makes much sense... If namespaces are off, then there is 
no such thing as a prefix to be stripped off. And raising an error for the 
latter would be a strange decision knowing that it's a legal name when 
namespaces are off.

-- 
Robin Berjon <robin@k...> -- for hire: http://robin.berjon.com/
  Avoid clichés like the plague.


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member