| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 3 |
elementFormDefault="qualified" |
| 4 |
xmlns:fn="http://www.w3.org/2005/xpath-functions" |
| 5 |
xmlns:j="http://www.w3.org/2005/xpath-functions" |
| 6 |
targetNamespace="http://www.w3.org/2005/xpath-functions"> |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
<xs:element name="analyze-string-result" type="fn:analyze-string-result-type"/> |
| 34 |
<xs:element name="match" type="fn:match-type"/> |
| 35 |
<xs:element name="non-match" type="xs:string"/> |
| 36 |
<xs:element name="group" type="fn:group-type"/> |
| 37 |
|
| 38 |
<xs:complexType name="analyze-string-result-type" mixed="true"> |
| 39 |
<xs:choice minOccurs="0" maxOccurs="unbounded"> |
| 40 |
<xs:element ref="fn:match"/> |
| 41 |
<xs:element ref="fn:non-match"/> |
| 42 |
</xs:choice> |
| 43 |
</xs:complexType> |
| 44 |
|
| 45 |
<xs:complexType name="match-type" mixed="true"> |
| 46 |
<xs:sequence> |
| 47 |
<xs:element ref="fn:group" minOccurs="0" maxOccurs="unbounded"/> |
| 48 |
</xs:sequence> |
| 49 |
</xs:complexType> |
| 50 |
|
| 51 |
<xs:complexType name="group-type" mixed="true"> |
| 52 |
<xs:sequence> |
| 53 |
<xs:element ref="fn:group" minOccurs="0" maxOccurs="unbounded"/> |
| 54 |
</xs:sequence> |
| 55 |
<xs:attribute name="nr" type="xs:positiveInteger"/> |
| 56 |
</xs:complexType> |
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
<xs:element name="map" type="j:mapType"> |
| 70 |
<xs:unique name="unique-key"> |
| 71 |
<xs:selector xpath="*"/> |
| 72 |
<xs:field xpath="@key"/> |
| 73 |
</xs:unique> |
| 74 |
</xs:element> |
| 75 |
|
| 76 |
<xs:element name="array" type="j:arrayType"/> |
| 77 |
|
| 78 |
<xs:element name="string" type="j:stringType"/> |
| 79 |
|
| 80 |
<xs:element name="number" type="j:numberType"/> |
| 81 |
|
| 82 |
<xs:element name="boolean" type="j:booleanType"/> |
| 83 |
|
| 84 |
<xs:element name="null" type="j:nullType"/> |
| 85 |
|
| 86 |
<xs:complexType name="nullType"> |
| 87 |
<xs:sequence/> |
| 88 |
<xs:anyAttribute processContents="skip" namespace="##other"/> |
| 89 |
</xs:complexType> |
| 90 |
|
| 91 |
<xs:complexType name="booleanType"> |
| 92 |
<xs:simpleContent> |
| 93 |
<xs:extension base="xs:boolean"> |
| 94 |
<xs:anyAttribute processContents="skip" namespace="##other"/> |
| 95 |
</xs:extension> |
| 96 |
</xs:simpleContent> |
| 97 |
</xs:complexType> |
| 98 |
|
| 99 |
<xs:complexType name="stringType"> |
| 100 |
<xs:simpleContent> |
| 101 |
<xs:extension base="xs:string"> |
| 102 |
<xs:attribute name="escaped" type="xs:boolean" use="optional" default="false"/> |
| 103 |
<xs:anyAttribute processContents="skip" namespace="##other"/> |
| 104 |
</xs:extension> |
| 105 |
</xs:simpleContent> |
| 106 |
</xs:complexType> |
| 107 |
|
| 108 |
<xs:simpleType name="finiteNumberType"> |
| 109 |
<xs:restriction base="xs:double"> |
| 110 |
|
| 111 |
<xs:minExclusive value="-INF"/> |
| 112 |
<xs:maxExclusive value="INF"/> |
| 113 |
</xs:restriction> |
| 114 |
</xs:simpleType> |
| 115 |
|
| 116 |
<xs:complexType name="numberType"> |
| 117 |
<xs:simpleContent> |
| 118 |
<xs:extension base="j:finiteNumberType"> |
| 119 |
<xs:anyAttribute processContents="skip" namespace="##other"/> |
| 120 |
</xs:extension> |
| 121 |
</xs:simpleContent> |
| 122 |
</xs:complexType> |
| 123 |
|
| 124 |
<xs:complexType name="arrayType"> |
| 125 |
<xs:choice minOccurs="0" maxOccurs="unbounded"> |
| 126 |
<xs:element ref="j:map"/> |
| 127 |
<xs:element ref="j:array"/> |
| 128 |
<xs:element ref="j:string"/> |
| 129 |
<xs:element ref="j:number"/> |
| 130 |
<xs:element ref="j:boolean"/> |
| 131 |
<xs:element ref="j:null"/> |
| 132 |
</xs:choice> |
| 133 |
<xs:anyAttribute processContents="skip" namespace="##other"/> |
| 134 |
</xs:complexType> |
| 135 |
|
| 136 |
<xs:complexType name="mapWithinMapType"> |
| 137 |
<xs:complexContent> |
| 138 |
<xs:extension base="j:mapType"> |
| 139 |
<xs:attributeGroup ref="j:key-group"/> |
| 140 |
</xs:extension> |
| 141 |
</xs:complexContent> |
| 142 |
</xs:complexType> |
| 143 |
|
| 144 |
<xs:complexType name="arrayWithinMapType"> |
| 145 |
<xs:complexContent> |
| 146 |
<xs:extension base="j:arrayType"> |
| 147 |
<xs:attributeGroup ref="j:key-group"/> |
| 148 |
</xs:extension> |
| 149 |
</xs:complexContent> |
| 150 |
</xs:complexType> |
| 151 |
|
| 152 |
<xs:complexType name="stringWithinMapType"> |
| 153 |
<xs:simpleContent> |
| 154 |
<xs:extension base="j:stringType"> |
| 155 |
<xs:attributeGroup ref="j:key-group"/> |
| 156 |
</xs:extension> |
| 157 |
</xs:simpleContent> |
| 158 |
</xs:complexType> |
| 159 |
|
| 160 |
<xs:complexType name="numberWithinMapType"> |
| 161 |
<xs:simpleContent> |
| 162 |
<xs:extension base="j:numberType"> |
| 163 |
<xs:attributeGroup ref="j:key-group"/> |
| 164 |
</xs:extension> |
| 165 |
</xs:simpleContent> |
| 166 |
</xs:complexType> |
| 167 |
|
| 168 |
<xs:complexType name="booleanWithinMapType"> |
| 169 |
<xs:simpleContent> |
| 170 |
<xs:extension base="j:booleanType"> |
| 171 |
<xs:attributeGroup ref="j:key-group"/> |
| 172 |
</xs:extension> |
| 173 |
</xs:simpleContent> |
| 174 |
</xs:complexType> |
| 175 |
|
| 176 |
<xs:complexType name="nullWithinMapType"> |
| 177 |
<xs:attributeGroup ref="j:key-group"/> |
| 178 |
</xs:complexType> |
| 179 |
|
| 180 |
<xs:complexType name="mapType"> |
| 181 |
<xs:choice minOccurs="0" maxOccurs="unbounded"> |
| 182 |
<xs:element name="map" type="j:mapWithinMapType"> |
| 183 |
<xs:unique name="unique-key-2"> |
| 184 |
<xs:selector xpath="*"/> |
| 185 |
<xs:field xpath="@key"/> |
| 186 |
</xs:unique> |
| 187 |
</xs:element> |
| 188 |
<xs:element name="array" type="j:arrayWithinMapType"/> |
| 189 |
<xs:element name="string" type="j:stringWithinMapType"/> |
| 190 |
<xs:element name="number" type="j:numberWithinMapType"/> |
| 191 |
<xs:element name="boolean" type="j:booleanWithinMapType"/> |
| 192 |
<xs:element name="null" type="j:nullWithinMapType"/> |
| 193 |
</xs:choice> |
| 194 |
<xs:anyAttribute processContents="skip" namespace="##other"/> |
| 195 |
</xs:complexType> |
| 196 |
|
| 197 |
<xs:attributeGroup name="key-group"> |
| 198 |
<xs:attribute name="key" type="xs:string"/> |
| 199 |
<xs:attribute name="escaped-key" type="xs:boolean" use="optional" default="false"/> |
| 200 |
</xs:attributeGroup> |
| 201 |
|
| 202 |
</xs:schema> |