tdf#144916: expand range to avoid unwanted effects on viewport edges
[LibreOffice.git] / schema / odf1.3 / OpenDocument-v1.3-dsig-schema.rng
blob954add387957a3b97f49fc38884d8e4774ab5bea
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Open Document Format for Office Applications (OpenDocument) Version 1.3
4 OASIS Standard
5 27 April 2021
6 Copyright (c) OASIS Open 2021. All Rights Reserved.
7 Source: https://docs.oasis-open.org/office/OpenDocument/v1.3/os/schemas/
8 Latest stage of specification: https://docs.oasis-open.org/office/OpenDocument/v1.3/OpenDocument-v1.3-part1-introduction.html
9 TC IPR Statement: https://www.oasis-open.org/committees/office/ipr.php
11 Open Document Format for Office Applications (OpenDocument) Version 1.3
12 Digital Signatures Relax-NG Schema
13 OpenDocument-v1.3-dsig-schema.rng
14 -->
15 <!-- https://issues.oasis-open.org/browse/OFFICE-2153 -->
17 <rng:grammar xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsig="urn:oasis:names:tc:opendocument:xmlns:digitalsignature:1.0" xmlns:rng="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
18 <rng:start>
19 <rng:choice>
20 <rng:ref name="dsig-document-signatures"/>
21 </rng:choice>
22 </rng:start>
23 <rng:define name="ds-signature">
24 <rng:element name="ds:Signature">
25 <!-- The permitted content of this element is the permitted -->
26 <!-- content of the Signature element defined by W3C XML -->
27 <!-- Signature Syntax and Processing (Second Edition). -->
28 <!-- See OpenDocument v1.3 part 2, section 5.3. -->
29 <!-- Office-3874 -->
30 <rng:ref name="dsMarkup"/>
31 </rng:element>
32 </rng:define>
33 <rng:define name="dsMarkup">
34 <rng:zeroOrMore>
35 <rng:choice>
36 <rng:attribute>
37 <rng:anyName/>
38 </rng:attribute>
39 <rng:text/>
40 <rng:element>
41 <rng:anyName/>
42 <rng:ref name="dsMarkup"/>
43 </rng:element>
44 </rng:choice>
45 </rng:zeroOrMore>
46 </rng:define>
47 <rng:define name="dsig-document-signatures">
48 <rng:element name="dsig:document-signatures">
49 <rng:ref name="dsig-document-signatures-attlist"/>
50 <rng:oneOrMore>
51 <rng:ref name="ds-signature"/>
52 </rng:oneOrMore>
53 </rng:element>
54 </rng:define>
55 <rng:define name="dsig-document-signatures-attlist">
56 <rng:attribute name="dsig:version">
57 <rng:value>1.3</rng:value>
58 </rng:attribute>
59 </rng:define>
60 </rng:grammar>