xsd - Why does the W3C XML Schema specification allow integers to have leading zeros? -



xsd - Why does the W3C XML Schema specification allow integers to have leading zeros? -

recently had illustration in xml message integer fields contained leading zeros. unfortunately these zeros had relevance. 1 argue why in schema definition integer chosen. not question. little surprised leading zeros allowed @ all. looked specs of course of study told me supertype decimal. expected specification don't tell why curtain choices made. question rationale allowing leading zeros @ all? mean numbers don't have leading zeros.

on side note guess way add together restriction on leading zeros pattern.

my recollection xml schema working grouping allowed leading zeroes in xsd decimals because allowed in normal decimal notation: 1, 01, 001, 0001, etc. denote same number in normal numerical notation. (but don't remember discussed @ length, perhaps reason believing right thing , other wg members had other reasons beingness satisfied it.)

you right suggest root of problem utilize of xsd:integer type notation using strings of digits in leading zeroes important (as illustration in u.s. zip codes); think may over-generous 1 argue decision. possible arguments 1 bring forwards in favor of such erroneous choice?

xsd integer w3c specifications

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -