aboutsummaryrefslogtreecommitdiff
path: root/schemas/relaxng/rrdp.rng
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-07-09 05:39:54 +0000
committerRob Austein <sra@hactrn.net>2014-07-09 05:39:54 +0000
commited6e675ccbe2a3e2c57dfb35e4c71684a25110b0 (patch)
treed790587c217adec5327ec42a2e4774e3587de3d7 /schemas/relaxng/rrdp.rng
parent13a65b463cd0acedd3bc36c9437d5ee8b2e26b60 (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.rng37
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: