type of typical elements dx:city, dx:classID, dx:convention, dx:eMail, dx:fax, dx:fileName, dx:laboratoryCode, dx:mimeType, dx:model, dx:namespace, dx:nonSIDefinition, dx:nonSIUnit, dx:norm, dx:phone, dx:positionCoordinateSystem, dx:postCode, dx:postOfficeBox, dx:procedure, dx:reference, dx:referralID, dx:release, dx:replacedUniqueIdentifier, dx:role, dx:state, dx:street, dx:streetNo, dx:uniqueIdentifier, dx:value, etc..
A string type which doesn't allow entries with blank spaces only and doesn't allow a blank space before and at the end of the value.
The tree structure of the type dx:notEmptyStringType has the following appearance:
<xs:simpleType name="notEmptyStringType">
<xs:restriction base="xs:string">
<xs:pattern value="[^\s]+(\s+[^\s]+)*"/>
</xs:restriction>
</xs:simpleType>
This XML Schema Definition (XSD) snippet defines a custom simple type named notEmptyStringType. The notEmptyStringType is a restriction of the built-in xs:string type. The restriction applies a pattern that ensures the string is not empty and does not consist solely of whitespace.
Regex:
[^\s]+(\s+[^\s]+)*
The regular expression [^\s]+(\s+[^\s]+)* can be interpreted as follows:
[^\s]+: Matches one or more characters that are not whitespace.(\s+[^\s]+)*: Matches zero or more sequences of one or more whitespace characters followed by one or more non-whitespace characters.Explanation
Characters which aren't whitespaces are allowed in general. If there are one or more whitespaces, they must be surrounded by non-whitespace characters.