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

Re: maps


map datatype c
Dare Obasanjo scripsit:

> How does RELAX NG provide a mechanism for specifying operations on
> these datatypes? It would be easy enough to specify the lexical form
> of longitudes and latitudes then place them in a publically accessible
> XSD file but it would be useless since there would be no language for
> specifying value space relationships in the schema.

I think there is a misunderstanding here.

RNG schemas do not have a mechanism for defining datatypes, but rather
for using them.  To define a datatype, you must write code in a conventional
programming language that allows three questions to be answered:

1) Is string X in the lexical space of datatype Y?

2) Are strings X1 and X2 lexical representations of the same value of
   datatype Y?

3) Does datatype Y have the identity semantics of ID, IDREF, IDREFS,
   or none of the above?


By "datatype" here I mean "datatype with whatever constraining facets
the schema author specifies, out of the set allowed by the datatype
library author".  RNG datatypes may permit arbitrary facets, including
or excluding those known to XSD.

> From what I've seen RELAX NG supports datatype libraries and parameters
> to these data types but this seems to imply that each RELAX NG validator
> needs to know how to deal with type libraries so it isn't simply a case
> of writing a schema but instead actually altering the code for a RELAX
> NG validator for it to support a datatype library.

Jing and MSV, and probably any other validator written in Java, accept
datatype libraries that conform to the interfaces in the org.relaxng.datatype
package.  It would be straightforward to write a datatype library
for cartographic locations in Java.  There are analogous facilities for
Tenuto, the C# RELAX NG validator, and for COM-based validators (I don't
know if RELAXNGVB supports this or not).

> So interoperability
> goes to hell unless one can convince every RELAX NG validator to support
> your homegrown datatypes.

Interoperability of schemas that use datatype libraries depends on de
facto rather than de jure considerations, it's true (except for the
trivial built-in library that supports "string" and "token").

-- 
John Cowan                                   jcowan@r...
        "You need a change: try Canada"  "You need a change: try China"
                --fortune cookies opened by a couple that I know

  • References:
    • RE: maps
      • From: "Dare Obasanjo" <dareo@m...>

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.