xml/schema/std.xsd

43 lines
1.5 KiB
XML
Raw Normal View History

2019-12-08 00:29:43 -05:00
<?xml version="1.0" encoding="UTF-8" ?>
2019-12-08 00:36:53 -05:00
<xs:schema targetNamespace="http://schema.xml.r00t2.io/std.xsd"
xmlns="http://schema.xml.r00t2.io/std.xsd"
xmlns:std="http://schema.xml.r00t2.io/std.xsd"
2019-12-08 00:29:43 -05:00
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="qualified">
<xs:simpleType name="t_UUID4">
<xs:restriction base="xs:token">
<xs:pattern value="[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}"/>
<xs:whiteSpace value="collapse"/>
</xs:restriction>
</xs:simpleType>
2019-12-08 02:07:21 -05:00
<xs:complexType name="t_cmdopts">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="name" use="required" type="xs:token"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="t_epoch_or_iso">
<!-- positiveInteger is used for UNIX Epoch. -->
<xs:union memberTypes="xs:dateTime xs:positiveInteger"/>
</xs:simpleType>
2019-12-08 01:42:33 -05:00
<xs:simpleType name="t_nonempty">
<xs:restriction base="xs:token">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="t_uri">
<xs:restriction base="xs:anyURI">
<xs:pattern value="(https?|ftps?|file)://.+"/>
<xs:whiteSpace value="collapse"/>
</xs:restriction>
</xs:simpleType>
2019-12-08 00:29:43 -05:00
</xs:schema>