Appendix 1: Valid Combinations of Restricting Facets and Base Datatypes

The following table describes the combinations of datatypes and restricting facets that are allowed in TSD.

Combinations of Datatypes and Restricting Facets in TSD
Simple datatype length minLength maxLength pattern enumeration whiteSpace minExclusive maxExclusive minInclusive maxInclusive totalDigits fractionDigits
anyURI x x x x x x            
base64Binary x x x x x x            
boolean       x   x            
byte       x x x x x x x x x
date       x x x x x x x    
dateTime       x x x x x x x    
decimal       x x x x x x x x x
double       x x x x x x x    
duration       x x x x x x x    
ENTITIES x x x   x x            
ENTITY x x x x x x            
float       x x x x x x x    
gDay       x x x x x x x    
gMonth       x x x x x x x    
gMonthDay       x x x x x x x    
gYear       x x x x x x x    
gYearMonth       x x x x x x x    
hexBinary x x x x x x            
ID x x x x x x            
IDREF x x x x x x            
IDREFS x x x   x x            
int       x x x x x x x x x
integer       x x x x x x x x x
language code (RFC 1766) x x x x x x            
long       x x x x x x x x x
Name x x x x x x            
NCName x x x x x x            
negativeInteger       x x x x x x x x x
NMTOKEN x x x x x x            
NMTOKENS x x x   x x            
nonNegativeInteger       x x x x x x x x x
nonPositiveInteger       x x x x x x x x x
normalizedString x x x x x x            
NOTATION x x x x x x            
positiveInteger       x x x x x x x x x
QName x x x x x x            
short       x x x x x x x x x
string x x x x x x            
time       x x x x x x x    
token x x x x x x            
unsignedByte       x x x x x x x x x
unsignedInt       x x x x x x x x x
unsignedLong       x x x x x x x x x
unsignedShort       x x x x x x x x x