Characteristic |
XML Schema |
CAM |
Data type |
<xs:element . . . type="xs:int"> |
setDatatype(int) or datatype(int) |
String value length |
<xs:minLength value="3"> <xs:maxLength value="8"> Together the min/max values allow a range of lengths.
<xs:length value="30"> Mutually exclusive with the above, specifies an exact length. |
setLength(3, 8) Two values specify a range of lengths.
setLength(30) A single value specifies an exact length. |
String value restriction |
<xs:restriction base="xs:string"> <xs:enumeration value="dark"/> <xs:enumeration value="bittersweet"/> <xs:enumeration value="milk"/> </xs:restriction> Values are limited to the specific values enumerated. |
restrictValues(dark|bittersweet|milk) Values are limited to the specific values enumerated.
restrictValues(dark|bittersweet|milk, dark) Optional final argument specifies a default if the user does not provide a value.
|
Numeric value length |
<xs:totalDigits value="9"> <xs:fractionDigits value="2"/> Specifies the length of the whole number and fraction portions of a number. |
setNumberMask(000000.00) Specifies the number shape in a WYSIWYG fashion. Zeroes indicate digits must be present.
setNumberMask(######.##) Octothorps indicate leading/trailing zeroes are not required.
|
Numeric value |
<xs:minInclusive value="0"> <xs:maxInclusive value="10"> The upper/lower bounds are permissible values.
<xs:minExclusive value="0"> <xs:maxExclusive value="10"> The upper/lower bounds are not permissible values.
|
setNumberRange(0,10) Specifies an inclusive range. Exclusive range is not specifically supported but may be achieved with an appropriate inclusive range. |
General data shape |
<xs:pattern value="-?[0-9]+"/> <xs:pattern value="ITEM.\d{2}"/> <xs:pattern value="\d{4}-\d{2}-\d{2}T\d\d:\d\d:\d\d"/> Value is a regular expression. |
setNumberMask(#) setStringMask('ITEM'X00) setDateMask(YYYY-MM-DDTHH:MI:SS) Value is a custom mask expression. |
Whitespace |
<xs:whitespace value= "preserve"/> Preserve whitespace as entered.
<xs:whitespace value= "replace"/> Replace any whitespace with the space character.
<xs:whitespace value= "collapse"/> Replace then reduce any multiple spaces to a single one.
|
Not supported. |