forked from NCIOCPL/cdr-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxxtest.xsd
More file actions
26 lines (23 loc) · 1006 Bytes
/
xxtest.xsd
File metadata and controls
26 lines (23 loc) · 1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0" ?>
<xsd:schema xmlns:xsd = 'http://www.w3.org/2001/XMLSchema'>
<xsd:element name = 'xxtest'
type = 'xxtest'/>
<xsd:complexType name = 'xxtest'>
<xsd:sequence>
<xsd:element name = 'a'
type = 'DataString'
maxOccurs = 'unbounded'/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name = 'DataString'>
<xsd:restriction base = 'xsd:string'>
<!--
Original test was <minLength value="1"/>, but that was replaced
by a regular expression which ensures that the text content has
no leading or trailing whitespace, and has no sequences of more
than one space character, and no other whitespace characters.
-->
<xsd:pattern value = '[^\s]+( [^\s]+)*'/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>