author | František Kučera <franta-hg@frantovo.cz> |
Fri, 20 Sep 2019 23:14:44 +0200 | |
branch | v_0 |
changeset 15 | 96fc2f42b1e1 |
permissions | -rw-r--r-- |
15
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
2 |
<!-- |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
3 |
Sane Software Manifesto helper tools |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
4 |
Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info) |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
5 |
|
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
6 |
This program is free software: you can redistribute it and/or modify |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
7 |
it under the terms of the GNU General Public License as published by |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
8 |
the Free Software Foundation, version 3. |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
9 |
|
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
10 |
This program is distributed in the hope that it will be useful, |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
13 |
GNU General Public License for more details. |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
14 |
|
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
15 |
You should have received a copy of the GNU General Public License |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
16 |
along with this program. If not, see <https://www.gnu.org/licenses/>. |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
17 |
--> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
18 |
<xs:schema xmlns="tag:globalcode.info,2019:sane-software/manifesto" |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
19 |
targetNamespace="tag:globalcode.info,2019:sane-software/manifesto" |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
20 |
xmlns:xs="http://www.w3.org/2001/XMLSchema" |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
21 |
elementFormDefault="qualified" |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
22 |
attributeFormDefault="unqualified"> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
23 |
|
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
24 |
<xs:element name="manifesto" type="Manifesto"/> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
25 |
|
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
26 |
<xs:complexType name="Manifesto"> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
27 |
<xs:sequence> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
28 |
<xs:element name="title" type="xs:string"/> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
29 |
<xs:element name="id" type="ID"/> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
30 |
<xs:element name="preamble" type="xs:string"/> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
31 |
<xs:element name="chapter" type="Chapter" maxOccurs="unbounded"/> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
32 |
</xs:sequence> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
33 |
</xs:complexType> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
34 |
|
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
35 |
<xs:simpleType name="ID"> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
36 |
<xs:annotation> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
37 |
<xs:documentation> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
38 |
UUID, but must start with a letter, to comply with XML ID rules; |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
39 |
use e.g. uuidgen | grep ^[a-f]; |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
40 |
Never reuse the ID if one chapter/item is removed and another with different meaning is added. |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
41 |
</xs:documentation> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
42 |
</xs:annotation> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
43 |
<xs:restriction base="xs:ID"> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
44 |
<xs:pattern value="[a-f][a-f0-9]{7}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"/> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
45 |
</xs:restriction> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
46 |
</xs:simpleType> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
47 |
|
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
48 |
<xs:complexType name="Chapter"> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
49 |
<xs:sequence> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
50 |
<xs:element name="name" type="xs:string"/> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
51 |
<xs:element name="id" type="ID"/> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
52 |
<xs:element name="item" type="Item" maxOccurs="unbounded"/> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
53 |
</xs:sequence> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
54 |
</xs:complexType> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
55 |
|
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
56 |
<xs:complexType name="Item"> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
57 |
<xs:sequence> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
58 |
<xs:element name="id" type="ID"/> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
59 |
<xs:element name="text" type="xs:string" minOccurs="1" maxOccurs="unbounded"/> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
60 |
<xs:element name="note" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
61 |
<xs:element name="item" type="Item" minOccurs="0" maxOccurs="unbounded"/> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
62 |
</xs:sequence> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
63 |
</xs:complexType> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
64 |
|
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
65 |
</xs:schema> |