[
Lists Home |
Date Index |
Thread Index
]
I don't know if "can't expect" is the right term here as opposed to "hasn't
been done yet" (or has been done very little). I would expect a good data
binding package to have the ability to format numbers as specified in the
schema when serializing a Java object or C structure to XML.
Regards,
Ed Day
Objective Systems, Inc.
----- Original Message -----
From: "Michael Kay" <michael.h.kay@ntlworld.com>
To: "'Ed Day'" <eday@obj-sys.com>; "'xml-dev'" <xml-dev@lists.xml.org>
Sent: Wednesday, April 14, 2004 2:21 PM
Subject: RE: [xml-dev] RE: Schema vs Schema-free (was: RE: [xml-dev] XML
Binary Characterization WG public list availabl)
> >
> > You can use a pattern facet on a float, double, or decimal in
> > the same way
> > you do on a string to enforce this sort of constraint.
> >
>
> But it's a really bad idea to do so, because you can't expect software
(such
> as an XSLT processor) that's creating an instance document to read the
> pattern and work out how to generate a number that matches it.
>
> Michael Kay
>
>
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://www.oasis-open.org/mlmanage/index.php>
>
|