diff options
author | Rob Austein <sra@hactrn.net> | 2014-07-09 05:39:54 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-07-09 05:39:54 +0000 |
commit | ed6e675ccbe2a3e2c57dfb35e4c71684a25110b0 (patch) | |
tree | d790587c217adec5327ec42a2e4774e3587de3d7 /schemas/relaxng/rrdp.rng | |
parent | 13a65b463cd0acedd3bc36c9437d5ee8b2e26b60 (diff) |
Add withdrawal hashes to publication and rrdp.
svn path=/branches/tk705/; revision=5888
Diffstat (limited to 'schemas/relaxng/rrdp.rng')
-rw-r--r-- | schemas/relaxng/rrdp.rng | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/schemas/relaxng/rrdp.rng b/schemas/relaxng/rrdp.rng index 197a15b3..27ba741d 100644 --- a/schemas/relaxng/rrdp.rng +++ b/schemas/relaxng/rrdp.rng @@ -124,24 +124,35 @@ <ref name="serial"/> </attribute> <oneOrMore> - <choice> - <element name="publish"> - <attribute name="uri"> - <ref name="uri"/> - </attribute> - <ref name="base64"/> - </element> - <element name="withdraw"> - <attribute name="uri"> - <ref name="uri"/> - </attribute> - </element> - </choice> + <ref name="delta_element"/> </oneOrMore> </element> </oneOrMore> </element> </start> + <define name="delta_element" combine="choice"> + <element name="publish"> + <attribute name="uri"> + <ref name="uri"/> + </attribute> + <optional> + <attribute name="hash"> + <ref name="hash"/> + </attribute> + </optional> + <ref name="base64"/> + </element> + </define> + <define name="delta_element" combine="choice"> + <element name="withdraw"> + <attribute name="uri"> + <ref name="uri"/> + </attribute> + <attribute name="hash"> + <ref name="hash"/> + </attribute> + </element> + </define> </grammar> <!-- Local Variables: |