Skip to content
Snippets Groups Projects
Commit c3fe6d2b authored by al.schwinn's avatar al.schwinn Committed by al.schwinn
Browse files

Restrictions for fesa-device-name to strict ( #44 )

parent 2b1a43ab
No related branches found
No related tags found
No related merge requests found
......@@ -579,14 +579,31 @@
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DeviceNameType">
<!-- Base type which just forbid characters not supported by the DB -->
<xs:simpleType name="BaseType">
<xs:restriction base="xs:string">
<xs:pattern value="[^&amp;&lt;&gt;&quot;]*" />
</xs:restriction>
</xs:simpleType>
<!-- Type for named item which are not transformed into Cpp object -->
<xs:simpleType name="NonIdentifierType">
<xs:restriction base="BaseType">
<!-- forbid leading and trailing space characters -->
<xs:pattern value="\S|(\S.*\S)" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DeviceNameType">
<xs:restriction base="NonIdentifierType">
<xs:minLength value="1" />
<xs:maxLength value="30" />
<!-- In FESA the deviceName is restricted to max. 30 characters -->
<xs:pattern value="[_A-Za-z][_A-Za-z0-9]*" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="BothProtocolType">
<xs:restriction base="xs:string">
<xs:enumeration value="DEVICE_MODE" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment