|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: RE: Schema vs Schema-free (was: RE: XML Binary C
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@n...> To: "'Ed Day'" <eday@o...>; "'xml-dev'" <xml-dev@l...> Sent: Wednesday, April 14, 2004 2:21 PM Subject: RE: RE: Schema vs Schema-free (was: RE: 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> >
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








