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

  • To: "Jirka Kosek" <jirka@k...>
  • Subject: Re: Default namespace for attributes?
  • From: "Mukul Gandhi" <gandhi.mukul@g...>
  • Date: Sun, 16 Jul 2006 18:08:46 +0530
  • Cc: xml-dev@l...
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IC/xwLpCiV303KwctQSYpe9gvD3tbzOK/WO3WShvGaL7Ry9z3/vLtShB+h0693W6RLRHVVnac+sAMUtHxAeDMyMhZ8icuIU+Lb5Y+nGTjYivRBz2hBJ1l30xv1w1cy+hJ4jBFTqHvBsiMAWTq/cZvHIxKG4D7CNihEHtSz5Vfx8=
  • In-reply-to: <44BA0926.9070505@k...>
  • References: <7870f82e0607151005nd7094fboc43dd7ecdc9b360a@m...> <44BA0926.9070505@k...>

Replying to your previous response..

On 7/16/06, Jirka Kosek <jirka@k...> wrote:
> My own understanding is that attribute is always related to an element
> on which it appears. So you can know identity of unnamespaced attribute
> if you take current element into account, and you will save few bits of
> memory when parsing and processing XML.
>

I just checked "Namespaces in XML 1.1" Recommendation.

I think you are right in your understanding above (and this answers my
question also). The new namespaces spec (ver 1.1) makes this point
clear (http://www.w3.org/TR/xml-names11/#defaulting). Here the spec
clearly says .. "A default namespace declaration applies to all
unprefixed element names within its scope. Default namespace
declarations do not apply directly to attribute names; the
interpretation of unprefixed attributes is determined by the element
on which they appear. "

Regards,
Mukul

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