diff options
author | Rob Austein <sra@hactrn.net> | 2007-10-01 20:22:57 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-10-01 20:22:57 +0000 |
commit | 20f735ac7884111b47bd8ba974ed3e8fd1242e89 (patch) | |
tree | b957f1a784408c57bbb9466f8738b1cb621c9b6f /scripts/rpki/relaxng.py | |
parent | dc31da6d5e3c663e384a058142b920e092730268 (diff) |
Get rid of resource class silliness in left-right protocol.
svn path=/docs/left-right-xml; revision=1067
Diffstat (limited to 'scripts/rpki/relaxng.py')
-rw-r--r-- | scripts/rpki/relaxng.py | 62 |
1 files changed, 29 insertions, 33 deletions
diff --git a/scripts/rpki/relaxng.py b/scripts/rpki/relaxng.py index e43e1bcb..502be9ee 100644 --- a/scripts/rpki/relaxng.py +++ b/scripts/rpki/relaxng.py @@ -4,7 +4,7 @@ import lxml.etree left_right = lxml.etree.RelaxNG(lxml.etree.fromstring('''<?xml version="1.0" encoding="UTF-8"?> <!-- - $Id: left-right-schema.rng 995 2007-09-19 20:42:31Z sra $ + $Id: left-right-schema.rnc 995 2007-09-19 20:42:31Z sra $ RelaxNG (Compact Syntax) Schema for RPKI left-right protocol. @@ -844,38 +844,34 @@ left_right = lxml.etree.RelaxNG(lxml.etree.fromstring('''<?xml version="1.0" enc </data> </attribute> </optional> - <zeroOrMore> - <element name="resource_class"> - <optional> - <attribute name="subject_name"> - <data type="token"> - <param name="maxLength">1024</param> - </data> - </attribute> - </optional> - <optional> - <attribute name="as"> - <data type="token"> - <param name="maxLength">1024</param> - </data> - </attribute> - </optional> - <optional> - <attribute name="ipv4"> - <data type="token"> - <param name="maxLength">1024</param> - </data> - </attribute> - </optional> - <optional> - <attribute name="ipv6"> - <data type="token"> - <param name="maxLength">1024</param> - </data> - </attribute> - </optional> - </element> - </zeroOrMore> + <optional> + <attribute name="subject_name"> + <data type="token"> + <param name="maxLength">1024</param> + </data> + </attribute> + </optional> + <optional> + <attribute name="as"> + <data type="token"> + <param name="maxLength">1024</param> + </data> + </attribute> + </optional> + <optional> + <attribute name="ipv4"> + <data type="token"> + <param name="maxLength">1024</param> + </data> + </attribute> + </optional> + <optional> + <attribute name="ipv6"> + <data type="token"> + <param name="maxLength">1024</param> + </data> + </attribute> + </optional> </group> </choice> </element> |