Example 14-7. Assertions with type errors <xs:simpleType name="SizeType"> <xs:restriction base="xs:integer"> <xs:assertion test="string-length($value) < 2"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="DepartmentCodeType"> <xs:restriction base="xs:string"> <xs:...