author | František Kučera <franta-hg@frantovo.cz> |
Fri, 04 Oct 2019 19:40:40 +0200 | |
branch | v_0 |
changeset 49 | 1dc027689f93 |
parent 47 | 7e665331bc32 |
child 51 | 21dfb69028a0 |
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 |
<xsl:stylesheet |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
19 |
version="1.0" |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
20 |
xmlns="http://www.w3.org/1999/xhtml" |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
21 |
xmlns:h="http://www.w3.org/1999/xhtml" |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
22 |
xmlns:m="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
|
23 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
24 |
xmlns:fn="http://www.w3.org/2005/xpath-functions" |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
25 |
xmlns:svg="http://www.w3.org/2000/svg" |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
26 |
xmlns:xs="http://www.w3.org/2001/XMLSchema" |
49
1dc027689f93
print version from Mercurial
František Kučera <franta-hg@frantovo.cz>
parents:
47
diff
changeset
|
27 |
exclude-result-prefixes="fn h m xs"> |
1dc027689f93
print version from Mercurial
František Kučera <franta-hg@frantovo.cz>
parents:
47
diff
changeset
|
28 |
|
1dc027689f93
print version from Mercurial
František Kučera <franta-hg@frantovo.cz>
parents:
47
diff
changeset
|
29 |
<xsl:import href="common.xsl"/> |
1dc027689f93
print version from Mercurial
František Kučera <franta-hg@frantovo.cz>
parents:
47
diff
changeset
|
30 |
|
1dc027689f93
print version from Mercurial
František Kučera <franta-hg@frantovo.cz>
parents:
47
diff
changeset
|
31 |
<xsl:param name="versionTag"/> |
1dc027689f93
print version from Mercurial
František Kučera <franta-hg@frantovo.cz>
parents:
47
diff
changeset
|
32 |
<xsl:param name="versionDistance"/> |
1dc027689f93
print version from Mercurial
František Kučera <franta-hg@frantovo.cz>
parents:
47
diff
changeset
|
33 |
<xsl:param name="versionHash"/> |
15
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 |
<xsl:output |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
36 |
method="xml" |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
37 |
indent="yes" |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
38 |
encoding="UTF-8" |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
39 |
doctype-public="-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
40 |
doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"/> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
41 |
|
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
42 |
<xsl:template match="/m:manifesto"> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
43 |
<html> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
44 |
<head> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
45 |
<title> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
46 |
<xsl:value-of select="m:title"/> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
47 |
</title> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
48 |
<link href="style.css" type="text/css" rel="StyleSheet"/> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
49 |
</head> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
50 |
<body> |
29
5ed5b68408e4
CSS: max-width: 800px; + text-align: justify;
František Kučera <franta-hg@frantovo.cz>
parents:
25
diff
changeset
|
51 |
<div id="content"> |
5ed5b68408e4
CSS: max-width: 800px; + text-align: justify;
František Kučera <franta-hg@frantovo.cz>
parents:
25
diff
changeset
|
52 |
<h1> |
5ed5b68408e4
CSS: max-width: 800px; + text-align: justify;
František Kučera <franta-hg@frantovo.cz>
parents:
25
diff
changeset
|
53 |
<xsl:value-of select="m:title"/> |
5ed5b68408e4
CSS: max-width: 800px; + text-align: justify;
František Kučera <franta-hg@frantovo.cz>
parents:
25
diff
changeset
|
54 |
</h1> |
15
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
55 |
|
49
1dc027689f93
print version from Mercurial
František Kučera <franta-hg@frantovo.cz>
parents:
47
diff
changeset
|
56 |
<p style="text-align: center"> |
1dc027689f93
print version from Mercurial
František Kučera <franta-hg@frantovo.cz>
parents:
47
diff
changeset
|
57 |
<xsl:call-template name="version"> |
1dc027689f93
print version from Mercurial
František Kučera <franta-hg@frantovo.cz>
parents:
47
diff
changeset
|
58 |
<xsl:with-param name="tag" select="$versionTag"/> |
1dc027689f93
print version from Mercurial
František Kučera <franta-hg@frantovo.cz>
parents:
47
diff
changeset
|
59 |
<xsl:with-param name="distance" select="$versionDistance"/> |
1dc027689f93
print version from Mercurial
František Kučera <franta-hg@frantovo.cz>
parents:
47
diff
changeset
|
60 |
<xsl:with-param name="hash" select="$versionHash"/> |
1dc027689f93
print version from Mercurial
František Kučera <franta-hg@frantovo.cz>
parents:
47
diff
changeset
|
61 |
</xsl:call-template> |
1dc027689f93
print version from Mercurial
František Kučera <franta-hg@frantovo.cz>
parents:
47
diff
changeset
|
62 |
</p> |
15
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
63 |
|
29
5ed5b68408e4
CSS: max-width: 800px; + text-align: justify;
František Kučera <franta-hg@frantovo.cz>
parents:
25
diff
changeset
|
64 |
<p> |
5ed5b68408e4
CSS: max-width: 800px; + text-align: justify;
František Kučera <franta-hg@frantovo.cz>
parents:
25
diff
changeset
|
65 |
<xsl:value-of select="m:preamble"/> |
5ed5b68408e4
CSS: max-width: 800px; + text-align: justify;
František Kučera <franta-hg@frantovo.cz>
parents:
25
diff
changeset
|
66 |
</p> |
15
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
67 |
|
29
5ed5b68408e4
CSS: max-width: 800px; + text-align: justify;
František Kučera <franta-hg@frantovo.cz>
parents:
25
diff
changeset
|
68 |
<xsl:apply-templates select="m:chapter"/> |
17
355edb728822
license/copyright footer
František Kučera <franta-hg@frantovo.cz>
parents:
16
diff
changeset
|
69 |
|
355edb728822
license/copyright footer
František Kučera <franta-hg@frantovo.cz>
parents:
16
diff
changeset
|
70 |
|
29
5ed5b68408e4
CSS: max-width: 800px; + text-align: justify;
František Kučera <franta-hg@frantovo.cz>
parents:
25
diff
changeset
|
71 |
<!-- TODO: move license information to XML file --> |
5ed5b68408e4
CSS: max-width: 800px; + text-align: justify;
František Kučera <franta-hg@frantovo.cz>
parents:
25
diff
changeset
|
72 |
<hr/> |
5ed5b68408e4
CSS: max-width: 800px; + text-align: justify;
František Kučera <franta-hg@frantovo.cz>
parents:
25
diff
changeset
|
73 |
<p class="footer"> |
5ed5b68408e4
CSS: max-width: 800px; + text-align: justify;
František Kučera <franta-hg@frantovo.cz>
parents:
25
diff
changeset
|
74 |
<a href="https://sane-software.globalcode.info/">Sane Software Manifesto</a> |
39
07858e00622b
add links to PDF and TXT
František Kučera <franta-hg@frantovo.cz>
parents:
30
diff
changeset
|
75 |
(<a href="https://lists.globalcode.info/mailman3/postorius/lists/sane-software.lists.globalcode.info/">mailing list</a>, <a href="https://globalcode.info/mailing-lists.xhtml">rules</a>) |
07858e00622b
add links to PDF and TXT
František Kučera <franta-hg@frantovo.cz>
parents:
30
diff
changeset
|
76 |
other formats: <a href="ssm.en.pdf">PDF</a>, <a href="ssm.en.txt">TXT</a> |
29
5ed5b68408e4
CSS: max-width: 800px; + text-align: justify;
František Kučera <franta-hg@frantovo.cz>
parents:
25
diff
changeset
|
77 |
<br/> |
5ed5b68408e4
CSS: max-width: 800px; + text-align: justify;
František Kučera <franta-hg@frantovo.cz>
parents:
25
diff
changeset
|
78 |
Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info)<br/> |
5ed5b68408e4
CSS: max-width: 800px; + text-align: justify;
František Kučera <franta-hg@frantovo.cz>
parents:
25
diff
changeset
|
79 |
This manifesto is licensed under the <a href="https://creativecommons.org/licenses/by-nd/4.0/">Creative Commons Attribution-NoDerivatives 4.0 International License</a>. |
5ed5b68408e4
CSS: max-width: 800px; + text-align: justify;
František Kučera <franta-hg@frantovo.cz>
parents:
25
diff
changeset
|
80 |
</p> |
15
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
81 |
|
29
5ed5b68408e4
CSS: max-width: 800px; + text-align: justify;
František Kučera <franta-hg@frantovo.cz>
parents:
25
diff
changeset
|
82 |
</div> |
15
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
83 |
</body> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
84 |
</html> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
85 |
</xsl:template> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
86 |
|
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
87 |
|
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
88 |
<xsl:template match="m:chapter"> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
89 |
<h2> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
90 |
<xsl:value-of select="m:name"/> |
16
131b90c4909e
generate links/anchors so we can link to particular items
František Kučera <franta-hg@frantovo.cz>
parents:
15
diff
changeset
|
91 |
<xsl:text> </xsl:text> |
21 | 92 |
<a href="#{m:id}" id="{m:id}" class="anchor">#</a> |
15
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
93 |
</h2> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
94 |
<ul> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
95 |
<xsl:apply-templates select="m:item"/> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
96 |
</ul> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
97 |
</xsl:template> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
98 |
|
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
99 |
|
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
100 |
<xsl:template match="m:item"> |
47
7e665331bc32
item classification: requirement, recommendation, information
František Kučera <franta-hg@frantovo.cz>
parents:
39
diff
changeset
|
101 |
<li id="{m:id}" class="{m:type}"> |
15
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
102 |
<xsl:apply-templates select="m:text"/> |
16
131b90c4909e
generate links/anchors so we can link to particular items
František Kučera <franta-hg@frantovo.cz>
parents:
15
diff
changeset
|
103 |
<xsl:text> </xsl:text> |
30
841bec790da8
add Sawasdee.woff web font
František Kučera <franta-hg@frantovo.cz>
parents:
29
diff
changeset
|
104 |
<a href="#{m:id}" class="anchor">#</a> |
15
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
105 |
<xsl:if test="m:item"> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
106 |
<ul> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
107 |
<xsl:apply-templates select="m:item"/> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
108 |
</ul> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
109 |
</xsl:if> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
110 |
</li> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
111 |
</xsl:template> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
112 |
|
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
113 |
<xsl:template match="m:text"> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
114 |
<xsl:apply-templates/> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
115 |
<xsl:text> </xsl:text> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
116 |
</xsl:template> |
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
117 |
|
96fc2f42b1e1
conversion to XML format, XSD, XSLT
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
118 |
</xsl:stylesheet> |