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

Re: patterns and restrictions

  • To: xml-dev@l...
  • Subject: Re: patterns and restrictions
  • From: David Tolpin <dvd@d...>
  • Date: Tue, 23 Dec 2003 20:24:46 +0400 (AMT)
  • In-reply-to: <OF607B91B0.B8C76843-ON85256E05.0056FE7E@l...>

serialize decimal
[ Charset ISO-8859-1 unsupported, converting... ]
> Your analysis is correct.  Pattern is indeed unusual in the manner you 
> describe.  It's inclusion was debated quite a bit during the design of XML 
> schema, because having constraints at two levels can complicate the use of 
> XML schema for certain purpose.  For example, it's straightforward to 
> validate a string using your "01" pattern for integer.  What's not so 
> straightforward is to serialize an "int" stored in your program into a 
> string that matches the pattern.  Few systems will (or should) even try, 
> except perhaps for the simplest patterns. 
> 

My feeling is that every facet is unusual. For example, is '0.0' a canonical
form for decimal zero? Decimal point is required according to the specification.

If the decimal point is required, how can 'integer' be derived from 'decimal'?

If the decimal point is not required, but the canonical form for '0.00' is '0.0',
what is the number of totalDigits? 

Is it the same as '0'

How many digits are in decimal '0'?

David Tolpin

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.