Team Ai
Datasetpublic

MegaBites-AI/Windows-powershell

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes372downloads
command.xsd378 linesDownload Raw Back to PSMaml
1<?xml version="1.0" encoding="utf-8"?>2<schema targetNamespace="http://schemas.microsoft.com/maml/2004/4" xmlns:doc="http://schemas.microsoft.com/maml/internal" xmlns:maml="http://schemas.microsoft.com/maml/2004/4" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">3	<!-- Schema documentation -->4	<annotation>5		<documentation>6			This schema describes the command page type of MAML.7		</documentation>8	</annotation>9	<!-- INCLUDE AND IMPORT DECLARATIONS -->10	<include schemaLocation="hierarchy.xsd"/>11	<include schemaLocation="base.xsd"/>12	<include schemaLocation="developerStructure.xsd"/>13	<!-- END INCLUDE AND IMPORT DECLARATIONS -->14	<!-- ROOT ELEMENT DEFINITION -->15	<element name="commandHelp">16		<annotation>17			<documentation>18				The commandHelp element describes the content model for the command help content type.19			</documentation>20		</annotation>21		<complexType>22			<sequence>23				<!-- [gxie] items missing:24					defaultverbs25					class26					shortdescription27				-->28				<!-- [gxie] items moved:29					name : moved to commandDetails30					verb : moved to commandDetails31					noun : moved to commandDetails32					? Synopsis : mapped to commandDetails.CommandDescription33				-->34				<!-- [gxie] items added:35					keywords36					commandDetails37					commandSyntax38					commandParameters39					configuration40				-->41				<!-- [gxie] items updated:42					description => DetailedDescription43					? alertSet => Notes44					commandExamples => Examples45					? relatedLinks => SeeAlsoItems46					commandExceptions => Exceptions47					commandErrors => Errors48				-->49 50				<element ref="maml:keywords"/>51				<element ref="maml:commandDetails"/>52				<element ref="maml:description"/>53				<!-- [gxie] ? will commandSyntax be generated from command Parameters or provided in help content itself-->54				<element ref="maml:commandSyntax"/>55				<element ref="maml:commandParameters" minOccurs="0"/>56				<element ref="maml:inputTypes"/>57				<element ref="maml:returnTypes"/>58				<element ref="maml:commandExceptions"/>59				<element ref="maml:commandErrors"/>60				<element ref="maml:alertSet" maxOccurs="unbounded"/>61				<element ref="maml:commandExamples" minOccurs="0"/>62				<element ref="maml:configuration"/>63				<element ref="maml:relatedLinks" maxOccurs="unbounded"/>64			</sequence>65			<attribute name="contentType" type="token"/>66		</complexType>67	</element>68	<!-- END ROOT ELEMENT DEFINITION -->69	<!-- ELEMENT AND TYPE DECLARATIONS -->70	<!-- keywords definition -->71	<!-- [gxie] ! keywords are not defined yet-->72	<element name="keywords"/>73	<!-- commandDetails definition -->74	<element name="commandDetails">75		<annotation>76			<documentation>77				The commandDetails element ...78			</documentation>79		</annotation>80		<complexType>81			<sequence>82				<element name="name">83					<complexType>84						<complexContent>							85							<extension base="maml:textType">86								<!-- [gxie] ? what's the meaning of commandType="provider"-->87								<attribute name="commandType">88									<simpleType>89										<restriction base="token">90											<enumeration value="provider"/>91										</restriction>92									</simpleType>93								</attribute>94							</extension>95						</complexContent>96					</complexType>97				</element>98				<!-- [gxie] ? Is this the same thing as synopsis or shot description-->99				<element name="commandDescription" type="maml:textType"/>100				<element name="synonyms" minOccurs="0">101					<complexType>102						<sequence>103							<element name="synonym" type="maml:textType" maxOccurs="unbounded"/>104						</sequence>105						<!-- [gxie] ? what is usage of contentIdentificationSharingAndConditionGroup-->106						<attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>107					</complexType>108				</element>109				<element name="commandCopyright" type="maml:textType"/>110				<element name="verb" type="maml:textType"/>111				<element name="noun" type="maml:textType"/>112				<element name="version" type="maml:textType"/>113				<element name="vendor" minOccurs="0">114					<complexType>115						<sequence>116							<element ref="maml:name"/>117							<element ref="maml:products"/>118						</sequence>119					</complexType>120				</element>121			</sequence>122			<attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>123		</complexType>124	</element>125	<!-- end commandDetails definition -->126	<!-- commandSyntax definition -->127	<element name="commandSyntax">128		<annotation>129			<documentation>130				The commandSyntax element ...131			</documentation>132		</annotation>133		<complexType>134			<sequence>135				<element name="commandSyntaxItem">136					<complexType>137						<sequence>138							<element ref="maml:name"/>139							<element ref="maml:commandSyntaxParameter" minOccurs="0" maxOccurs="unbounded"/>140							<element name="commandSyntaxParameterGroup" minOccurs="0" maxOccurs="unbounded">141								<complexType>142									<sequence>143										<element ref="maml:commandSyntaxParameter" maxOccurs="unbounded"/>144									</sequence>145								</complexType>146							</element>147						</sequence>148						<attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>149					</complexType>150				</element>151			</sequence>152			<attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>153		</complexType>154	</element>155	<!-- end commandSyntax definition -->156	<!-- commandParameters definition -->157	<element name="commandParameters">158		<annotation>159			<documentation>160				The commandParameters element ...161			</documentation>162		</annotation>163		<complexType>164			<sequence>165				<element name="commandParameter" minOccurs="1" maxOccurs="unbounded">166					<complexType>167						<sequence>168							<element ref="maml:name"/>169							<element ref="maml:commandParameterValue"/>170							<element ref="maml:type"/>171							<!-- [gxie] ? should we reduce this to simple text -->172							<element ref="maml:description"/>173							<!-- [gxie] ? what is the difference of this from commandParameterValue-->174							<element ref="maml:possibleValues"/>175							<element name="defaultValue" type="maml:textType"/>176							<element name="validation">177								<complexType>178									<sequence>179										<!-- [gxie] ? what is the difference between minCount/minLength/minRange -->180										<element name="minCount" type="maml:integerType"/>181										<element name="maxCount" type="maml:integerType"/>182										<element name="minLength" type="maml:integerType"/>183										<element name="maxLength" type="maml:integerType"/>184										<element name="minRange" type="maml:textType"/>185										<element name="maxRange" type="maml:textType"/>186										<element name="pattern" type="maml:textType"/>187									</sequence>188									<attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>189								</complexType>190							</element>191						</sequence>192						<attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>193						<attribute name="required" type="boolean" use="required"/>194						<attribute name="variableLength" type="boolean" use="required"/>195						<attribute name="globbing" type="boolean" use="required"/>196						<attribute name="pipelineInput" type="boolean" use="required"/>197						<attribute name="position" type="integer" use="required"/>198					</complexType>199				</element>200			</sequence>201			<attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>202		</complexType>203	</element>204	<!-- end commandParameters definition -->205	<!-- inputTypes definition -->206	<element name="inputTypes">207		<annotation>208			<documentation>209				The inputTypes element ...210			</documentation>211		</annotation>212		<complexType>213			<sequence>214				<element name="inputType" maxOccurs="unbounded">215					<complexType>216						<sequence>217							<element ref="maml:type"/>218							<!-- [gxie] should we reduce this to simple text -->219							<element ref="maml:description"/>220						</sequence>221					</complexType>222				</element>223			</sequence>224			<attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>225		</complexType>226	</element>227	<!-- end inputTypes definition -->228	<!-- returnTypes definition -->229	<element name="returnTypes">230		<annotation>231			<documentation>232				The returnTypes element ...233			</documentation>234		</annotation>235		<complexType>236			<sequence>237				<element name="returnType">238					<complexType>239						<sequence>240							<element ref="maml:type"/>241							<!-- [gxie] should we reduce this to simple text -->242							<element ref="maml:description"/>243						</sequence>244					</complexType>245				</element>246			</sequence>247			<attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>248		</complexType>249	</element>250	<!-- end returnTypes definition -->251	<!-- commandExceptions definition -->252	<element name="commandExceptions">253		<annotation>254			<documentation>255				The commandExceptions element ...256			</documentation>257		</annotation>258		<complexType>259			<sequence>260				<element name="commandException" type="maml:commandExceptionType" minOccurs="0" maxOccurs="unbounded"/>261			</sequence>262			<attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>263		</complexType>264	</element>265	<!-- end commandExceptions definition -->266	<!-- commandErrors definition -->267	<element name="commandErrors">268		<annotation>269			<documentation>270				The commandErrors element ...271			</documentation>272		</annotation>273		<complexType>274			<sequence>275				<element name="commandError" minOccurs="0" maxOccurs="unbounded">276					<complexType>277						<complexContent>278							<extension base="maml:commandExceptionType"/>279						</complexContent>280					</complexType>281				</element>282			</sequence>283			<attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>284		</complexType>285	</element>286	<!-- end commandErrors definition -->287	<!-- commandExamples definition -->288	<element name="commandExamples">289		<annotation>290			<documentation>291				The commandExamples element ...292			</documentation>293		</annotation>294		<complexType>295			<sequence>296				<element name="commandExample" maxOccurs="unbounded">297					<complexType>298						<complexContent>299							<extension base="maml:codeExampleType"/>300						</complexContent>301					</complexType>302				</element>303			</sequence>304			<attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>305		</complexType>306	</element>307	<!-- end commandExamples definition -->308	<!-- configuration definition -->309	<element name="configuration">310		<annotation>311			<documentation>312				The configuration element ...313			</documentation>314		</annotation>315		<complexType>316			<!-- [gxie] ! this is not defined yet -->317			<sequence/>318			<attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>319		</complexType>320	</element>321	<!-- end configuration definition -->322	<!-- END ELEMENT AND TYPE DECLARATIONS -->323	<!-- GLOBALS -->324	<element name="commandSyntaxParameter">325		<complexType>326			<sequence>327				<element name="commandSyntaxParameterName">328					<complexType>329						<attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>330						<attribute name="required" type="boolean"/>331					</complexType>332				</element>333				<choice>334					<element ref="maml:commandParameterValue"/>335					<element name="commandSyntaxParameterValueGroup">336						<complexType>337							<sequence minOccurs="2" maxOccurs="unbounded">338								<element ref="maml:commandParameterValue"/>339							</sequence>340							<attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>341							<!-- [gxie] ? what is the meaning of required here -->342							<attribute name="required" type="boolean" use="required"/>343						</complexType>344					</element>345				</choice>346			</sequence>347			<attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>348		</complexType>349	</element>350	<element name="commandParameterValue">351		<complexType>352			<attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>353			<!-- [gxie] ? what is the meaning of required here -->354			<attribute name="required" type="boolean" use="required"/>355			<attribute name="variableLength" type="boolean" use="required"/>356			<attribute name="type" use="optional" default="literal">357				<simpleType>358					<restriction base="token">359						<enumeration value="literal"/>360						<!-- [gxie] what is the meaning of placeHolder here -->361						<enumeration value="placeHolder"/>362					</restriction>363				</simpleType>364			</attribute>365		</complexType>366	</element>367	<complexType name="commandExceptionType">368		<sequence>369			<element ref="maml:type"/>370			<!-- [gxie] ? should we reduce this to a simple block of text -->371			<element ref="maml:description"/>372			<element name="message"/>373			<element name="category" minOccurs="0"/>374		</sequence>375	</complexType>376	<!-- END GLOBALS -->377</schema>378