File size: 14,173 Bytes
8c763fb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
<?xml version="1.0" encoding="utf-8"?>
<schema targetNamespace="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:doc="http://schemas.microsoft.com/maml/internal" xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" blockDefault="#all" xml:lang="en">
  <!-- Schema documentation -->
  <annotation>
    <documentation>
      This schema describes the command page type of MAML.
    </documentation>
  </annotation>
  <import schemaLocation="maml.xsd" namespace="http://schemas.microsoft.com/maml/2004/10"/>
  <import schemaLocation="developer.xsd" namespace="http://schemas.microsoft.com/maml/dev/2004/10"/>
  <!-- ROOT ELEMENT DEFINITION -->
  <element name="command" type="command:commandType">
    <annotation>
      <documentation>
        The command element describes the content model for the command help content type.
      </documentation>
    </annotation>
  </element>
  <complexType name="commandType">
    <sequence>
      <element ref="command:details"/>
      <element ref="maml:description"/>
      <element ref="command:syntax"/>
      <element ref="command:parameters" minOccurs="0"/>
      <element ref="command:inputTypes"/>
      <element ref="command:returnValues"/>
      <element ref="command:terminatingErrors"/>
      <element ref="command:nonTerminatingErrors"/>
      <element ref="maml:alertSet" minOccurs="0" maxOccurs="unbounded"/>
      <element ref="command:examples" minOccurs="0"/>
      <element ref="maml:relatedLinks" maxOccurs="unbounded"/>
    </sequence>
    <attribute name="contentType" type="token"/>
  </complexType>
  <!-- END ROOT ELEMENT DEFINITION -->
  <!-- details definition -->
  <element name="details" type="command:detailsType"/>
  <complexType name="detailsType">
    <sequence>
      <element ref="command:name"/>
      <element ref="maml:description"/>
      <element ref="command:synonyms" minOccurs="0"/>
      <element ref="maml:copyright"/>
      <element ref="command:verb"/>
      <element ref="command:noun"/>
      <element ref="dev:version"/>
      <element ref="command:vendor" minOccurs="0"/>
    </sequence>
    <attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>
  </complexType>
  <!-- end details definition -->
  <element name="verb" type="maml:textType"/>
  <element name="noun" type="maml:textType"/>
  <!-- vendor definition -->
  <element name="vendor" type="command:vendorType"/>
  <complexType name="vendorType">
    <sequence>
      <element ref="maml:name"/>
      <element ref="dev:products"/>
    </sequence>
  </complexType>
  <!-- end vendor definition -->
  <!-- name definition -->
  <element name="name" type="command:nameType"/>
  <complexType name="nameType" mixed="true">
    <complexContent>
      <extension base="maml:nameType">
        <attribute name="commandType">
          <simpleType>
            <restriction base="token">
              <enumeration value="provider"/>
            </restriction>
          </simpleType>
        </attribute>
      </extension>
    </complexContent>
  </complexType>
  <!-- end name definition -->
  <!-- synonyms definition -->
  <element name="synonyms" type="command:synonymsType"/>
  <complexType name="synonymsType">
    <sequence>
      <element ref="command:synonym" maxOccurs="unbounded"/>
    </sequence>
    <attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>
  </complexType>
  <!-- end synonyms definition -->
  <!-- end synonym definition -->
  <element name="synonym" type="maml:textType"/>
  <!-- end synonym definition -->
  <!-- syntax definition -->
  <element name="syntax" type="command:syntaxType"/>
  <complexType name="syntaxType">
    <sequence>
      <element ref="command:syntaxItem" maxOccurs="unbounded"/>
    </sequence>
    <attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>
  </complexType>
  <!-- end syntax definition -->
  <!-- syntaxItem definition -->
  <element name="syntaxItem" type="command:syntaxItemType"/>
  <complexType name="syntaxItemType">
    <sequence>
      <element ref="maml:name"/>
      <element ref="command:parameter" minOccurs="0" maxOccurs="unbounded"/>
      <element ref="command:parameterGroup" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
    <attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>
  </complexType>
  <!-- end syntaxItem definition -->
  <!-- parameterGroup definition -->
  <element name="parameterGroup" type="command:parameterGroupType"/>
  <complexType name="parameterGroupType">
    <sequence>
      <element ref="command:parameter" maxOccurs="unbounded"/>
    </sequence>
  </complexType>
  <!-- end parameterGroup definition -->
  <!-- parameters definition -->
  <element name="parameters" type="command:parametersType"/>
  <complexType name="parametersType">
    <sequence>
      <element ref="command:parameter" minOccurs="1" maxOccurs="unbounded"/>
    </sequence>
    <attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>
  </complexType>
  <!-- end parameters definition -->
  <!-- parameter definition -->
  <element name="parameter" type="command:parameterType"/>
  <complexType name="parameterType">
    <sequence>
      <element ref="maml:name"/>
      <element ref="maml:description"/>
      <choice minOccurs="0">
        <element ref="command:parameterValue"/>
        <element ref="command:parameterValueGroup"/>
      </choice>
      <element ref="dev:type" minOccurs="0"/>
      <element ref="dev:defaultValue" minOccurs="0"/>
      <element ref="dev:possibleValues" minOccurs="0"/>
      <element ref="command:validation" minOccurs="0"/>
    </sequence>
    <attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>
    <attribute name="required" type="boolean" use="required"/>
    <attribute name="variableLength" type="boolean" use="required"/>
    <attribute name="globbing" type="boolean" use="required"/>
    <attribute name="pipelineInput" type="string" use="required"/>
    <attribute name="position" type="string" use="required"/>
    <attribute ref="command:requiresTrustedData" use="optional"/>
  </complexType>
  <!-- end parameter definition -->
  <!-- validation definition -->
  <element name="validation" type="command:validationType"/>
  <complexType name="validationType">
    <sequence>
      <element name="minCount" type="maml:integerType"/>
      <element name="maxCount" type="maml:integerType"/>
      <element name="minLength" type="maml:integerType"/>
      <element name="maxLength" type="maml:integerType"/>
      <element name="minRange" type="maml:textType"/>
      <element name="maxRange" type="maml:textType"/>
      <element name="pattern" type="maml:textType"/>
    </sequence>
    <attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>
  </complexType>
  <!-- end validation definition -->
  <!-- inputTypes definition -->
  <element name="inputTypes" type="command:inputTypesType"/>
  <complexType name="inputTypesType">
    <sequence>
      <element ref="command:inputType" maxOccurs="unbounded"/>
    </sequence>
    <attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>
  </complexType>
  <!-- end inputTypes definition -->
  <!-- inputType definition -->
  <element name="inputType" type="command:inputTypeType"/>
  <complexType name="inputTypeType">
    <sequence>
      <element ref="dev:type"/>
      <element ref="maml:description"/>
    </sequence>
    <attribute ref="command:requiresTrustedData" use="optional"/>
  </complexType>
  <!-- end inputTypedefinition -->
  <!-- returnValues definition -->
  <element name="returnValues" type="command:returnValuesType"/>
  <complexType name="returnValuesType">
    <sequence>
      <element ref="command:returnValue" maxOccurs="unbounded"/>
    </sequence>
  </complexType>
  <!-- end returnValues definition -->
  <!-- returnValue definition -->
  <element name="returnValue" type="command:returnValueType"/>
  <complexType name="returnValueType">
    <complexContent>
      <extension base="dev:returnValueType">
        <attribute ref="command:isTrustedData" use="optional"/>
      </extension>
    </complexContent>
  </complexType>
  <!-- end returnValue definition -->
  <!-- terminatingErrors definition -->
  <element name="terminatingErrors" type="command:terminatingErrorsType"/>
  <complexType name="terminatingErrorsType">
    <sequence>
      <element ref="command:terminatingError" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
    <attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>
  </complexType>
  <!-- end terminatingErrors definition -->
  <!-- end terminatingError definition -->
  <element name="terminatingError" type="command:errorType"/>
  <!-- end terminatingError definition -->
  <!-- nonTerminatingErrors definition -->
  <element name="nonTerminatingErrors" type="command:nonTerminatingErrorsType"/>
  <complexType name="nonTerminatingErrorsType">
    <sequence>
      <element ref="command:nonTerminatingError" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
    <attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>
  </complexType>
  <!-- end nonTerminatingErrors definition -->
  <!-- end nonTerminatingError definition -->
  <element name="nonTerminatingError" type="command:errorType"/>
  <!-- end nonTerminatingError definition -->
  <!-- examples definition -->
  <element name="examples" type="command:examplesType"/>
  <complexType name="examplesType">
    <sequence>
      <element ref="command:example" maxOccurs="unbounded"/>
    </sequence>
    <attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>
  </complexType>
  <!-- end examples definition -->
  <!-- example definition -->
  <element name="example" type="command:exampleType"/>
  <complexType name="exampleType">
    <complexContent>
      <extension base="command:exampleTypeRestricted">
        <sequence>
          <element ref="command:commandLines" minOccurs="0"/>
        </sequence>
      </extension>
    </complexContent>
  </complexType>
  <complexType name="exampleTypeRestricted">
    <complexContent>
      <restriction base="dev:exampleType">
        <sequence>
          <element ref="maml:title" minOccurs="0"/>
          <element ref="maml:introduction" minOccurs="0"/>
          <group ref="dev:codeGroup"/>
          <element ref="dev:buildInstructions" minOccurs="0" maxOccurs="0"/>
          <element ref="dev:robustProgramming" minOccurs="0" maxOccurs="0"/>
          <element ref="dev:security" minOccurs="0"/>
          <element ref="dev:results" minOccurs="0" maxOccurs="0"/>
          <element ref="dev:remarks" minOccurs="0"/>
        </sequence>
      </restriction>
    </complexContent>
  </complexType>
  <!-- end example definition -->
  <!-- commandLines definition -->
  <element name="commandLines" type="command:commandLinesType"/>
  <complexType name="commandLinesType">
    <sequence>
      <element ref="command:commandLine" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
  </complexType>
  <!-- end commandLines definition -->
  <!-- commandLine definition -->
  <element name="commandLine" type="command:commandLineType"/>
  <complexType name="commandLineType">
    <sequence>
      <element ref="command:commandText" minOccurs="1" maxOccurs="unbounded"/>
    </sequence>
  </complexType>
  <!-- end commandLine definition -->
  <!-- commandText definition -->
  <element name="commandText" type="command:commandTextType"/>
  <complexType name="commandTextType" mixed="true">
    <sequence>
      <element ref="maml:notLocalizable" minOccurs="0"/>
    </sequence>
    <attribute name="input" type="boolean" use="optional"/>
  </complexType>
  <!-- end commandText definition -->
  <!-- parameterValue definition -->
  <element name="parameterValue" type="command:parameterValueType"/>
  <complexType name="parameterValueType" mixed="true">
    <complexContent>
      <extension base="maml:textType">
        <attribute name="required" type="boolean" use="required"/>
        <attribute name="variableLength" type="boolean" use="required"/>
        <attribute name="type" use="optional" default="literal">
          <simpleType>
            <restriction base="token">
              <enumeration value="literal"/>
              <enumeration value="placeHolder"/>
            </restriction>
          </simpleType>
        </attribute>
      </extension>
    </complexContent>
  </complexType>
  <!-- end parameterValue definition -->
  <!-- parameterValueGroup definition -->
  <element name="parameterValueGroup" type="command:parameterValueGroupType"/>
  <complexType name="parameterValueGroupType">
    <sequence>
      <element ref="command:parameterValue" minOccurs="1" maxOccurs="unbounded"/>
    </sequence>
  </complexType>
  <!-- end parameterValueGroup definition -->
  <!-- miscellaneous -->
  <attribute name="requiresTrustedData" type="command:trustedDataType"/>
  <attribute name="isTrustedData" type="command:trustedDataType"/>
  <simpleType name="trustedDataType">
    <restriction base="token">
      <enumeration value="always"/>
      <enumeration value="never"/>
      <enumeration value="sometimes"/>
    </restriction>
  </simpleType>
  <complexType name="errorType">
    <sequence>
      <element ref="dev:type"/>
      <element ref="maml:description"/>
      <element name="category"/>
      <element name="errorID"/>
      <element name="recommendedAction" type="maml:textBlockType" minOccurs="0"/>
      <element name="targetObjectType" type="dev:typeType"/>
    </sequence>
  </complexType>
  <complexType name="parameterNameType" mixed="true">
    <complexContent>
      <extension base="maml:textType">
        <attribute name="required" type="boolean"/>
      </extension>
    </complexContent>
  </complexType>
  <element name="parameterNameInline" type="string"/>
  <element name="parameterValueInline" type="string"/>
  <!-- end miscellaneous -->
</schema>