Subject: Re: [xsl] 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 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How do I determine that a, David Carlisle | Thread | Re: [xsl] How do I determine that a, Mukul Gandhi |
Re: [xsl] How do I determine that a, David Carlisle | Date | Re: [xsl] How do I determine that a, Mukul Gandhi |
Month |