Re: [xml-dev] RE: Schema vs Schema-free (was: RE: [xml-dev] XML Binary Characterization WG public list availabl)

From
Ed Day <>
To
Michael Kay <>, 'xml-dev' <>
Date
2004-04-14T18:57:17Z
ID
<066601c42252$4e810f00$4800000a@objsys1>
Thread
Re: [xml-dev] RE: Schema vs Schema-free (was: RE: [xml-dev] XML Binary Characterization WG public list availabl)
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" <>
To: "'Ed Day'" <>; "'xml-dev'" <>
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>
>