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:
parent
53fd01a402
commit
22ffd626ef
29
ryu/lib/netconf/xml.xsd
Normal file
29
ryu/lib/netconf/xml.xsd
Normal 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>
|
Loading…
Reference in New Issue
Block a user