xml/schema/lib/elements/ipxe.xsd
2020-06-19 18:55:21 -04:00

44 lines
1.6 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:include schemaLocation="../types/unix.xsd"/>
<xs:include schemaLocation="../types/ipxe.xsd"/>
<xs:complexType name="e_ipxe_opts">
<xs:choice minOccurs="1" maxOccurs="2">
<xs:element name="enable" maxOccurs="1">
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="opt" minOccurs="1" type="t_ipxe_patchopt"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="disable" maxOccurs="1">
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="opt" minOccurs="1" type="t_ipxe_patchopt"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
<xs:attribute name="file" type="t_unix_relfilepath" use="required"/>
</xs:complexType>
<xs:complexType name="e_ipxe_optswitch">
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="opts" minOccurs="1" maxOccurs="unbounded" type="e_ipxe_opts"/>
</xs:sequence>
<xs:attribute name="subDir" type="t_unix_reldirpath" use="optional"/>
</xs:complexType>
<xs:complexType name="e_ipxe_patch">
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="patchFile" minOccurs="1" maxOccurs="unbounded" type="t_unix_relfilepath"/>
</xs:sequence>
<xs:attribute name="patchDir" type="t_unix_anydir" use="optional"/>
</xs:complexType>
</xs:schema>