diff options
-rw-r--r-- | docs/left-right-xml | 4 | ||||
-rw-r--r-- | scripts/left-right-schema.rnc | 23 |
2 files changed, 15 insertions, 12 deletions
diff --git a/docs/left-right-xml b/docs/left-right-xml index ce41ff1d..9a141d5e 100644 --- a/docs/left-right-xml +++ b/docs/left-right-xml @@ -7,14 +7,14 @@ <completely_gratuitous_wrapper_element_to_let_me_run_this_through_xmllint> <msg version="1" xmlns="http://www.hactrn.net/uris/rpki/left-right-spec/"> - <self action="create" type="query"> + <self action="create" type="query" tag="a000"> <extension_preference name="name">Launcelot</extension_preference> <extension_preference name="quest">Holy Grail</extension_preference> </self> </msg> <msg version="1" xmlns="http://www.hactrn.net/uris/rpki/left-right-spec/"> - <self action="create" type="reply" self_id="42"/> + <self action="create" type="reply" tag="a000" self_id="42"/> </msg> <msg version="1" xmlns="http://www.hactrn.net/uris/rpki/left-right-spec/"> diff --git a/scripts/left-right-schema.rnc b/scripts/left-right-schema.rnc index 903c2995..068634c7 100644 --- a/scripts/left-right-schema.rnc +++ b/scripts/left-right-schema.rnc @@ -15,19 +15,22 @@ start = element msg { list_resources_elt | report_error_elt )* } +# Tag attributes for bulk operations +tag = attribute tag { xsd:token {maxLength="1024" } }? + # Combinations of action and type attributes used in later definitions. # The same patterns repeat in most of the elements in this protocol. -ctl_cq = attribute action { "create" }, attribute type { "query" } -ctl_sq = attribute action { "set" }, attribute type { "query" } -ctl_gq = attribute action { "get" }, attribute type { "query" } -ctl_lq = attribute action { "list" }, attribute type { "query" } -ctl_dq = attribute action { "destroy" }, attribute type { "query" } -ctl_cr = attribute action { "create" }, attribute type { "reply" } -ctl_sr = attribute action { "set" }, attribute type { "reply" } -ctl_gr = attribute action { "get" }, attribute type { "reply" } -ctl_lr = attribute action { "list" }, attribute type { "reply" } -ctl_dr = attribute action { "destroy" }, attribute type { "reply" } +ctl_cq = attribute action { "create" }, attribute type { "query" }, tag +ctl_sq = attribute action { "set" }, attribute type { "query" }, tag +ctl_gq = attribute action { "get" }, attribute type { "query" }, tag +ctl_lq = attribute action { "list" }, attribute type { "query" }, tag +ctl_dq = attribute action { "destroy" }, attribute type { "query" }, tag +ctl_cr = attribute action { "create" }, attribute type { "reply" }, tag +ctl_sr = attribute action { "set" }, attribute type { "reply" }, tag +ctl_gr = attribute action { "get" }, attribute type { "reply" }, tag +ctl_lr = attribute action { "list" }, attribute type { "reply" }, tag +ctl_dr = attribute action { "destroy" }, attribute type { "reply" }, tag # Base64 encoded DER stuff base64 = xsd:base64Binary { maxLength="512000" } |