<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="urn:com-bea-ide:document" xmlns="urn:com-bea-ide:document" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified" attributeFormDefault="unqualified">
	<xs:element name="extension-xml">
		<xs:complexType>
			<xs:choice maxOccurs="unbounded">
				<xs:element name="document-handler">
					<xs:complexType>
						<xs:choice minOccurs="0" maxOccurs="unbounded">
							<xs:element name="file-extension" type="file-extensionType"/>
							<xs:element name="create-template">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="description" type="xs:string"/>
									</xs:sequence>
									<xs:attribute name="priority" type="xs:positiveInteger" use="required"/>
									<xs:attribute name="label" type="xs:string"/>
									<xs:attribute name="createCategories" type="xs:string"/>
									<xs:attribute name="id" type="xs:string"/>
								</xs:complexType>
							</xs:element>
							<xs:element name="project-attributes">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="requires" maxOccurs="unbounded">
											<xs:complexType>
												<xs:attribute name="name" type="xs:string" use="required"/>
												<xs:attribute name="value" type="xs:boolean" use="required"/>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:choice>
						<xs:attribute name="class" type="xs:string" use="required"/>
						<xs:attribute name="icon" type="xs:string" use="required"/>
						<xs:attribute name="label" type="xs:string" use="required"/>
					</xs:complexType>
				</xs:element>
				<xs:element name="file-extension" type="file-extensionType"/>
			</xs:choice>
			<xs:attribute name="id" type="xs:string" use="required" fixed="urn:com-bea-ide:document"/>
		</xs:complexType>
	</xs:element>
	<xs:complexType name="file-extensionType">
		<xs:simpleContent>
			<xs:extension base="xs:string">
				<xs:attribute name="priority" use="required">
					<xs:simpleType>
						<xs:restriction base="xs:string">
							<xs:enumeration value="highest"/>
							<xs:enumeration value="high"/>
							<xs:enumeration value="medium"/>
							<xs:enumeration value="low"/>
							<xs:enumeration value="lowest"/>
							<xs:enumeration value="info-only"/>
						</xs:restriction>
					</xs:simpleType>
				</xs:attribute>
				<xs:attribute name="handler" type="xs:string"/>
			</xs:extension>
		</xs:simpleContent>
	</xs:complexType>
</xs:schema>
