From 2625ea19131d00217a67450aff446ab8731897b5 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 20 Sep 2007 23:42:36 +0000 Subject: Make RelaxNG schemas internal. svn path=/scripts/Makefile; revision=1000 --- scripts/rpki/relaxng.py | 1150 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 1140 insertions(+), 10 deletions(-) (limited to 'scripts/rpki') diff --git a/scripts/rpki/relaxng.py b/scripts/rpki/relaxng.py index ebf78ecd..e43e1bcb 100644 --- a/scripts/rpki/relaxng.py +++ b/scripts/rpki/relaxng.py @@ -1,14 +1,1144 @@ -# $Id$ - -"""Trivial wrapper around lxml.etree.RelaxNG.""" +# Automatically generated, do not edit. import lxml.etree -class RelaxNG(lxml.etree.RelaxNG): - """Minor customizations of lxml.etreeRelaxNG.""" +left_right = lxml.etree.RelaxNG(lxml.etree.fromstring(''' + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + create + + + query + + + + + set + + + query + + + + + get + + + query + + + + + list + + + query + + + + + destroy + + + query + + + + + create + + + reply + + + + + set + + + reply + + + + + get + + + reply + + + + + list + + + reply + + + + + destroy + + + reply + + + + + + 512000 + + + + + + + + + + + + 1024 + + + + + + + yes + + + + + yes + + + + + yes + + + + + yes + + + + + yes + + + + + yes + + + + + + + + + 1024 + + + + 512000 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + yes + + + + rsa + + + + + sha256 + + + + + 2048 + + + + + + yes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + yes + + + + + yes + + + + + yes + + + + + + + + 1024 + + + + + + + 1024 + + + + + + + 1024 + + + + + + + 1024 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + yes + + + + + + + + 1024 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1024 + + + + + + + 1024 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + yes + + + + + + + + 1024 + + + + + + + 1024 + + + + + + + 1024 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + query + + + + + + + + + reply + + + + + + + + + 1024 + + + + + + + + + 1024 + + + + + + + 1024 + + + + + + + 1024 + + + + + + + 1024 + + + + + + + + + + + + + + + + 1024 + + + + + 512000 + + + + + +''')) - def __init__(self, filename): - """ - Initialize a RelaxNG validator from a file. - """ - lxml.etree.RelaxNG.__init__(self, lxml.etree.parse(filename)) +up_down = lxml.etree.RelaxNG(lxml.etree.fromstring(''' + + + + + + + 1 + + + + + 1024 + + + + + 1024 + + + + + + + + list + + + + + + list_response + + + + + + issue + + + + + + issue_response + + + + + + revoke + + + + + + revoke_response + + + + + + error_response + + + + + + + + + + + + + + + + 1024 + + + + + 4096 + + + + + 512000 + [\-,0-9]* + + + + + 512000 + [\-,/.0-9]* + + + + + 512000 + [\-,/:0-9a-fA-F]* + + + + + + 1024 + rsync://.+ + + + + + + + + 4096 + + + + + + 512000 + [\-,0-9]* + + + + + + + 512000 + [\-,/.0-9]* + + + + + + + 512000 + [\-,/:0-9a-fA-F]* + + + + + 512000 + + + + + + 512000 + + + + + + + + + 1024 + + + + + + 512000 + [\-,0-9]* + + + + + + + 512000 + [\-,/.0-9]* + + + + + + + 512000 + [\-,/:0-9a-fA-F]* + + + + + 512000 + + + + + + + + + + + + + + + + + 1024 + + + + + 1024 + + + + + + + + 999999999999999 + + + + + + + + + 1024 + + + + + +''')) -- cgit v1.2.3