Re: [xml-dev] attributes with same name and different prefix

From
Christopher R. Maden <>
To
Date
2002-04-27T21:40:22Z
ID
<>
Thread
Re: [xml-dev] attributes with same name and different prefix
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At 07:46 27/4/02, Jeff Greif wrote:
>Is this illegal (to have two attributes with same name and different 
>prefixes, one of them specifying a namespace prefix association):
>
><foo src="bar" xmlns:src="some-uri" />

This is perfectly legal, but note that what you have is an element with one 
attribute and one namespace declaration - *not* two attributes.

However, even this is legal:

<foo src="bar" my:src="baz" xmlns:my="some-uri"/>

~Chris
- -- 
Christopher R. Maden, Principal Consultant, crism consulting
DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training
<URL: http://crism.maden.org/consulting/ >
PGP Fingerprint: BBA6 4085 DED0 E176 D6D4  5DFC AC52 F825 AFEC 58DA
-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.8

iQA/AwUBPMsaxaxS+CWv7FjaEQL/XQCfW30Fy+8OwOB1OsM5WRdCNZy1HK8AoNfr
V0Q2jwQKbyro8Tzcl9mm0EpJ
=umPh
-----END PGP SIGNATURE-----