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

Re: RDDL for names (was Re: XML Schema built-in data type namespaceURI.)

  • From: Eric van der Vlist <vdv@d...>
  • To: "Henry S. Thompson" <ht@c...>
  • Date: Fri, 09 Mar 2001 15:10:32 +0100

Re: RDDL for names (was Re: XML Schema built-in data type namespaceURI.)
"Henry S. Thompson" wrote:
> 
> To try to bring your and Simon's threads together, I think what we're
> struggling with is the difference between the concept "unsignedInt" as
> defined by the W3C XML Schema spec. and various representations and/or
> manifestations of it, and then trying to generalise from this
> particular case to the general case of elements and attributes and
> types in any namespace.

I think that we should not restrict this debate to buit-in datatypes: we
also need to identify the users datatypes though URIs and have the same
kind of issue.

I can define a datatype through:

<xsd:simpleType name="myUnsignedInt" id="myUnsignedInt" ...

However, XPointer applies here since a schema is a XML document and the
URI associated with the simpleType element will be {current schema
location}#myUnsignedInt where {current schema location} may or may not
be equal to the target namespace (assuming there is one) and is not
fixed (what if I copy this schema on my local file system).

Furthermore, as you have highlighted it, duplicating names into ids
would violate the principle of different "namespaces" for types,
elements, attributes, ...

I wonder if a simple solution|workaround wouldn't be to add (or replace
the id) with an attribute which would define the full URI of the type:

<xsd:simpleType name="myUnsignedInt"
uri="http://dyomedea.com/ns/types/myUnsignedInt" ...

The designer of the schema would then have the responsibility, when he
needs it, to define a URI using a scheme that he would fully control.

Eric

Subsidiary question: could a rdf attribute be used for this purpose ?

-- 
Rendez-vous à Paris pour net2001.               http://www.mynet2001.net
------------------------------------------------------------------------
Eric van der Vlist       Dyomedea                    http://dyomedea.com
http://xmlfr.org         http://4xt.org              http://ducotede.com
------------------------------------------------------------------------

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.