ISSUE-8: Using patterns to constrain numerical types

ISSUE-8: Using patterns to constrain numerical types

http://www.w3.org/2005/06/tracker/databinding/issues/8

Raised by: Paul Downey
On product: Basic

"""
Description: Occasionally people define schema that use patterns to 
constrain the format of numerical types.  For example, specifying a pattern 
of /\d{3}/ so that integers are of the form 000, 001, 002 etc.  Or 
specifying a pattern of /\d+(\.\d+)?e-?\d+/ to ensure that a float number 
has the exponent.  It is generally difficult for binding tools to generate 
numbers that conform to arbitrary patterns such as these, even though it is 
valid XSD.

Proposal:  Recommend against this practice!  Use only the min/max/digits 
facets to constrain numerical types.

[snip]
Pete Cordell
Tech-Know-Ware Ltd
"""

http://lists.w3.org/Archives/Public/public-xsd-databinding/2006Jan/0014.html

Received on Thursday, 12 January 2006 09:33:30 UTC