Changeset 1614
- Timestamp:
- 03/11/10 13:22:06 (2 years ago)
- Files:
-
- 1 modified
-
trunk/src/xml/schema/simple-types.xsd (modified) (9 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/xml/schema/simple-types.xsd
- Property svn:mime-type set to text/xml
r1612 r1614 9 9 <xs:complexType name="simpleTypes"> 10 10 <xs:sequence> 11 <xs:element name="typeSafeEnumerations" type="typeSafeEnumerations" />12 <xs:element name="restrictedStrings" type="restrictedStrings" />13 <xs:element name="restrictedLongs" type="restrictedLongs" />14 <xs:element name="fixPointNumbers" type="fixPointNumbers" />15 <xs:element name="valueObjects" type="valueObjects" />11 <xs:element name="typeSafeEnumerations" type="typeSafeEnumerations" minOccurs="0"/> 12 <xs:element name="restrictedStrings" type="restrictedStrings" minOccurs="0"/> 13 <xs:element name="restrictedLongs" type="restrictedLongs" minOccurs="0"/> 14 <xs:element name="fixPointNumbers" type="fixPointNumbers" minOccurs="0"/> 15 <xs:element name="valueObjects" type="valueObjects" minOccurs="0"/> 16 16 </xs:sequence> 17 17 </xs:complexType> … … 21 21 <xs:sequence> 22 22 <xs:element name="enumeration" type="enumeration" 23 maxOccurs="unbounded" />23 maxOccurs="unbounded" minOccurs="0"/> 24 24 </xs:sequence> 25 25 </xs:complexType> … … 50 50 <xs:restriction base="xs:string"> 51 51 <xs:enumeration value="numeric"/> 52 <xs:enumeration value="integer"/> 52 53 <xs:enumeration value="string"/> 53 54 </xs:restriction> … … 59 60 <xs:sequence> 60 61 <xs:element name="restrictedString" type="restrictedString" 61 maxOccurs="unbounded" />62 maxOccurs="unbounded" minOccurs="0"/> 62 63 </xs:sequence> 63 64 </xs:complexType> 64 65 <xs:complexType mixed="true" name="restrictedString"> 65 66 <xs:choice> 67 <xs:element name="description" type="description" 68 minOccurs="0"/> 66 69 <xs:element name="constant" type="constant" 67 70 minOccurs="0" maxOccurs="unbounded"/> 68 71 </xs:choice> 69 <xs:attribute name="min-length" type=" xs:positiveInteger"70 use="required"/> 71 <xs:attribute name="max-length" type=" xs:positiveInteger"72 <xs:attribute name="min-length" type="lengthType" 73 use="required"/> 74 <xs:attribute name="max-length" type="lengthType" 72 75 use="required"/> 73 76 <xs:attribute name="package" type="javaPackageName" … … 90 93 <xs:complexType name="restrictedLong"> 91 94 <xs:sequence> 92 <xs:element name="constant" type="constant"/> 95 <xs:element name="constant" type="constant" 96 minOccurs="0" maxOccurs="unbounded"/> 93 97 </xs:sequence> 94 98 <xs:attribute name="classname" type="javaClassName" … … 105 109 <xs:sequence> 106 110 <xs:element name="fixPointNumber" type="fixPointNumber" 107 maxOccurs="unbounded" />111 maxOccurs="unbounded" minOccurs="0"/> 108 112 </xs:sequence> 109 113 </xs:complexType> 110 114 <xs:complexType name="fixPointNumber"> 111 115 <xs:sequence> 116 <xs:element name="description" type="description" minOccurs="0"/> 112 117 <xs:element name="constant" type="constant" 113 118 minOccurs="0" maxOccurs="unbounded"/> … … 131 136 <xs:sequence> 132 137 <xs:element name="valueObject" type="valueObject" 133 maxOccurs="unbounded" />138 maxOccurs="unbounded" minOccurs="0"/> 134 139 </xs:sequence> 135 140 </xs:complexType> … … 181 186 182 187 <!-- Used globally --> 188 <xs:simpleType name="lengthType"> 189 <xs:restriction base="xs:string"/> 190 </xs:simpleType> 183 191 <xs:simpleType name="javaPackageName"> 184 192 <xs:restriction base="xs:string"/> … … 200 208 </xs:restriction> 201 209 </xs:simpleType> 202 <xs:complexType mixed="true" name="description"/> 210 <xs:complexType mixed="true" name="description"> 211 <xs:sequence> 212 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/> 213 </xs:sequence> 214 </xs:complexType> 203 215 204 216
