ISSUE-8
Using patterns to constrain numerical types
- State:
- CLOSED
- Product:
- Basic
- Raised by:
- Paul V. Biron
- Opened on:
- 2006-01-12
- Description:
""" 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
- Related emails:
- ISSUE-8: Using patterns to constrain numerical types (from dean+cgi@w3.org on 2006-01-12)
- Agenda: XML Schema Patterns for Databinding Telcon 17 January 2006 (from paul.downey@bt.com on 2006-01-16)
- Minutes from XML Schema Patterns for Databinding call 17 January 2006 (from paul.downey@bt.com on 2006-01-18)
- Agenda: XML Schema Patterns for Databinding Telcon 24 January 2006 (from paul.downey@bt.com on 2006-01-23)
- Agenda: XML Schema Patterns for Databinding Telcon 7 February 2006 (from paul.downey@bt.com on 2006-02-06)
- Minutes from XML Schema Patterns for Databinding call 7 February 2006 (from paul.downey@bt.com on 2006-02-08)
- ISSUE-8: MUST allow pattern on all types (from Paul.V.Biron@kp.org on 2006-02-21)
- Re: ISSUE-8: MUST allow pattern on all types (from petexmldev@tech-know-ware.com on 2006-02-21)
- Re: ISSUE-8: MUST allow pattern on all types (from Paul.V.Biron@kp.org on 2006-02-22)
- Agenda: XML Schema Patterns for Databinding F2F 27-28 February 2006 (from paul.downey@bt.com on 2006-02-22)
- Revised Agenda: XML Schema Patterns for Databinding F2F 27-28 February 2006 (from paul.downey@bt.com on 2006-02-27)
- Re: ISSUE-8: MUST allow pattern on all types (from petexmldev@tech-know-ware.com on 2006-02-28)
- Minutes from XML Schema Patterns for Databinding F2F 27-28 Feb 2006 (from paul.downey@bt.com on 2006-03-12)
- Minutes from XML Schema Patterns for Databinding F2F 22-23 May 2006 (from paul.downey@bt.com on 2006-06-02)
- Minutes: XML Schema Patterns for Databinding F2F 31st July - 1st August 2006 (from paul.downey@bt.com on 2006-08-01)
- Minutes: XML Schema Patterns for Databinding Telcon 5 September 2006 (from paul.downey@bt.com on 2006-09-05)
Related notes:
2006-01-17: Owned by PaulB
2006-08-01: Closed after discussion at Apsley F2F. We do not expect tools to generate numbers that conform to these patterns or validate instance docs with items in there.This will remain as basic pattern subject to finding tools that actually bail out and reject the schema/do not generate code. Design consideration will be added to highlight tools will not be expected to validate against the pattern.