You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Jeff Greif <jg...@alumni.princeton.edu> on 2002/04/27 22:55:09 UTC
Fw: [xml-dev] attributes with same name and different prefix
Dawid Weiss reported a version of this bug involving Xindice earlier today.
Jeff
----- Original Message -----
From: "Ronald Bourret" <rp...@rpbourret.com>
To: "Jeff Greif" <jg...@alumni.princeton.edu>
Cc: <xm...@lists.xml.org>
Sent: Saturday, April 27, 2002 12:27 PM
Subject: Re: [xml-dev] attributes with same name and different prefix
> This is legal. If Xerces complains, it's a bug.
>
> Note that "src", when used as an attribute name (src="bar") is not a
> namespace prefix. In order to be a namespace prefix, it would have to be
> followed by a colon and a local name -- for example, src:attrname or
> even src:src.
>
> -- Ron
>
> > 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" />
> >
> > MSXML accepts it without problem, but I've been told that several
> > versions of Xerces complains.
>
>
Re: Fw: [xml-dev] attributes with same name and different prefix
Posted by Jeff Greif <jg...@alumni.princeton.edu>.
I just reported it on Apache bugzilla.
Jeff
----- Original Message -----
From: "Kimbro Staken" <ks...@xmldatabases.org>
To: <xi...@xml.apache.org>
Sent: Monday, April 29, 2002 3:46 AM
Subject: Re: Fw: [xml-dev] attributes with same name and different prefix
> Was this reported to the Xerces team?
>
> On Saturday, April 27, 2002, at 01:55 PM, Jeff Greif wrote:
>
> > Dawid Weiss reported a version of this bug involving Xindice earlier
> > today.
> > Jeff
> > ----- Original Message -----
> > From: "Ronald Bourret" <rp...@rpbourret.com>
> > To: "Jeff Greif" <jg...@alumni.princeton.edu>
> > Cc: <xm...@lists.xml.org>
> > Sent: Saturday, April 27, 2002 12:27 PM
> > Subject: Re: [xml-dev] attributes with same name and different prefix
> >
> >
> >> This is legal. If Xerces complains, it's a bug.
> >>
> >> Note that "src", when used as an attribute name (src="bar") is not a
> >> namespace prefix. In order to be a namespace prefix, it would have to
be
> >> followed by a colon and a local name -- for example, src:attrname or
> >> even src:src.
> >>
> >> -- Ron
> >>
> >>> 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" />
> >>>
> >>> MSXML accepts it without problem, but I've been told that several
> >>> versions of Xerces complains.
Re[2]: Fw: [xml-dev] attributes with same name and different prefix
Posted by Dawid Weiss <da...@go2.pl>.
KS> Was this reported to the Xerces team?
Nope, I didn't post it to Xindice because I wasn't sure if it was a bug or
not (never really wanted to passionately indulge with the
xml:namespaces spec...)
I think your authority is much grater than mine, Kimbro, repost it
please if you're positive it's a bug in Xerces.
Dawid
Re: Fw: [xml-dev] attributes with same name and different prefix
Posted by Kimbro Staken <ks...@xmldatabases.org>.
Was this reported to the Xerces team?
On Saturday, April 27, 2002, at 01:55 PM, Jeff Greif wrote:
> Dawid Weiss reported a version of this bug involving Xindice earlier
> today.
> Jeff
> ----- Original Message -----
> From: "Ronald Bourret" <rp...@rpbourret.com>
> To: "Jeff Greif" <jg...@alumni.princeton.edu>
> Cc: <xm...@lists.xml.org>
> Sent: Saturday, April 27, 2002 12:27 PM
> Subject: Re: [xml-dev] attributes with same name and different prefix
>
>
>> This is legal. If Xerces complains, it's a bug.
>>
>> Note that "src", when used as an attribute name (src="bar") is not a
>> namespace prefix. In order to be a namespace prefix, it would have to be
>> followed by a colon and a local name -- for example, src:attrname or
>> even src:src.
>>
>> -- Ron
>>
>>> 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" />
>>>
>>> MSXML accepts it without problem, but I've been told that several
>>> versions of Xerces complains.
>>
>>
>
>
Kimbro Staken
Java and XML Software, Consulting and Writing http://www.xmldatabases.org/
Apache Xindice native XML database http://xml.apache.org/xindice
XML:DB Initiative http://www.xmldb.org