Team Ai
Datasetpublic

MegaBites-AI/Windows-powershell

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