netconf: import xml schema

This is stolen from flowforwarding enetconf
git://github.com/FlowForwarding/enetconf.git enetconf/priv/xml.xsd

This is a slimmed down version of http://www.w3.org/2001/xml.xsd.
Without this, validator can access to network when loading/validating XML.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Isaku Yamahata 2013-03-07 18:00:41 +09:00 committed by FUJITA Tomonori
parent 53fd01a402
commit 22ffd626ef
1 changed files with 29 additions and 0 deletions

29
ryu/lib/netconf/xml.xsd Normal file
View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en">
<xs:attribute name="lang">
<xs:simpleType>
<xs:union memberTypes="xs:language">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value=""/>
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="space">
<xs:simpleType>
<xs:restriction base="xs:NCName">
<xs:enumeration value="default"/>
<xs:enumeration value="preserve"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="base"
type="xs:anyURI"/>
<xs:attribute name="id"
type="xs:ID"/>
</xs:schema>