<xs:simpleType name="GUIDType"> <xs:restriction base="xs:string"> <xs:length value="36"/> <xs:pattern value="\{?[a-fA-F\d]{8}-[a-fA-F\d]{4}-[a-fA-F\d]{4}-[a-fA-F\d]{4}-[a-fA-F\d]{12}\}?"/> </xs:restriction> </xs:simpleType>