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

RE: draft-rsalz-qname-urn


openlink product manager virtuoso
It is not bad design at all.  Local elements were made for this scenario.

Ian Hunter
Senior Product Manager
XML Technologies
TIBCO Software Inc.


-----Original Message-----
From: Tom Bradford [mailto:tbradford@o...] 
Sent: Thursday, December 16, 2004 10:40 AM
To: Rich Salz
Cc: xml-dev@l...
Subject: Re:  draft-rsalz-qname-urn

I don't know if anyone has pointed this out yet, but this document 
doesn't take into account the nature of XML Schemas, and the potentially 
for the same name to exist more than once in a Schema with a different 
meaning depending on its context.  Granted, it's bad style to design a 
schema in such a way, but it definitely happens.

For example:
<MyInfo xmlns="http://blah.com">
    <name>Tom</name>
    <address>
       <address1>123 Main Street</address1>
       <city>Virginia Beach</city>
       <state>VA</state>
    </address>
    <host_info>
       <address>192.168.2.30</address>
    </host_info>
</MyInfo>

My point being that the element 'address' appears twice in this document 
under the same namespace, and with two contextually different meaning, 
which according to some schema may be perfectly legal.  How would I 
define a URN to explicitly talk about one or the other?

--
Tom Bradford - Virtuoso Technology Evangelist
OpenLink Software: http://www.openlinksw.com/
Personal Web Log:  http://www.tbradford.org/


Rich Salz wrote:
> Some folks here may be interested in the following Internet-Draft that
> Dave Orchard and I wrote.
>   http://www.ietf.org/internet-drafts/draft-rsalz-qname-urn-00.txt
> 
> Unlike most writing on URNs and URIs, this is very short. :)
> 
> 
>     This specification defines a Uniform Resource Name namespace for XML
> namespace-qualified names, QNames. As long as the URN is encoded in the
> same character set as the document containing the original QName, the
> Qname URN provides enough information to maintain the semantics, and
> optionally the exact syntax, of the original name.
> 

-----------------------------------------------------------------
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://www.oasis-open.org/mlmanage/index.php>


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.