2017-03-06 07:32:34 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2017-03-07 18:36:56 -05:00
|
|
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
|
|
targetNamespace="https://aif.square-r00t.net"
|
|
|
|
xmlns="https://aif.square-r00t.net"
|
|
|
|
elementFormDefault="qualified">
|
2017-03-08 05:04:21 -05:00
|
|
|
<!-- GLOBAL CUSTOM DATA TYPES -->
|
2017-03-08 03:41:34 -05:00
|
|
|
<xs:simpleType name="diskdev">
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
<xs:pattern value="^/dev/[A-Za-z_/]+[0-9]+" />
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2017-03-08 05:04:21 -05:00
|
|
|
<xs:simpleType name="diskfmt">
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
<xs:pattern value="(gpt|bios)" />
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
|
|
|
<xs:simpleType name="disksize">
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
<xs:pattern value="^(\+|-)[0-9]+([KMGTP]|%)" />
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
|
|
|
<xs:simpleType name="fstype">
|
|
|
|
<xs:restriction base="xs:token">
|
|
|
|
<xs:pattern value="^[a-z0-9]+$" />
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
<!-- ROOT -->
|
2017-03-07 22:56:37 -05:00
|
|
|
<xs:element name="aif">
|
|
|
|
<xs:complexType>
|
2017-03-08 03:41:34 -05:00
|
|
|
<xs:all>
|
2017-03-08 05:04:21 -05:00
|
|
|
<!-- BEGIN STORAGE -->
|
2017-03-08 03:41:34 -05:00
|
|
|
<xs:element name="storage" minOccurs="1">
|
2017-03-07 22:56:37 -05:00
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
2017-03-08 03:41:34 -05:00
|
|
|
<xs:element name="disk" maxOccurs="unbounded" minOccurs="1">
|
2017-03-07 22:56:37 -05:00
|
|
|
<xs:complexType>
|
2017-03-08 05:04:21 -05:00
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="part" minOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:attribute name="num" type="xs:positiveInteger" />
|
|
|
|
<xs:attribute name="name" type="xs:token" />
|
|
|
|
<xs:attribute name="size" type="disksize" />
|
|
|
|
<xs:attribute name="fstype" type="fstype" />
|
|
|
|
</xs:complexType>
|
|
|
|
<xs:unique name="unique-partnum">
|
|
|
|
<xs:selector xpath="part"/>
|
|
|
|
<xs:field xpath="@num"/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
<xs:attribute name="device" type="diskdev" />
|
|
|
|
<xs:attribute name="diskfmt" type="diskfmt" />
|
2017-03-07 22:56:37 -05:00
|
|
|
</xs:complexType>
|
2017-03-08 05:04:21 -05:00
|
|
|
<xs:unique name="unique-diskdev">
|
|
|
|
<xs:selector xpath="disk"/>
|
|
|
|
<xs:field xpath="@device"/>
|
|
|
|
</xs:unique>
|
2017-03-07 22:56:37 -05:00
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
2017-03-08 05:04:21 -05:00
|
|
|
<!-- END STORAGE -->
|
2017-03-08 03:41:34 -05:00
|
|
|
<!--
|
2017-03-08 05:04:21 -05:00
|
|
|
|
2017-03-07 22:56:37 -05:00
|
|
|
<xs:element ref="mount" maxOccurs="unbounded" minOccurs="1" />
|
|
|
|
<xs:element ref="network" maxOccurs="unbounded" minOccurs="1" />
|
2017-03-08 05:04:21 -05:00
|
|
|
<xs:element ref="scripts" maxOccurs="unbounded" minOccurs="0" />
|
2017-03-08 03:41:34 -05:00
|
|
|
-->
|
|
|
|
</xs:all>
|
|
|
|
</xs:complexType><!--
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element ref="system" maxOccurs="1" minOccurs="1" />
|
|
|
|
<xs:element ref="user" maxOccurs="1" minOccurs="1" />
|
|
|
|
<xs:element ref="pacman" maxOccurs="1" minOccurs="1" />
|
|
|
|
<xs:element ref="bootloader" maxOccurs="1" minOccurs="1" />
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>-->
|
2017-03-07 22:56:37 -05:00
|
|
|
</xs:element>
|
|
|
|
</xs:schema>
|