2 Copyright (c) 2000-2015 Ericsson Telecom AB
4 All rights reserved. This program and the accompanying materials
5 are made available under the terms of the Eclipse Public License v1.0
6 which accompanies this distribution, and is available at
7 http://www.eclipse.org/legal/epl-v10.html
9 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
10 xmlns:strng= "http://www.XmlTest.org/string"
11 targetNamespace="http://www.XmlTest.org/string">
14 <xsd:documentation xml:lang="en">
15 This documentum tests based on
16 XML Schema Part 0: Primer Second Edition,
19 XML Schema Part 2: Datatypes Second Edition
24 <xsd:element name="NameA" type="Name"/>
26 <xsd:simpleType name="Name">
27 <xsd:restriction base="xsd:string">
31 <xsd:element name="nameB" type="strng:name"/>
33 <xsd:simpleType name="name">
34 <xsd:restriction base="xsd:string">
38 <xsd:simpleType name="NameLength4" >
39 <xsd:restriction base="xsd:string">
40 <xsd:length value="4" fixed="true"/>
44 <xsd:element name="Non-empty-string" type="strng:Non-empty-string"/>
46 <xsd:simpleType name='Non-empty-string'>
47 <xsd:restriction base='xsd:string' >
48 <xsd:length value='3' fixed="false"/>
52 <xsd:simpleType name='Non-empty-stringChild'>
53 <xsd:restriction base='strng:Non-empty-string'>
54 <xsd:length value='3'/>
58 <xsd:simpleType name='Longer-string'>
59 <xsd:restriction base='xsd:string'>
60 <xsd:length value='5'/>
64 <xsd:simpleType name='Longer-stringChild'>
65 <xsd:restriction base='strng:Longer-string'>
66 <xsd:length value='5'/>
70 <xsd:simpleType name='StringMin'>
71 <xsd:restriction base='xsd:string'>
72 <xsd:minLength value='5'/>
76 <xsd:simpleType name='StringMax'>
77 <xsd:restriction base='xsd:string'>
78 <xsd:maxLength value='7'/>
82 <xsd:simpleType name='StringMinMax'>
83 <xsd:restriction base='xsd:string'>
84 <xsd:minLength value='5'/>
85 <xsd:maxLength value='7'/>
89 <xsd:simpleType name='better-us-zipcode'>
90 <xsd:restriction base='xsd:string'>
91 <xsd:pattern value='[0-9]{5}(-[0-9]{4})?'/>
95 <!-- [$\c]+ means: (dollar or NameChar) 1 or more times.
96 \c inside a character class gets "folded into" it.
97 It should become: (pattern "dollar-or-namechar`s=[$\w\d.\-_:]+") -->
98 <xsd:simpleType name='HO47449a'>
99 <xsd:restriction base='xsd:string'>
100 <xsd:pattern value='dollar-or-namechar`s=[$\c]+'/>
104 <!-- [\]$\c\[]+ means: (] or $ or NameChar or [) 1 or more times.
105 \c is still inside a character class.
106 It should become: (pattern "still-inside=[\]$\w\d.\-_:\[]+") -->
107 <xsd:simpleType name='HO47449b'>
108 <xsd:restriction base='xsd:string'>
109 <xsd:pattern value='still-inside=[\]$\c\[]+'/>
113 <!-- [ ]$\c[ ]+ means: space,
114 followed by dollar, a NameChar,
115 and another space 1 or more times.
116 This time, \c is outside the character class.
117 It should become: (pattern "outside=[ ]$[\w\d.\-_:][ ]+") -->
118 <xsd:simpleType name='HO47449c'>
119 <xsd:restriction base='xsd:string'>
120 <xsd:pattern value='outside=[ ]$\c[ ]+'/>
124 <xsd:simpleType name='artf673083'>
125 <xsd:restriction base='xsd:string'>
126 <xsd:pattern value='("\i\c*")'/>
130 <xsd:simpleType name='mystring'>
131 <xsd:restriction base='xsd:string'>
132 <xsd:minLength value='4'/>
137 <xsd:documentation xml:lang="en">
138 Case Sensitivity Test follows: Mystring and mystring should be different
142 <xsd:simpleType name='Mystring'>
143 <xsd:restriction base='xsd:string'>
144 <xsd:minLength value='4'/>
148 <xsd:element name="type" type="strng:type"/>
150 <xsd:simpleType name='type'>
151 <xsd:restriction base='xsd:string'>