W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2002

empty string acceptable or not?

From: Stanley Guan <stanley.guan@oracle.com>
Date: Fri, 23 Aug 2002 15:49:16 -0700
Message-ID: <045901c24af7$4fb8bdc0$c5b42382@us.oracle.com>
To: <xmlschema-dev@w3.org>, "Schema Interest Group" <w3c-xml-schema-ig@w3.org>
For built-in primitive and derived types, which types can
have empty string in their lexical space (i.e., or empty
string is a valid value).

Is my summary correct?  How can we tell which group
each data type belongs by reading the specification (e.g.,
finite-length sequence of ...)?

Thx,

-Stanley

empty string - a valid value
   string
   normalizedString
   token
   base64Binary
   hexBinary

empty string - an invalid value (unless nil flag is true)
   duration 
   dateTime
   time
   date
   gYearMonth
   gYear
  gMonthDay
  gDay
  gMonth
  boolean
  float
  double
  anyURI
  QName
  NOTATION
  language
  Name
  NCName
  ID
  IDREF
  IDREFS
  ENTITY
  ENTITIES
  NMTOKEN
  NMTOKENS
  decimal
  integer
  nonPositiveIntegere
  negativeInteger
  long
  int
  short
  byte
  nonNegativeInteger
  unsignedLong
  unsignedInt
  unsignedShort
  unsignedByte
  postiveInteger
  
Received on Friday, 23 August 2002 18:52:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:34 GMT