]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
restricted name attribute
authorJan Michel <j.michel@gsi.de>
Fri, 28 Jun 2013 09:29:26 +0000 (11:29 +0200)
committerJan Michel <j.michel@gsi.de>
Fri, 28 Jun 2013 09:29:26 +0000 (11:29 +0200)
xml-db/database/TrbNet.xsd

index 7f54e2ffff402fd0cafe82cbab11f2ccaf32556d..924a417f1c01a400a8e7717edbd8faeccdfcb583 100644 (file)
@@ -4,6 +4,12 @@
 <!--==============================
     Type Definitions
 ==============================-->
+<xs:simpleType name="nametype">
+  <xs:restriction base="xs:string">
+    <xs:pattern value="[0-9a-zA-Z_]+"/>
+  </xs:restriction>
+</xs:simpleType> 
+
 <xs:simpleType name="addresstype">
   <xs:restriction base="xs:string">
     <xs:pattern value="[0-9a-fA-F]{4}"/>
@@ -56,7 +62,7 @@
 <!--==============================
     Attribute Definition
 ==============================-->
-<xs:attribute name="name"         type="xs:string" />
+<xs:attribute name="name"         type="nametype" />
 <xs:attribute name="address"      type="addresstype" />
 <xs:attribute name="offset"       type="addresstype" />
 <xs:attribute name="mode"         type="modetype"  />