tdf#143148 Use pragma once instead of include guards
[LibreOffice.git] / schema / libreoffice / OpenDocument-v1.4+libreoffice-dsig-schema.rng
blob7ad488a7f7e9a02b0d66b9c79681b0260cc4b53a
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Open Document Format for Office Applications (OpenDocument) Version 1.4
4 OASIS Standard
5 11 March 2024
6 Copyright (c) OASIS Open 2024. All Rights Reserved.
7 Source: https://docs.oasis-open.org/office/OpenDocument/v1.4/csd01/schemas/
8 Latest stage of specification: https://docs.oasis-open.org/office/OpenDocument/v1.4/OpenDocument-v1.4-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.4
12 Digital Signatures Relax-NG Schema
13 OpenDocument-v1.4-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.4 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.4</rng:value>
58 </rng:attribute>
59 </rng:define>
60 </rng:grammar>