[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Looking for an example of a name colliision


Re:  Looking for an example of a name colliision
From: "Bill de hÓra" <bill@d...>
> 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



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.