so we need a separate XSD since we're probably going to validate against specific tunnels.
can i make tunnelbroker.xsd reference tunnelbroker.tun.xsd?
This commit is contained in:
parent
648be9b2c4
commit
ea829884f0
39
schema/projects/tunnelbroker.tun.xsd
Normal file
39
schema/projects/tunnelbroker.tun.xsd
Normal file
@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<xs:schema targetNamespace="https://tunnelbroker.net/tunnelInfo.php?tid"
|
||||
xmlns="https://tunnelbroker.net/tunnelInfo.php?tid"
|
||||
xmlns:tunnel="https://tunnelbroker.net/tunnelInfo.php?tid"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
elementFormDefault="qualified"
|
||||
attributeFormDefault="unqualified">
|
||||
|
||||
<xs:include schemaLocation="../lib/types/net.xsd"/>
|
||||
<xs:include schemaLocation="../lib/types/std.xsd"/>
|
||||
|
||||
<!-- ROOT -->
|
||||
<xs:element name="tunnel">
|
||||
<xs:complexType>
|
||||
<xs:all minOccurs="1" maxOccurs="1">
|
||||
<xs:element name="description" type="xs:string" minOccurs="1" maxOccurs="1"/>
|
||||
<xs:element name="serverv4" type="t_net_addr_ip4" minOccurs="1" maxOccurs="1"/>
|
||||
<xs:element name="clientv4" type="t_net_addr_ip4" minOccurs="1" maxOccurs="1"/>
|
||||
<xs:element name="serverv6" type="t_net_addr_ip6" minOccurs="1" maxOccurs="1"/>
|
||||
<xs:element name="clientv6" type="t_net_addr_ip6" minOccurs="1" maxOccurs="1"/>
|
||||
<xs:element name="routed64" type="t_net_qualified_addr_ip6" minOccurs="1" maxOccurs="1"/>
|
||||
<xs:element name="routed48" type="t_net_qualified_addr_ip6" minOccurs="0" maxOccurs="1"/>
|
||||
<!--
|
||||
FYI, these are FQDNs... but it's more or less impossible to validate through XSD so we let code do that.
|
||||
-->
|
||||
<!-- BEGIN THE FUCKERY. -->
|
||||
<xs:element name="rdns1" type="t_std_nonempty" minOccurs="0" maxOccurs="1"/>
|
||||
<xs:element name="rdns2" type="t_std_nonempty" minOccurs="0" maxOccurs="1"/>
|
||||
<xs:element name="rdns3" type="t_std_nonempty" minOccurs="0" maxOccurs="1"/>
|
||||
<xs:element name="rdns4" type="t_std_nonempty" minOccurs="0" maxOccurs="1"/>
|
||||
<xs:element name="rdns5" type="t_std_nonempty" minOccurs="0" maxOccurs="1"/>
|
||||
<!-- END THE FUCKERY. -->
|
||||
</xs:all>
|
||||
<xs:attribute name="id" type="xs:positiveInteger" use="required"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
|
||||
</xs:schema>
|
Loading…
Reference in New Issue
Block a user