xml/schema/projects/he_ipv6.xsd

46 lines
1.6 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema targetNamespace="https://tunnelbroker.net/"
xmlns="https://tunnelbroker.net/"
xmlns:heIPv6="https://tunelbroker.net/"
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>
<!--
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.
-->
</xs:element>
</xs:schema>