Chapter 3 Building XML Models


Restriction property sheet Detail tab

Facets are the constraints on the set of values of a simple type. The Details tab lists the facets associated with the restriction:

Icon Facet

Length - Exact number of characters or list items allowed. It must be equal to or greater than zero

Minimum length - Minimum number of characters or list items allowed. It must be equal to or greater than zero

Maximum length - Maximum number of characters or list items allowed. It must be equal to or greater than zero

Minimum exclusive - Lower bound for numeric values. All values are greater than this value

Maximum exclusive - Upper bound for numeric values. All values are lower than this value

Minimum inclusive - Minimum value allowed for data type

Maximum inclusive - Maximum value allowed for data type

Total digits - Exact number of decimal digits allowed. It must be greater than zero

Fraction digits - Maximum number of decimal digits in the fractional part

Whitespace - Way of handling white spaces. If the value is Preserve, white spaces are unchanged. If the value is Replace, tabs, line feeds and carriage returns are replaced with spaces. If the value is Collapse, contiguous sequences of spaces are collapsed to a single space. Leading and trailing spaces are removed

A facet icon is displayed in the title bar of a facet property sheet.

Note   Enumeration and Pattern facets
For Enumeration and Pattern facets, click their corresponding tabs in the restriction property sheet and double-click the arrow left of an enumeration or a pattern value to display its property sheet.

WARNING! 

Caution
Facets only appear in the schema, within a simple type declaration (see Preview tab in the model property sheet).

Facet general properties

The General tab of a facet property sheet displays the following properties:

Property Description
ID ID of the facet. Its value must be of type ID and unique within the model containing the facet
Value Value(s) of the facet
Fixed To prevent a modification of the facet value(s), select the Fixed property

 


Copyright (C) 2007. Sybase Inc. All rights reserved.