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

XML Schema Datatype Questions

  • From: Daniel Potter <dpotter@m...>
  • To: xml-dev@i..., www-xml-schema-comments@w...
  • Date: Thu, 30 Dec 1999 11:12:39 -0500

xml schema datatype
I am currently developing a type checker designed to validate data in an
instance document corresponding to an XML schema.  I have a few
questions about the datatype spec I am hoping someone can answer.

First question, what is Not A Number in respect to the float/double
datatypes?  Or, rather, what is it in relationship to a min/max range? 
If I specify that mininclusive=0 and maxinclusive=INF, then is NAN in
that range?  What about mininclusive=-3 and maxexclusive=4?  Or does NAN
need to be specified in the enumeration?  (On that note, can the
enumeration facet be used to allow values outside the range specified by
min/max to be included?  Or do enumeration values need to fall within
the range?  There is no constraint saying that enumeration and min/max
values cannot be set together, which leads me to believe that they are
combined to describe legal values.)

In other words, if I specify a range of values, does NAN ever fall in
that range?  Or does it need to be specified as a legal value through
the enumeration facet?

Also relating to float, are the characters case sensitive?  Can I use
"inf" as a value or does it need to be "INF"?  Is "6.22e22" legal?  Or
does it need to be "6.22E22"?

One last question:  For the binary datatype, what is the default
encoding?  According to the encoding facet, it must be either hex or
base64, but what happens if the user doesn't specify?  If I specify that
an element is of type binary, but leave out the encoding facet, what
encoding is then used?  As far as I can tell, there is no default value
for encoding.  I would assume hex is default because it is listed first,
but it would be nice to know for certain which encoding is truely
intended as default.

Thanks for any help.


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 unsubscribe, mailto:majordomo@i... the following message;
unsubscribe 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.