preload: cleanup disabled messages and simplify flow.
[LibreOffice.git] / schema / odf1.2 / OpenDocument-v1.2-os-dsig-schema.rng
blobbaab69981e8d20aff0cdce45c5e486f503089fe9
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Open Document Format for Office Applications (OpenDocument) Version 1.2
4 OASIS Standard, 29 September 2011
5 Digital Signatures Relax-NG Schema
6 Source: http://docs.oasis-open.org/office/v1.2/os/
7 Copyright (c) OASIS Open 2002-2011. All Rights Reserved.
9 All capitalized terms in the following text have the meanings assigned to them
10 in the OASIS Intellectual Property Rights Policy (the "OASIS IPR Policy"). The
11 full Policy may be found at the OASIS website.
13 This document and translations of it may be copied and furnished to others, and
14 derivative works that comment on or otherwise explain it or assist in its
15 implementation may be prepared, copied, published, and distributed, in whole or
16 in part, without restriction of any kind, provided that the above copyright
17 notice and this section are included on all such copies and derivative works.
18 However, this document itself may not be modified in any way, including by
19 removing the copyright notice or references to OASIS, except as needed for the
20 purpose of developing any document or deliverable produced by an OASIS
21 Technical Committee (in which case the rules applicable to copyrights, as set
22 forth in the OASIS IPR Policy, must be followed) or as required to translate it
23 into languages other than English.
25 The limited permissions granted above are perpetual and will not be revoked by
26 OASIS or its successors or assigns.
28 This document and the information contained herein is provided on an "AS IS"
29 basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT
30 LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT
31 INFRINGE ANY OWNERSHIP RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
32 FITNESS FOR A PARTICULAR PURPOSE.
33 -->
35 <grammar
36 xmlns="http://relaxng.org/ns/structure/1.0"
38 datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
40 xmlns:dsig="urn:oasis:names:tc:opendocument:xmlns:digitalsignature:1.0"
41 xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
43 <start>
44 <choice>
45 <ref name="dsig-document-signatures"/>
46 </choice>
47 </start>
48 <define name="dsig-document-signatures">
49 <element name="dsig:document-signatures">
50 <ref name="dsig-document-signatures-attlist"/>
51 <oneOrMore>
52 <ref name="ds-signature"/>
53 </oneOrMore>
54 </element>
55 </define>
56 <define name="dsig-document-signatures-attlist">
57 <attribute name="dsig:version">
58 <value>1.2</value>
59 </attribute>
60 </define>
61 <define name="ds-signature">
62 <element name="ds:Signature">
63 <!-- The permitted content of this element is the permitted -->
64 <!-- content of the Signature element defined by W3C XML -->
65 <!-- Signature Syntax and Processing (Second Edition). -->
66 <!-- See OpenDocument v1.2 part 3, section 4.3. -->
67 <ref name="dsMarkup"/>
68 </element>
69 </define>
70 <define name="dsMarkup">
71 <zeroOrMore>
72 <choice>
73 <attribute>
74 <anyName/>
75 </attribute>
76 <text/>
77 <element>
78 <anyName/>
79 <ref name="dsMarkup"/>
80 </element>
81 </choice>
82 </zeroOrMore>
83 </define>
84 </grammar>