xml/schema/projects/he_ipv6.xsd

46 lines
1.6 KiB
XML
Raw Normal View History

2020-05-11 16:21:22 -04:00
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema targetNamespace="https://tunnelbroker.net/"
xmlns="https://tunnelbroker.net/"
2020-05-14 04:04:48 -04:00
xmlns:heIPv6="https://tunnelbroker.net/"
2020-05-11 16:21:22 -04:00
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:include schemaLocation="../lib/elements/he_ipv6.xsd"/>
<!-- ROOT -->
<xs:element name="heIPv6">
<xs:complexType>
<xs:all>
<xs:element name="creds" minOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="cred" type="e_he_ipv6_cred" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="tunnels" minOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="tunnel" minOccurs="1" maxOccurs="unbounded" type="e_he_ipv6_tunnel">
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:unique name="uniq_tun">
<xs:selector xpath="heIPv6:tunnel"/>
<xs:field xpath="@id"/>
</xs:unique>
</xs:element>
</xs:all>
</xs:complexType>
2020-05-11 16:50:52 -04:00
<!--
I have tried and tried to do document-wide unique constraints of alloc addrs and client addrs etc., but to no avail.
I keep getting e.g.:
Element '{http://www.w3.org/2001/XMLSchema}selector', attribute 'xpath': The XPath expression
'//heIPv6:alloc' could not be compiled.
So it's not idiot-proof.
-->
2020-05-11 16:21:22 -04:00
</xs:element>
</xs:schema>