Re: [xml-dev] Looking for an example of a name colliision
by Chiusano Joseph other posts by this author
Jun 1 2003 2:37AM messages near this date
Re: [xml-dev] Looking for an example of a name colliision
|
Re: [xml-dev] Looking for an example of a name colliision
<Quote>
<author title="Contracts" title="Professor" title="13"> James
Vleek</author>
</Quote>
The "title" attribute above cannot be repeated.
Kind Regards,
Joe Chiusano
Booz | Allen | Hamilton
Bob Foster wrote:
>
> From: "Bill de hÓra" <bill@[...].net>
> > Does anyone have an example of a collision that can only be solved,
> > or even best be solved with XML Namespaces? A neccessary condition
> > is ideal, but examples where namespace represents an optimal design
> > decision will do. I'm asking for two reasons:
> >
> > - in my work with XML I've never run across a collision problem
> > that seemed to require namespaces. I wondering whether they're rare
> > or whether the markup I dela with is unusual.
> >
> > - I'm looking for markup that I can use for test cases and
> > thinking about the matter.
> >
> > I went looking in the Namepsaces spec and found this example and an
> > assertion:
> >
> > [[[
> > <section><title>Book-Signing Event</title>
> > <signing>
> > <author title="Mr" name="Vikram Seth" />
> > <book title="A Suitable Boy" price="$22.95" /></signing>
> > <signing>
> > <author title="Dr" name="Oliver Sacks" />
> > <book title="The Island of the Color-Blind" price="$12.95"
> > /></signing>
> > </section>
> >
> > In this example, there are three occurrences of the name title
> > within markup, and the name alone clearly provides insufficient
> > information to allow correct processing by a software module
> > ]]]
> >
> > It demonstrates no such thing to me. For example, here is the
> > sufficient information:
> >
> > /section/title
> > /section/signing/author@title
> > /section/signing/book@title
> >
> > I suspect this particular assertion about the insufficiency of
> > traditional namespaces in the spec is false. I believe for it to be
> > true, there would need to exist markup for which no keys could be
> > computed to dilineate one element or attribute from another.
>
> You surely don't mean that no homonyms can exist that cannot be resolved by
> XPath? E.g.,
>
> <author title="Contracts" title="Professor" title="13">James Vleek</author>
>
> where the first is the title of a paper, the second the title of the author
> and the third Title 13 of the US Code.
>
> Name collisions can easily arise in this way, where attributes are used as
> domain-specific annotations, like "foreign attributes" are used in XML
> Schema and RELAX NG. An annotator in one domain cannot reasonably be
> expected to avoid collisions with all other possible domains, even though
> they are all marking up the same elements.
>
> Bob
>
> When ideas fail, words come in very handy. | http://www.xmlbuddy.com
> - Goethe
>
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
Attachments:
Chiusano_Joseph.vcf
unknown2
Thread:
Arjun Ray
Rick Jelliffe
james anderson
james anderson
K. Ari Krupnikov
Bob Foster
Arjun Ray
Thomas B. Passin
Thomas B. Passin
Bob Foster
Arjun Ray
K. Ari Krupnikov
Arjun Ray
K. Ari Krupnikov
Thomas B. Passin
Simon St.Laurent
Jonathan Borden
Thomas B. Passin
K. Ari Krupnikov
Arjun Ray
Simon St.Laurent
Chiusano Joseph
Arjun Ray
Chiusano Joseph
Chiusano Joseph
Arjun Ray
Thomas B. Passin
K. Ari Krupnikov
Arjun Ray
John Cowan
Arjun Ray
Bob Foster
W. E. Perry
Arjun Ray
Chiusano Joseph
Chiusano Joseph
Chiusano Joseph
W. E. Perry
Chiusano Joseph
Thomas B. Passin
Arjun Ray
John Cowan
Arjun Ray
John Cowan
Arjun Ray
K. Ari Krupnikov
james anderson
Arjun Ray
james anderson
Arjun Ray
Rick Jelliffe
james anderson
Arjun Ray
Jonathan Borden
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Arjun Ray
W. E. Perry
Arjun Ray
Rick Jelliffe
james anderson
Arjun Ray
Rick Jelliffe
Arjun Ray
Rick Jelliffe
Arjun Ray
james anderson
Simon St.Laurent
james anderson
Rich Salz
Jaywanth
Seairth Jacobs
Joe Gregorio
Arjun Ray
Arjun Ray
John Cowan
Simon St.Laurent
Arjun Ray
Paul Prescod
Arjun Ray
Paul Prescod
Arjun Ray
Tim Bray
MURATA Makoto
Arjun Ray
J.Pietschmann
Arjun Ray
Jason Diamond
Tim Bray
Tim Bray
Simon St.Laurent
Joe Gregorio
Paul Prescod
W. E. Perry
james anderson
james anderson
james anderson
Jonathan Borden
Miles Sabin
Simon St.Laurent
Jonathan Borden
Simon St.Laurent
W. E. Perry
Jonathan Borden
Simon St.Laurent
Thomas B. Passin
Jonathan Borden
Miles Sabin
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
Jonathan Borden
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Jonathan Borden
Miles Sabin
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
james anderson
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Tim Bray
james anderson
John Cowan
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Arjun Ray
W. E. Perry
james anderson
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Joe Gregorio
Joe English
Paul Prescod
Joe English
Arjun Ray
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Simon St.Laurent
Arjun Ray
Joe English
Simon St.Laurent
Simon St.Laurent
Arjun Ray
|