samlesa 2.14.6 → 2.14.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of samlesa might be problematic. Click here for more details.
- package/README.md +98 -24
- package/build/index.js +0 -1
- package/build/src/api.js +2 -2
- package/build/src/binding-post.js +0 -1
- package/build/src/binding-redirect.js +0 -1
- package/build/src/binding-simplesign.js +0 -1
- package/build/src/entity-idp.js +0 -1
- package/build/src/entity-sp.js +0 -1
- package/build/src/entity.js +0 -1
- package/build/src/extractor.js +0 -1
- package/build/src/flow.js +0 -1
- package/build/src/libsaml.js +0 -74
- package/build/src/metadata-idp.js +0 -1
- package/build/src/metadata-sp.js +0 -1
- package/build/src/metadata.js +0 -1
- package/build/src/schema/XMLSchema.dtd +402 -0
- package/build/src/schema/datatypes.dtd +203 -0
- package/build/src/schema/saml-schema-assertion-2.0.xsd +283 -0
- package/build/src/schema/saml-schema-authn-context-2.0.xsd +23 -0
- package/build/src/schema/saml-schema-authn-context-auth-telephony-2.0.xsd +81 -0
- package/build/src/schema/saml-schema-authn-context-ip-2.0.xsd +65 -0
- package/build/src/schema/saml-schema-authn-context-ippword-2.0.xsd +67 -0
- package/build/src/schema/saml-schema-authn-context-kerberos-2.0.xsd +83 -0
- package/build/src/schema/saml-schema-authn-context-mobileonefactor-reg-2.0.xsd +186 -0
- package/build/src/schema/saml-schema-authn-context-mobileonefactor-unreg-2.0.xsd +183 -0
- package/build/src/schema/saml-schema-authn-context-mobiletwofactor-reg-2.0.xsd +202 -0
- package/build/src/schema/saml-schema-authn-context-mobiletwofactor-unreg-2.0.xsd +200 -0
- package/build/src/schema/saml-schema-authn-context-nomad-telephony-2.0.xsd +81 -0
- package/build/src/schema/saml-schema-authn-context-personal-telephony-2.0.xsd +80 -0
- package/build/src/schema/saml-schema-authn-context-pgp-2.0.xsd +83 -0
- package/build/src/schema/saml-schema-authn-context-ppt-2.0.xsd +81 -0
- package/build/src/schema/saml-schema-authn-context-pword-2.0.xsd +64 -0
- package/build/src/schema/saml-schema-authn-context-session-2.0.xsd +64 -0
- package/build/src/schema/saml-schema-authn-context-smartcard-2.0.xsd +64 -0
- package/build/src/schema/saml-schema-authn-context-smartcardpki-2.0.xsd +129 -0
- package/build/src/schema/saml-schema-authn-context-softwarepki-2.0.xsd +129 -0
- package/build/src/schema/saml-schema-authn-context-spki-2.0.xsd +83 -0
- package/build/src/schema/saml-schema-authn-context-srp-2.0.xsd +82 -0
- package/build/src/schema/saml-schema-authn-context-sslcert-2.0.xsd +97 -0
- package/build/src/schema/saml-schema-authn-context-telephony-2.0.xsd +79 -0
- package/build/src/schema/saml-schema-authn-context-timesync-2.0.xsd +105 -0
- package/build/src/schema/saml-schema-authn-context-types-2.0.xsd +821 -0
- package/build/src/schema/saml-schema-authn-context-x509-2.0.xsd +83 -0
- package/build/src/schema/saml-schema-authn-context-xmldsig-2.0.xsd +83 -0
- package/build/src/schema/saml-schema-dce-2.0.xsd +29 -0
- package/build/src/schema/saml-schema-ecp-2.0.xsd +57 -0
- package/build/src/schema/saml-schema-metadata-2.0.xsd +337 -0
- package/build/src/schema/saml-schema-protocol-2.0.xsd +302 -0
- package/build/src/schema/saml-schema-x500-2.0.xsd +20 -0
- package/build/src/schema/saml-schema-xacml-2.0.xsd +19 -0
- package/build/src/schema/xenc-schema.xsd +145 -0
- package/build/src/schema/xmldsig-core-schema.xsd +317 -0
- package/build/src/schemaValidator.js +40 -0
- package/build/src/types.js +0 -1
- package/build/src/urn.js +0 -1
- package/build/src/utility.js +0 -1
- package/build/src/validator.js +0 -1
- package/package.json +80 -75
- package/types/api.d.ts +15 -0
- package/types/api.d.ts.map +1 -0
- package/types/binding-post.d.ts +48 -0
- package/types/binding-post.d.ts.map +1 -0
- package/types/binding-redirect.d.ts +54 -0
- package/types/binding-redirect.d.ts.map +1 -0
- package/types/binding-simplesign.d.ts +41 -0
- package/types/binding-simplesign.d.ts.map +1 -0
- package/types/entity-idp.d.ts +38 -0
- package/types/entity-idp.d.ts.map +1 -0
- package/types/entity-sp.d.ts +38 -0
- package/types/entity-sp.d.ts.map +1 -0
- package/types/entity.d.ts +100 -0
- package/types/entity.d.ts.map +1 -0
- package/types/extractor.d.ts +26 -0
- package/types/extractor.d.ts.map +1 -0
- package/types/flow.d.ts +7 -0
- package/types/flow.d.ts.map +1 -0
- package/types/libsaml.d.ts +208 -0
- package/types/libsaml.d.ts.map +1 -0
- package/types/metadata-idp.d.ts +25 -0
- package/types/metadata-idp.d.ts.map +1 -0
- package/types/metadata-sp.d.ts +37 -0
- package/types/metadata-sp.d.ts.map +1 -0
- package/types/metadata.d.ts +58 -0
- package/types/metadata.d.ts.map +1 -0
- package/types/src/api.d.ts.map +1 -1
- package/types/src/libsaml.d.ts +0 -1
- package/types/src/libsaml.d.ts.map +1 -1
- package/types/src/schemaValidator.d.ts +2 -0
- package/types/src/schemaValidator.d.ts.map +1 -0
- package/types/src/utility.d.ts.map +1 -1
- package/types/types.d.ts +128 -0
- package/types/types.d.ts.map +1 -0
- package/types/urn.d.ts +195 -0
- package/types/urn.d.ts.map +1 -0
- package/types/utility.d.ts +133 -0
- package/types/utility.d.ts.map +1 -0
- package/types/validator.d.ts +4 -0
- package/types/validator.d.ts.map +1 -0
- package/build/index.js.map +0 -1
- package/build/src/api.js.map +0 -1
- package/build/src/binding-post.js.map +0 -1
- package/build/src/binding-redirect.js.map +0 -1
- package/build/src/binding-simplesign.js.map +0 -1
- package/build/src/entity-idp.js.map +0 -1
- package/build/src/entity-sp.js.map +0 -1
- package/build/src/entity.js.map +0 -1
- package/build/src/extractor.js.map +0 -1
- package/build/src/flow.js.map +0 -1
- package/build/src/libsaml.js.map +0 -1
- package/build/src/metadata-idp.js.map +0 -1
- package/build/src/metadata-sp.js.map +0 -1
- package/build/src/metadata.js.map +0 -1
- package/build/src/types.js.map +0 -1
- package/build/src/urn.js.map +0 -1
- package/build/src/utility.js.map +0 -1
- package/build/src/validator.js.map +0 -1
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
<!-- DTD for XML Schemas: Part 1: Structures
|
|
2
|
+
Public Identifier: "-//W3C//DTD XMLSCHEMA 200102//EN"
|
|
3
|
+
Official Location: http://www.w3.org/2001/XMLSchema.dtd -->
|
|
4
|
+
<!-- $Id: XMLSchema.dtd,v 1.31 2001/10/24 15:50:16 ht Exp $ -->
|
|
5
|
+
<!-- Note this DTD is NOT normative, or even definitive. --> <!--d-->
|
|
6
|
+
<!-- prose copy in the structures REC is the definitive version --> <!--d-->
|
|
7
|
+
<!-- (which shouldn't differ from this one except for this --> <!--d-->
|
|
8
|
+
<!-- comment and entity expansions, but just in case) --> <!--d-->
|
|
9
|
+
<!-- With the exception of cases with multiple namespace
|
|
10
|
+
prefixes for the XML Schema namespace, any XML document which is
|
|
11
|
+
not valid per this DTD given redefinitions in its internal subset of the
|
|
12
|
+
'p' and 's' parameter entities below appropriate to its namespace
|
|
13
|
+
declaration of the XML Schema namespace is almost certainly not
|
|
14
|
+
a valid schema. -->
|
|
15
|
+
|
|
16
|
+
<!-- The simpleType element and its constituent parts
|
|
17
|
+
are defined in XML Schema: Part 2: Datatypes -->
|
|
18
|
+
<!ENTITY % xs-datatypes PUBLIC 'datatypes' 'datatypes.dtd' >
|
|
19
|
+
|
|
20
|
+
<!ENTITY % p 'xs:'> <!-- can be overriden in the internal subset of a
|
|
21
|
+
schema document to establish a different
|
|
22
|
+
namespace prefix -->
|
|
23
|
+
<!ENTITY % s ':xs'> <!-- if %p is defined (e.g. as foo:) then you must
|
|
24
|
+
also define %s as the suffix for the appropriate
|
|
25
|
+
namespace declaration (e.g. :foo) -->
|
|
26
|
+
<!ENTITY % nds 'xmlns%s;'>
|
|
27
|
+
|
|
28
|
+
<!-- Define all the element names, with optional prefix -->
|
|
29
|
+
<!ENTITY % schema "%p;schema">
|
|
30
|
+
<!ENTITY % complexType "%p;complexType">
|
|
31
|
+
<!ENTITY % complexContent "%p;complexContent">
|
|
32
|
+
<!ENTITY % simpleContent "%p;simpleContent">
|
|
33
|
+
<!ENTITY % extension "%p;extension">
|
|
34
|
+
<!ENTITY % element "%p;element">
|
|
35
|
+
<!ENTITY % unique "%p;unique">
|
|
36
|
+
<!ENTITY % key "%p;key">
|
|
37
|
+
<!ENTITY % keyref "%p;keyref">
|
|
38
|
+
<!ENTITY % selector "%p;selector">
|
|
39
|
+
<!ENTITY % field "%p;field">
|
|
40
|
+
<!ENTITY % group "%p;group">
|
|
41
|
+
<!ENTITY % all "%p;all">
|
|
42
|
+
<!ENTITY % choice "%p;choice">
|
|
43
|
+
<!ENTITY % sequence "%p;sequence">
|
|
44
|
+
<!ENTITY % any "%p;any">
|
|
45
|
+
<!ENTITY % anyAttribute "%p;anyAttribute">
|
|
46
|
+
<!ENTITY % attribute "%p;attribute">
|
|
47
|
+
<!ENTITY % attributeGroup "%p;attributeGroup">
|
|
48
|
+
<!ENTITY % include "%p;include">
|
|
49
|
+
<!ENTITY % import "%p;import">
|
|
50
|
+
<!ENTITY % redefine "%p;redefine">
|
|
51
|
+
<!ENTITY % notation "%p;notation">
|
|
52
|
+
|
|
53
|
+
<!-- annotation elements -->
|
|
54
|
+
<!ENTITY % annotation "%p;annotation">
|
|
55
|
+
<!ENTITY % appinfo "%p;appinfo">
|
|
56
|
+
<!ENTITY % documentation "%p;documentation">
|
|
57
|
+
|
|
58
|
+
<!-- Customisation entities for the ATTLIST of each element type.
|
|
59
|
+
Define one of these if your schema takes advantage of the
|
|
60
|
+
anyAttribute='##other' in the schema for schemas -->
|
|
61
|
+
|
|
62
|
+
<!ENTITY % schemaAttrs ''>
|
|
63
|
+
<!ENTITY % complexTypeAttrs ''>
|
|
64
|
+
<!ENTITY % complexContentAttrs ''>
|
|
65
|
+
<!ENTITY % simpleContentAttrs ''>
|
|
66
|
+
<!ENTITY % extensionAttrs ''>
|
|
67
|
+
<!ENTITY % elementAttrs ''>
|
|
68
|
+
<!ENTITY % groupAttrs ''>
|
|
69
|
+
<!ENTITY % allAttrs ''>
|
|
70
|
+
<!ENTITY % choiceAttrs ''>
|
|
71
|
+
<!ENTITY % sequenceAttrs ''>
|
|
72
|
+
<!ENTITY % anyAttrs ''>
|
|
73
|
+
<!ENTITY % anyAttributeAttrs ''>
|
|
74
|
+
<!ENTITY % attributeAttrs ''>
|
|
75
|
+
<!ENTITY % attributeGroupAttrs ''>
|
|
76
|
+
<!ENTITY % uniqueAttrs ''>
|
|
77
|
+
<!ENTITY % keyAttrs ''>
|
|
78
|
+
<!ENTITY % keyrefAttrs ''>
|
|
79
|
+
<!ENTITY % selectorAttrs ''>
|
|
80
|
+
<!ENTITY % fieldAttrs ''>
|
|
81
|
+
<!ENTITY % includeAttrs ''>
|
|
82
|
+
<!ENTITY % importAttrs ''>
|
|
83
|
+
<!ENTITY % redefineAttrs ''>
|
|
84
|
+
<!ENTITY % notationAttrs ''>
|
|
85
|
+
<!ENTITY % annotationAttrs ''>
|
|
86
|
+
<!ENTITY % appinfoAttrs ''>
|
|
87
|
+
<!ENTITY % documentationAttrs ''>
|
|
88
|
+
|
|
89
|
+
<!ENTITY % complexDerivationSet "CDATA">
|
|
90
|
+
<!-- #all or space-separated list drawn from derivationChoice -->
|
|
91
|
+
<!ENTITY % blockSet "CDATA">
|
|
92
|
+
<!-- #all or space-separated list drawn from
|
|
93
|
+
derivationChoice + 'substitution' -->
|
|
94
|
+
|
|
95
|
+
<!ENTITY % mgs '%all; | %choice; | %sequence;'>
|
|
96
|
+
<!ENTITY % cs '%choice; | %sequence;'>
|
|
97
|
+
<!ENTITY % formValues '(qualified|unqualified)'>
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
<!ENTITY % attrDecls '((%attribute;| %attributeGroup;)*,(%anyAttribute;)?)'>
|
|
101
|
+
|
|
102
|
+
<!ENTITY % particleAndAttrs '((%mgs; | %group;)?, %attrDecls;)'>
|
|
103
|
+
|
|
104
|
+
<!-- This is used in part2 -->
|
|
105
|
+
<!ENTITY % restriction1 '((%mgs; | %group;)?)'>
|
|
106
|
+
|
|
107
|
+
%xs-datatypes;
|
|
108
|
+
|
|
109
|
+
<!-- the duplication below is to produce an unambiguous content model
|
|
110
|
+
which allows annotation everywhere -->
|
|
111
|
+
<!ELEMENT %schema; ((%include; | %import; | %redefine; | %annotation;)*,
|
|
112
|
+
((%simpleType; | %complexType;
|
|
113
|
+
| %element; | %attribute;
|
|
114
|
+
| %attributeGroup; | %group;
|
|
115
|
+
| %notation; ),
|
|
116
|
+
(%annotation;)*)* )>
|
|
117
|
+
<!ATTLIST %schema;
|
|
118
|
+
targetNamespace %URIref; #IMPLIED
|
|
119
|
+
version CDATA #IMPLIED
|
|
120
|
+
%nds; %URIref; #FIXED 'http://www.w3.org/2001/XMLSchema'
|
|
121
|
+
xmlns CDATA #IMPLIED
|
|
122
|
+
finalDefault %complexDerivationSet; ''
|
|
123
|
+
blockDefault %blockSet; ''
|
|
124
|
+
id ID #IMPLIED
|
|
125
|
+
elementFormDefault %formValues; 'unqualified'
|
|
126
|
+
attributeFormDefault %formValues; 'unqualified'
|
|
127
|
+
xml:lang CDATA #IMPLIED
|
|
128
|
+
%schemaAttrs;>
|
|
129
|
+
<!-- Note the xmlns declaration is NOT in the Schema for Schemas,
|
|
130
|
+
because at the Infoset level where schemas operate,
|
|
131
|
+
xmlns(:prefix) is NOT an attribute! -->
|
|
132
|
+
<!-- The declaration of xmlns is a convenience for schema authors -->
|
|
133
|
+
|
|
134
|
+
<!-- The id attribute here and below is for use in external references
|
|
135
|
+
from non-schemas using simple fragment identifiers.
|
|
136
|
+
It is NOT used for schema-to-schema reference, internal or
|
|
137
|
+
external. -->
|
|
138
|
+
|
|
139
|
+
<!-- a type is a named content type specification which allows attribute
|
|
140
|
+
declarations-->
|
|
141
|
+
<!-- -->
|
|
142
|
+
|
|
143
|
+
<!ELEMENT %complexType; ((%annotation;)?,
|
|
144
|
+
(%simpleContent;|%complexContent;|
|
|
145
|
+
%particleAndAttrs;))>
|
|
146
|
+
|
|
147
|
+
<!ATTLIST %complexType;
|
|
148
|
+
name %NCName; #IMPLIED
|
|
149
|
+
id ID #IMPLIED
|
|
150
|
+
abstract %boolean; #IMPLIED
|
|
151
|
+
final %complexDerivationSet; #IMPLIED
|
|
152
|
+
block %complexDerivationSet; #IMPLIED
|
|
153
|
+
mixed (true|false) 'false'
|
|
154
|
+
%complexTypeAttrs;>
|
|
155
|
+
|
|
156
|
+
<!-- particleAndAttrs is shorthand for a root type -->
|
|
157
|
+
<!-- mixed is disallowed if simpleContent, overriden if complexContent
|
|
158
|
+
has one too. -->
|
|
159
|
+
|
|
160
|
+
<!-- If anyAttribute appears in one or more referenced attributeGroups
|
|
161
|
+
and/or explicitly, the intersection of the permissions is used -->
|
|
162
|
+
|
|
163
|
+
<!ELEMENT %complexContent; ((%annotation;)?, (%restriction;|%extension;))>
|
|
164
|
+
<!ATTLIST %complexContent;
|
|
165
|
+
mixed (true|false) #IMPLIED
|
|
166
|
+
id ID #IMPLIED
|
|
167
|
+
%complexContentAttrs;>
|
|
168
|
+
|
|
169
|
+
<!-- restriction should use the branch defined above, not the simple
|
|
170
|
+
one from part2; extension should use the full model -->
|
|
171
|
+
|
|
172
|
+
<!ELEMENT %simpleContent; ((%annotation;)?, (%restriction;|%extension;))>
|
|
173
|
+
<!ATTLIST %simpleContent;
|
|
174
|
+
id ID #IMPLIED
|
|
175
|
+
%simpleContentAttrs;>
|
|
176
|
+
|
|
177
|
+
<!-- restriction should use the simple branch from part2, not the
|
|
178
|
+
one defined above; extension should have no particle -->
|
|
179
|
+
|
|
180
|
+
<!ELEMENT %extension; ((%annotation;)?, (%particleAndAttrs;))>
|
|
181
|
+
<!ATTLIST %extension;
|
|
182
|
+
base %QName; #REQUIRED
|
|
183
|
+
id ID #IMPLIED
|
|
184
|
+
%extensionAttrs;>
|
|
185
|
+
|
|
186
|
+
<!-- an element is declared by either:
|
|
187
|
+
a name and a type (either nested or referenced via the type attribute)
|
|
188
|
+
or a ref to an existing element declaration -->
|
|
189
|
+
|
|
190
|
+
<!ELEMENT %element; ((%annotation;)?, (%complexType;| %simpleType;)?,
|
|
191
|
+
(%unique; | %key; | %keyref;)*)>
|
|
192
|
+
<!-- simpleType or complexType only if no type|ref attribute -->
|
|
193
|
+
<!-- ref not allowed at top level -->
|
|
194
|
+
<!ATTLIST %element;
|
|
195
|
+
name %NCName; #IMPLIED
|
|
196
|
+
id ID #IMPLIED
|
|
197
|
+
ref %QName; #IMPLIED
|
|
198
|
+
type %QName; #IMPLIED
|
|
199
|
+
minOccurs %nonNegativeInteger; #IMPLIED
|
|
200
|
+
maxOccurs CDATA #IMPLIED
|
|
201
|
+
nillable %boolean; #IMPLIED
|
|
202
|
+
substitutionGroup %QName; #IMPLIED
|
|
203
|
+
abstract %boolean; #IMPLIED
|
|
204
|
+
final %complexDerivationSet; #IMPLIED
|
|
205
|
+
block %blockSet; #IMPLIED
|
|
206
|
+
default CDATA #IMPLIED
|
|
207
|
+
fixed CDATA #IMPLIED
|
|
208
|
+
form %formValues; #IMPLIED
|
|
209
|
+
%elementAttrs;>
|
|
210
|
+
<!-- type and ref are mutually exclusive.
|
|
211
|
+
name and ref are mutually exclusive, one is required -->
|
|
212
|
+
<!-- In the absence of type AND ref, type defaults to type of
|
|
213
|
+
substitutionGroup, if any, else the ur-type, i.e. unconstrained -->
|
|
214
|
+
<!-- default and fixed are mutually exclusive -->
|
|
215
|
+
|
|
216
|
+
<!ELEMENT %group; ((%annotation;)?,(%mgs;)?)>
|
|
217
|
+
<!ATTLIST %group;
|
|
218
|
+
name %NCName; #IMPLIED
|
|
219
|
+
ref %QName; #IMPLIED
|
|
220
|
+
minOccurs %nonNegativeInteger; #IMPLIED
|
|
221
|
+
maxOccurs CDATA #IMPLIED
|
|
222
|
+
id ID #IMPLIED
|
|
223
|
+
%groupAttrs;>
|
|
224
|
+
|
|
225
|
+
<!ELEMENT %all; ((%annotation;)?, (%element;)*)>
|
|
226
|
+
<!ATTLIST %all;
|
|
227
|
+
minOccurs (1) #IMPLIED
|
|
228
|
+
maxOccurs (1) #IMPLIED
|
|
229
|
+
id ID #IMPLIED
|
|
230
|
+
%allAttrs;>
|
|
231
|
+
|
|
232
|
+
<!ELEMENT %choice; ((%annotation;)?, (%element;| %group;| %cs; | %any;)*)>
|
|
233
|
+
<!ATTLIST %choice;
|
|
234
|
+
minOccurs %nonNegativeInteger; #IMPLIED
|
|
235
|
+
maxOccurs CDATA #IMPLIED
|
|
236
|
+
id ID #IMPLIED
|
|
237
|
+
%choiceAttrs;>
|
|
238
|
+
|
|
239
|
+
<!ELEMENT %sequence; ((%annotation;)?, (%element;| %group;| %cs; | %any;)*)>
|
|
240
|
+
<!ATTLIST %sequence;
|
|
241
|
+
minOccurs %nonNegativeInteger; #IMPLIED
|
|
242
|
+
maxOccurs CDATA #IMPLIED
|
|
243
|
+
id ID #IMPLIED
|
|
244
|
+
%sequenceAttrs;>
|
|
245
|
+
|
|
246
|
+
<!-- an anonymous grouping in a model, or
|
|
247
|
+
a top-level named group definition, or a reference to same -->
|
|
248
|
+
|
|
249
|
+
<!-- Note that if order is 'all', group is not allowed inside.
|
|
250
|
+
If order is 'all' THIS group must be alone (or referenced alone) at
|
|
251
|
+
the top level of a content model -->
|
|
252
|
+
<!-- If order is 'all', minOccurs==maxOccurs==1 on element/any inside -->
|
|
253
|
+
<!-- Should allow minOccurs=0 inside order='all' . . . -->
|
|
254
|
+
|
|
255
|
+
<!ELEMENT %any; (%annotation;)?>
|
|
256
|
+
<!ATTLIST %any;
|
|
257
|
+
namespace CDATA '##any'
|
|
258
|
+
processContents (skip|lax|strict) 'strict'
|
|
259
|
+
minOccurs %nonNegativeInteger; '1'
|
|
260
|
+
maxOccurs CDATA '1'
|
|
261
|
+
id ID #IMPLIED
|
|
262
|
+
%anyAttrs;>
|
|
263
|
+
|
|
264
|
+
<!-- namespace is interpreted as follows:
|
|
265
|
+
##any - - any non-conflicting WFXML at all
|
|
266
|
+
|
|
267
|
+
##other - - any non-conflicting WFXML from namespace other
|
|
268
|
+
than targetNamespace
|
|
269
|
+
|
|
270
|
+
##local - - any unqualified non-conflicting WFXML/attribute
|
|
271
|
+
one or - - any non-conflicting WFXML from
|
|
272
|
+
more URI the listed namespaces
|
|
273
|
+
references
|
|
274
|
+
|
|
275
|
+
##targetNamespace ##local may appear in the above list,
|
|
276
|
+
with the obvious meaning -->
|
|
277
|
+
|
|
278
|
+
<!ELEMENT %anyAttribute; (%annotation;)?>
|
|
279
|
+
<!ATTLIST %anyAttribute;
|
|
280
|
+
namespace CDATA '##any'
|
|
281
|
+
processContents (skip|lax|strict) 'strict'
|
|
282
|
+
id ID #IMPLIED
|
|
283
|
+
%anyAttributeAttrs;>
|
|
284
|
+
<!-- namespace is interpreted as for 'any' above -->
|
|
285
|
+
|
|
286
|
+
<!-- simpleType only if no type|ref attribute -->
|
|
287
|
+
<!-- ref not allowed at top level, name iff at top level -->
|
|
288
|
+
<!ELEMENT %attribute; ((%annotation;)?, (%simpleType;)?)>
|
|
289
|
+
<!ATTLIST %attribute;
|
|
290
|
+
name %NCName; #IMPLIED
|
|
291
|
+
id ID #IMPLIED
|
|
292
|
+
ref %QName; #IMPLIED
|
|
293
|
+
type %QName; #IMPLIED
|
|
294
|
+
use (prohibited|optional|required) #IMPLIED
|
|
295
|
+
default CDATA #IMPLIED
|
|
296
|
+
fixed CDATA #IMPLIED
|
|
297
|
+
form %formValues; #IMPLIED
|
|
298
|
+
%attributeAttrs;>
|
|
299
|
+
<!-- type and ref are mutually exclusive.
|
|
300
|
+
name and ref are mutually exclusive, one is required -->
|
|
301
|
+
<!-- default for use is optional when nested, none otherwise -->
|
|
302
|
+
<!-- default and fixed are mutually exclusive -->
|
|
303
|
+
<!-- type attr and simpleType content are mutually exclusive -->
|
|
304
|
+
|
|
305
|
+
<!-- an attributeGroup is a named collection of attribute decls, or a
|
|
306
|
+
reference thereto -->
|
|
307
|
+
<!ELEMENT %attributeGroup; ((%annotation;)?,
|
|
308
|
+
(%attribute; | %attributeGroup;)*,
|
|
309
|
+
(%anyAttribute;)?) >
|
|
310
|
+
<!ATTLIST %attributeGroup;
|
|
311
|
+
name %NCName; #IMPLIED
|
|
312
|
+
id ID #IMPLIED
|
|
313
|
+
ref %QName; #IMPLIED
|
|
314
|
+
%attributeGroupAttrs;>
|
|
315
|
+
|
|
316
|
+
<!-- ref iff no content, no name. ref iff not top level -->
|
|
317
|
+
|
|
318
|
+
<!-- better reference mechanisms -->
|
|
319
|
+
<!ELEMENT %unique; ((%annotation;)?, %selector;, (%field;)+)>
|
|
320
|
+
<!ATTLIST %unique;
|
|
321
|
+
name %NCName; #REQUIRED
|
|
322
|
+
id ID #IMPLIED
|
|
323
|
+
%uniqueAttrs;>
|
|
324
|
+
|
|
325
|
+
<!ELEMENT %key; ((%annotation;)?, %selector;, (%field;)+)>
|
|
326
|
+
<!ATTLIST %key;
|
|
327
|
+
name %NCName; #REQUIRED
|
|
328
|
+
id ID #IMPLIED
|
|
329
|
+
%keyAttrs;>
|
|
330
|
+
|
|
331
|
+
<!ELEMENT %keyref; ((%annotation;)?, %selector;, (%field;)+)>
|
|
332
|
+
<!ATTLIST %keyref;
|
|
333
|
+
name %NCName; #REQUIRED
|
|
334
|
+
refer %QName; #REQUIRED
|
|
335
|
+
id ID #IMPLIED
|
|
336
|
+
%keyrefAttrs;>
|
|
337
|
+
|
|
338
|
+
<!ELEMENT %selector; ((%annotation;)?)>
|
|
339
|
+
<!ATTLIST %selector;
|
|
340
|
+
xpath %XPathExpr; #REQUIRED
|
|
341
|
+
id ID #IMPLIED
|
|
342
|
+
%selectorAttrs;>
|
|
343
|
+
<!ELEMENT %field; ((%annotation;)?)>
|
|
344
|
+
<!ATTLIST %field;
|
|
345
|
+
xpath %XPathExpr; #REQUIRED
|
|
346
|
+
id ID #IMPLIED
|
|
347
|
+
%fieldAttrs;>
|
|
348
|
+
|
|
349
|
+
<!-- Schema combination mechanisms -->
|
|
350
|
+
<!ELEMENT %include; (%annotation;)?>
|
|
351
|
+
<!ATTLIST %include;
|
|
352
|
+
schemaLocation %URIref; #REQUIRED
|
|
353
|
+
id ID #IMPLIED
|
|
354
|
+
%includeAttrs;>
|
|
355
|
+
|
|
356
|
+
<!ELEMENT %import; (%annotation;)?>
|
|
357
|
+
<!ATTLIST %import;
|
|
358
|
+
namespace %URIref; #IMPLIED
|
|
359
|
+
schemaLocation %URIref; #IMPLIED
|
|
360
|
+
id ID #IMPLIED
|
|
361
|
+
%importAttrs;>
|
|
362
|
+
|
|
363
|
+
<!ELEMENT %redefine; (%annotation; | %simpleType; | %complexType; |
|
|
364
|
+
%attributeGroup; | %group;)*>
|
|
365
|
+
<!ATTLIST %redefine;
|
|
366
|
+
schemaLocation %URIref; #REQUIRED
|
|
367
|
+
id ID #IMPLIED
|
|
368
|
+
%redefineAttrs;>
|
|
369
|
+
|
|
370
|
+
<!ELEMENT %notation; (%annotation;)?>
|
|
371
|
+
<!ATTLIST %notation;
|
|
372
|
+
name %NCName; #REQUIRED
|
|
373
|
+
id ID #IMPLIED
|
|
374
|
+
public CDATA #REQUIRED
|
|
375
|
+
system %URIref; #IMPLIED
|
|
376
|
+
%notationAttrs;>
|
|
377
|
+
|
|
378
|
+
<!-- Annotation is either application information or documentation -->
|
|
379
|
+
<!-- By having these here they are available for datatypes as well
|
|
380
|
+
as all the structures elements -->
|
|
381
|
+
|
|
382
|
+
<!ELEMENT %annotation; (%appinfo; | %documentation;)*>
|
|
383
|
+
<!ATTLIST %annotation; %annotationAttrs;>
|
|
384
|
+
|
|
385
|
+
<!-- User must define annotation elements in internal subset for this
|
|
386
|
+
to work -->
|
|
387
|
+
<!ELEMENT %appinfo; ANY> <!-- too restrictive -->
|
|
388
|
+
<!ATTLIST %appinfo;
|
|
389
|
+
source %URIref; #IMPLIED
|
|
390
|
+
id ID #IMPLIED
|
|
391
|
+
%appinfoAttrs;>
|
|
392
|
+
<!ELEMENT %documentation; ANY> <!-- too restrictive -->
|
|
393
|
+
<!ATTLIST %documentation;
|
|
394
|
+
source %URIref; #IMPLIED
|
|
395
|
+
id ID #IMPLIED
|
|
396
|
+
xml:lang CDATA #IMPLIED
|
|
397
|
+
%documentationAttrs;>
|
|
398
|
+
|
|
399
|
+
<!NOTATION XMLSchemaStructures PUBLIC
|
|
400
|
+
'structures' 'http://www.w3.org/2001/XMLSchema.xsd' >
|
|
401
|
+
<!NOTATION XML PUBLIC
|
|
402
|
+
'REC-xml-1998-0210' 'http://www.w3.org/TR/1998/REC-xml-19980210' >
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
DTD for XML Schemas: Part 2: Datatypes
|
|
3
|
+
$Id: datatypes.dtd,v 1.23 2001/03/16 17:36:30 ht Exp $
|
|
4
|
+
Note this DTD is NOT normative, or even definitive. - - the
|
|
5
|
+
prose copy in the datatypes REC is the definitive version
|
|
6
|
+
(which shouldn't differ from this one except for this comment
|
|
7
|
+
and entity expansions, but just in case)
|
|
8
|
+
-->
|
|
9
|
+
|
|
10
|
+
<!--
|
|
11
|
+
This DTD cannot be used on its own, it is intended
|
|
12
|
+
only for incorporation in XMLSchema.dtd, q.v.
|
|
13
|
+
-->
|
|
14
|
+
|
|
15
|
+
<!-- Define all the element names, with optional prefix -->
|
|
16
|
+
<!ENTITY % simpleType "%p;simpleType">
|
|
17
|
+
<!ENTITY % restriction "%p;restriction">
|
|
18
|
+
<!ENTITY % list "%p;list">
|
|
19
|
+
<!ENTITY % union "%p;union">
|
|
20
|
+
<!ENTITY % maxExclusive "%p;maxExclusive">
|
|
21
|
+
<!ENTITY % minExclusive "%p;minExclusive">
|
|
22
|
+
<!ENTITY % maxInclusive "%p;maxInclusive">
|
|
23
|
+
<!ENTITY % minInclusive "%p;minInclusive">
|
|
24
|
+
<!ENTITY % totalDigits "%p;totalDigits">
|
|
25
|
+
<!ENTITY % fractionDigits "%p;fractionDigits">
|
|
26
|
+
<!ENTITY % length "%p;length">
|
|
27
|
+
<!ENTITY % minLength "%p;minLength">
|
|
28
|
+
<!ENTITY % maxLength "%p;maxLength">
|
|
29
|
+
<!ENTITY % enumeration "%p;enumeration">
|
|
30
|
+
<!ENTITY % whiteSpace "%p;whiteSpace">
|
|
31
|
+
<!ENTITY % pattern "%p;pattern">
|
|
32
|
+
|
|
33
|
+
<!--
|
|
34
|
+
Customisation entities for the ATTLIST of each element
|
|
35
|
+
type. Define one of these if your schema takes advantage
|
|
36
|
+
of the anyAttribute='##other' in the schema for schemas
|
|
37
|
+
-->
|
|
38
|
+
|
|
39
|
+
<!ENTITY % simpleTypeAttrs "">
|
|
40
|
+
<!ENTITY % restrictionAttrs "">
|
|
41
|
+
<!ENTITY % listAttrs "">
|
|
42
|
+
<!ENTITY % unionAttrs "">
|
|
43
|
+
<!ENTITY % maxExclusiveAttrs "">
|
|
44
|
+
<!ENTITY % minExclusiveAttrs "">
|
|
45
|
+
<!ENTITY % maxInclusiveAttrs "">
|
|
46
|
+
<!ENTITY % minInclusiveAttrs "">
|
|
47
|
+
<!ENTITY % totalDigitsAttrs "">
|
|
48
|
+
<!ENTITY % fractionDigitsAttrs "">
|
|
49
|
+
<!ENTITY % lengthAttrs "">
|
|
50
|
+
<!ENTITY % minLengthAttrs "">
|
|
51
|
+
<!ENTITY % maxLengthAttrs "">
|
|
52
|
+
<!ENTITY % enumerationAttrs "">
|
|
53
|
+
<!ENTITY % whiteSpaceAttrs "">
|
|
54
|
+
<!ENTITY % patternAttrs "">
|
|
55
|
+
|
|
56
|
+
<!-- Define some entities for informative use as attribute
|
|
57
|
+
types -->
|
|
58
|
+
<!ENTITY % URIref "CDATA">
|
|
59
|
+
<!ENTITY % XPathExpr "CDATA">
|
|
60
|
+
<!ENTITY % QName "NMTOKEN">
|
|
61
|
+
<!ENTITY % QNames "NMTOKENS">
|
|
62
|
+
<!ENTITY % NCName "NMTOKEN">
|
|
63
|
+
<!ENTITY % nonNegativeInteger "NMTOKEN">
|
|
64
|
+
<!ENTITY % boolean "(true|false)">
|
|
65
|
+
<!ENTITY % simpleDerivationSet "CDATA">
|
|
66
|
+
<!--
|
|
67
|
+
#all or space-separated list drawn from derivationChoice
|
|
68
|
+
-->
|
|
69
|
+
|
|
70
|
+
<!--
|
|
71
|
+
Note that the use of 'facet' below is less restrictive
|
|
72
|
+
than is really intended: There should in fact be no
|
|
73
|
+
more than one of each of minInclusive, minExclusive,
|
|
74
|
+
maxInclusive, maxExclusive, totalDigits, fractionDigits,
|
|
75
|
+
length, maxLength, minLength within datatype,
|
|
76
|
+
and the min- and max- variants of Inclusive and Exclusive
|
|
77
|
+
are mutually exclusive. On the other hand, pattern and
|
|
78
|
+
enumeration may repeat.
|
|
79
|
+
-->
|
|
80
|
+
<!ENTITY % minBound "(%minInclusive; | %minExclusive;)">
|
|
81
|
+
<!ENTITY % maxBound "(%maxInclusive; | %maxExclusive;)">
|
|
82
|
+
<!ENTITY % bounds "%minBound; | %maxBound;">
|
|
83
|
+
<!ENTITY % numeric "%totalDigits; | %fractionDigits;">
|
|
84
|
+
<!ENTITY % ordered "%bounds; | %numeric;">
|
|
85
|
+
<!ENTITY % unordered
|
|
86
|
+
"%pattern; | %enumeration; | %whiteSpace; | %length; |
|
|
87
|
+
%maxLength; | %minLength;">
|
|
88
|
+
<!ENTITY % facet "%ordered; | %unordered;">
|
|
89
|
+
<!ENTITY % facetAttr
|
|
90
|
+
"value CDATA #REQUIRED
|
|
91
|
+
id ID #IMPLIED">
|
|
92
|
+
<!ENTITY % fixedAttr "fixed %boolean; #IMPLIED">
|
|
93
|
+
<!ENTITY % facetModel "(%annotation;)?">
|
|
94
|
+
<!ELEMENT %simpleType;
|
|
95
|
+
((%annotation;)?, (%restriction; | %list; | %union;))>
|
|
96
|
+
<!ATTLIST %simpleType;
|
|
97
|
+
name %NCName; #IMPLIED
|
|
98
|
+
final %simpleDerivationSet; #IMPLIED
|
|
99
|
+
id ID #IMPLIED
|
|
100
|
+
%simpleTypeAttrs;>
|
|
101
|
+
<!-- name is required at top level -->
|
|
102
|
+
<!ELEMENT %restriction; ((%annotation;)?,
|
|
103
|
+
(%restriction1; |
|
|
104
|
+
((%simpleType;)?,(%facet;)*)),
|
|
105
|
+
(%attrDecls;))>
|
|
106
|
+
<!ATTLIST %restriction;
|
|
107
|
+
base %QName; #IMPLIED
|
|
108
|
+
id ID #IMPLIED
|
|
109
|
+
%restrictionAttrs;>
|
|
110
|
+
<!--
|
|
111
|
+
base and simpleType child are mutually exclusive,
|
|
112
|
+
one is required.
|
|
113
|
+
|
|
114
|
+
restriction is shared between simpleType and
|
|
115
|
+
simpleContent and complexContent (in XMLSchema.xsd).
|
|
116
|
+
restriction1 is for the latter cases, when this
|
|
117
|
+
is restricting a complex type, as is attrDecls.
|
|
118
|
+
-->
|
|
119
|
+
<!ELEMENT %list; ((%annotation;)?,(%simpleType;)?)>
|
|
120
|
+
<!ATTLIST %list;
|
|
121
|
+
itemType %QName; #IMPLIED
|
|
122
|
+
id ID #IMPLIED
|
|
123
|
+
%listAttrs;>
|
|
124
|
+
<!--
|
|
125
|
+
itemType and simpleType child are mutually exclusive,
|
|
126
|
+
one is required
|
|
127
|
+
-->
|
|
128
|
+
<!ELEMENT %union; ((%annotation;)?,(%simpleType;)*)>
|
|
129
|
+
<!ATTLIST %union;
|
|
130
|
+
id ID #IMPLIED
|
|
131
|
+
memberTypes %QNames; #IMPLIED
|
|
132
|
+
%unionAttrs;>
|
|
133
|
+
<!--
|
|
134
|
+
At least one item in memberTypes or one simpleType
|
|
135
|
+
child is required
|
|
136
|
+
-->
|
|
137
|
+
|
|
138
|
+
<!ELEMENT %maxExclusive; %facetModel;>
|
|
139
|
+
<!ATTLIST %maxExclusive;
|
|
140
|
+
%facetAttr;
|
|
141
|
+
%fixedAttr;
|
|
142
|
+
%maxExclusiveAttrs;>
|
|
143
|
+
<!ELEMENT %minExclusive; %facetModel;>
|
|
144
|
+
<!ATTLIST %minExclusive;
|
|
145
|
+
%facetAttr;
|
|
146
|
+
%fixedAttr;
|
|
147
|
+
%minExclusiveAttrs;>
|
|
148
|
+
|
|
149
|
+
<!ELEMENT %maxInclusive; %facetModel;>
|
|
150
|
+
<!ATTLIST %maxInclusive;
|
|
151
|
+
%facetAttr;
|
|
152
|
+
%fixedAttr;
|
|
153
|
+
%maxInclusiveAttrs;>
|
|
154
|
+
<!ELEMENT %minInclusive; %facetModel;>
|
|
155
|
+
<!ATTLIST %minInclusive;
|
|
156
|
+
%facetAttr;
|
|
157
|
+
%fixedAttr;
|
|
158
|
+
%minInclusiveAttrs;>
|
|
159
|
+
|
|
160
|
+
<!ELEMENT %totalDigits; %facetModel;>
|
|
161
|
+
<!ATTLIST %totalDigits;
|
|
162
|
+
%facetAttr;
|
|
163
|
+
%fixedAttr;
|
|
164
|
+
%totalDigitsAttrs;>
|
|
165
|
+
<!ELEMENT %fractionDigits; %facetModel;>
|
|
166
|
+
<!ATTLIST %fractionDigits;
|
|
167
|
+
%facetAttr;
|
|
168
|
+
%fixedAttr;
|
|
169
|
+
%fractionDigitsAttrs;>
|
|
170
|
+
|
|
171
|
+
<!ELEMENT %length; %facetModel;>
|
|
172
|
+
<!ATTLIST %length;
|
|
173
|
+
%facetAttr;
|
|
174
|
+
%fixedAttr;
|
|
175
|
+
%lengthAttrs;>
|
|
176
|
+
<!ELEMENT %minLength; %facetModel;>
|
|
177
|
+
<!ATTLIST %minLength;
|
|
178
|
+
%facetAttr;
|
|
179
|
+
%fixedAttr;
|
|
180
|
+
%minLengthAttrs;>
|
|
181
|
+
<!ELEMENT %maxLength; %facetModel;>
|
|
182
|
+
<!ATTLIST %maxLength;
|
|
183
|
+
%facetAttr;
|
|
184
|
+
%fixedAttr;
|
|
185
|
+
%maxLengthAttrs;>
|
|
186
|
+
|
|
187
|
+
<!-- This one can be repeated -->
|
|
188
|
+
<!ELEMENT %enumeration; %facetModel;>
|
|
189
|
+
<!ATTLIST %enumeration;
|
|
190
|
+
%facetAttr;
|
|
191
|
+
%enumerationAttrs;>
|
|
192
|
+
|
|
193
|
+
<!ELEMENT %whiteSpace; %facetModel;>
|
|
194
|
+
<!ATTLIST %whiteSpace;
|
|
195
|
+
%facetAttr;
|
|
196
|
+
%fixedAttr;
|
|
197
|
+
%whiteSpaceAttrs;>
|
|
198
|
+
|
|
199
|
+
<!-- This one can be repeated -->
|
|
200
|
+
<!ELEMENT %pattern; %facetModel;>
|
|
201
|
+
<!ATTLIST %pattern;
|
|
202
|
+
%facetAttr;
|
|
203
|
+
%patternAttrs;>
|