OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: maps

[ Lists Home | Date Index | Thread Index ]


> 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. 

Each datatype can define a set of "parameters." So a datatype can define
range facets by itself, then it can just reject anything that falls out
of that range. Everything is up to datatypes.


> For instance how would one specify what the semantics of maxInclusive,
> minExclusive, maxExclusive, minInclusive, etc should be? 

See attached zip file for an example. This "hex" datatype validates
hexadecimal digits, and it comes with the "max" and "min" facets which
allow you to restrict a range.


regards,
----------------------
Kohsuke Kawaguchi
E-Mail: kk@kohsuke.org

hex.zip





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS