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

Re: How do I determine that an item is a numeric atomi

Subject: Re: How do I determine that an item is a numeric atomic value?
From: Mukul Gandhi <gandhi.mukul@xxxxxxxxx>
Date: Sun, 3 Oct 2010 06:32:43 +0530
Re:  How do I determine that an item is a numeric atomi
On Sun, Oct 3, 2010 at 3:40 AM, David Carlisle <davidc@xxxxxxxxx> wrote:
> bah humbug, couldn't schema 1.x have added a numeric type sitting above all
> those in the hierarchy:-)

looks a good idea :) Here are few questions and concerns:

1. XML Schema 1.0 also had same relationship between xs:double and
xs:float (but both were subtypes of xs:anySimpleType, and xs:float was
not child of xs:double -- which I think you are suggesting, in Schema
1.0). In XML Schema 1.1, xs:double and xs:float are subtypes of
xs:anyAtomicType (this is something new in Schema 1.1) whose parent
type is xs:anySimpleType. But xs:anyAtomicType is too wide a type and
includes types like xs:date and so on.

2. Can xs:float really be designed a subtype of xs:double. I think
this can't be true (?) in XML Schema language, since value space (as
defined in XML schema language) of xs:float is not really a true
subset of xs:double (but I think in java float is considered a base
type of double, which I don't really mind :)

Btw we do can I think, design an XML Schema user-defined xs:simpleType
inheriting from (and constraining it with Schema facets) combinations
of xs:double, xs:float, xs:decimal etc, and this should be usable with
a XSLT 2.x/3.0 type system.



-- 
Regards,
Mukul Gandhi

Current Thread

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