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

FW: reftype (IDREF constraints)

  • From: "Arnold, Curt" <Curt.Arnold@h...>
  • To: "'xml-dev@i...'" <xml-dev@i...>
  • Date: Tue, 27 Jul 1999 18:47:17 -0600

limitation of gis
Robin Cover wrote:
>> So: are any of the new specs addressing the
>> matter of constraints upon referenced elements?
>> In current syntax, this would amount to saying
>> that IDREF(s) in a given case could only be
>> pointers to specified (classes of) GIs, as
>> approximately in the HyTime 'reftype'.

The schema datatypes document mentioned that whether there should be
constraining facets on a uri was an issue.  It is not a big jump to go a
constraint on the schema to also allow constraints on the target.

>From the Working Draft, section 3.2.14
 Issue (uri-scheme-facet): should we have a facet to allow a limitation to a
specific scheme?  It might be useful to able to say that something was not
only a URI, but that it was a "mailto" and not a "http://...". 

>> Where would/should this concern for scope
>> (semantics) be addressed in the W3C drafts?
>> Are there any dramatic proposals in the works
>> for bedrock re-design, or improvement of the
>> ID - IDREF mechanism?

I'm thinking schema datatypes would be a good place for part of it, if it
should be done.  You could allow the definition of facet on a datatype
derived from uri or idref to constrain the possible targets and then use the
datatype on the linking attribute.

Something like:

<schema>
	<datatype name="uriToSomeElement">
		<basetype name="uri"/>
		<!-- some representation of a 
			constraining facet on the datatype, just making this
up  -->
		<constraint>
			<elementTypeRef name="SomeElement"/>
		</constraint>
	</datatype>

	<elementType name="SomeElement">
		<attrDecl name="id">
			<datatypeRef name="id"/>
		</attrDecl>
	</elementType>

	<elementType name="OtherElement">
		<attrDecl name="someElement">
			<datatypeRef name="uriToSomeElement"/>
		</attrDecl>
	</elementType>
</schema>

In the case of URIs, you could only express an intention as to what is on
the other side of the URI.  On an IDREF, the processor could determine if it
matched the facets.  The facets would have to allow a match to one or more
elementType's in the current schema or declared namespaces, one or more
elementTypes defined in a specific DTD or ad-hoc elements, mime types (if it
is a uri to a JPEG for instance), maybe others.  Again, I'm not sure it
should be done, but that is where I think it might fit best.

I'm really interested in seeing what the W3C Schema group has in store for
their next draft (as I'm sure most everybody on this list is.)

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



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.