[Home] [By Thread] [By Date] [Recent Entries]
Mukul Gandhi wrote:
> The XML Namespaces Recommendation says that the default namespace
> applies only to elements, and not to attribues
> (http://www.w3.org/TR/REC-xml-names/#defaulting).
>
> i.e. an unprefixed attribute name will always be in the null namespace.
>
> I am curious to know why this is so?
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.
--
------------------------------------------------------------------
Jirka Kosek e-mail: jirka@k... http://www.kosek.cz
------------------------------------------------------------------
Profesionální školení a poradenství v oblasti technologií XML.
Podívejte se na náš nově spuštěný web http://DocBook.cz
Podrobný přehled školení http://xmlguru.cz/skoleni/
------------------------------------------------------------------
Nejbližší termíny školení:
** XSLT 23.-26.10.2006 ** XML schémata 13.-15.11.2006 **
** DocBook 11.-13.12.2006 ** XSL-FO 11.-12.12.2006 **
------------------------------------------------------------------
http://xmlguru.cz Blog mostly about XML for English readers
------------------------------------------------------------------
S/MIME Cryptographic Signature
|

Cart



