diff options
Diffstat (limited to 'rpkid/rpki/relaxng.py')
-rw-r--r-- | rpkid/rpki/relaxng.py | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/rpkid/rpki/relaxng.py b/rpkid/rpki/relaxng.py index cc93facf..866cdba1 100644 --- a/rpkid/rpki/relaxng.py +++ b/rpkid/rpki/relaxng.py @@ -1215,7 +1215,7 @@ up_down = lxml.etree.RelaxNG(lxml.etree.fromstring('''<?xml version="1.0" encodi ## Parsed RelaxNG publication schema publication = lxml.etree.RelaxNG(lxml.etree.fromstring('''<?xml version="1.0" encoding="UTF-8"?> <!-- - $Id: publication-schema.rnc 1808 2008-05-22 04:55:02Z sra $ + $Id: publication-schema.rnc 1810 2008-05-22 14:46:48Z sra $ RelaxNG Schema for RPKI publication protocol. @@ -1805,6 +1805,23 @@ publication = lxml.etree.RelaxNG(lxml.etree.fromstring('''<?xml version="1.0" en <param name="maxLength">1024</param> </data> </define> + <!-- any = element * { (attribute * { text } | text | any*)* } --> + <define name="any"> + <element> + <anyName/> + <zeroOrMore> + <attribute> + <anyName/> + </attribute> + </zeroOrMore> + <choice> + <text/> + <zeroOrMore> + <ref name="any"/> + </zeroOrMore> + </choice> + </element> + </define> <define name="report_error_reply"> <element name="report_error"> <optional> @@ -1814,9 +1831,12 @@ publication = lxml.etree.RelaxNG(lxml.etree.fromstring('''<?xml version="1.0" en <ref name="error"/> </attribute> <optional> - <data type="string"> - <param name="maxLength">512000</param> - </data> + <choice> + <text/> + <zeroOrMore> + <ref name="any"/> + </zeroOrMore> + </choice> </optional> </element> </define> |