Table of contentsAppendices |
6.3 Uniqueness of AttributesUniqueness of AttributesIn XML documents conforming to this specification, no tag may contain two attributes which:
add This constraint is equivalent to requiring that no element have two attributes with the same [expanded name] . For example, each of the <!-- http://www.w3.org is bound to n1 and n2 --> <x xmlns:n1="http://www.w3.org" xmlns:n2="http://www.w3.org" > <bad a="1" a="2" /> <bad n1:a="1" n2:a="2" /> </x> However, each of the following is legal, the second because the default namespace does not apply to attribute names: <!-- http://www.w3.org is bound to n1 and is the default --> <x xmlns:n1="http://www.w3.org" xmlns="http://www.w3.org" > <good a="1" b="2" /> <good a="1" n1:a="2" /> </x> |