18 <xsl:stylesheet |
18 <xsl:stylesheet |
19 version="1.0" |
19 version="1.0" |
20 xmlns:m="tag:globalcode.info,2019:sane-software/manifesto" |
20 xmlns:m="tag:globalcode.info,2019:sane-software/manifesto" |
21 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
21 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
22 xmlns:fn="http://www.w3.org/2005/xpath-functions" |
22 xmlns:fn="http://www.w3.org/2005/xpath-functions" |
23 xmlns:xs="http://www.w3.org/2001/XMLSchema" |
23 xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
24 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
24 |
25 xsi:schemaLocation="tag:globalcode.info,2019:sane-software/manifesto ssm.xsd"> |
25 <xsl:import href="common.xsl"/> |
|
26 |
|
27 <xsl:param name="versionTag"/> |
|
28 <xsl:param name="versionDistance"/> |
|
29 <xsl:param name="versionHash"/> |
26 |
30 |
27 <xsl:output |
31 <xsl:output |
28 method="text" |
32 method="text" |
29 encoding="UTF-8"/> |
33 encoding="UTF-8"/> |
30 |
34 |
31 <xsl:template match="/m:manifesto"> |
35 <xsl:template match="/m:manifesto"> |
32 <xsl:text> *** </xsl:text> |
36 <xsl:text> *** </xsl:text> |
33 <xsl:value-of select="m:title"/> |
37 <xsl:value-of select="m:title"/> |
34 <xsl:text> *** </xsl:text> |
38 <xsl:text> *** </xsl:text> |
35 <!-- TODO: version and draft warning --> |
|
36 <xsl:value-of select="m:preamble"/> |
39 <xsl:value-of select="m:preamble"/> |
37 <xsl:text> </xsl:text> |
40 <xsl:text> </xsl:text> |
38 <xsl:apply-templates select="m:chapter"/> |
41 <xsl:apply-templates select="m:chapter"/> |
39 |
42 |
40 <!-- TODO: move license information to XML file --> |
43 <!-- TODO: move license information to XML file --> |
41 <xsl:text></xsl:text> |
44 <xsl:text></xsl:text> |
42 <xsl:text> </xsl:text> |
45 <xsl:text> </xsl:text> |
43 <xsl:text>---------------------------------------------------------------- </xsl:text> |
46 <xsl:text>---------------------------------------------------------------- </xsl:text> |
44 <xsl:text>Sane Software Manifesto <https://sane-software.globalcode.info/> </xsl:text> |
47 <xsl:text>Sane Software Manifesto <https://sane-software.globalcode.info/> </xsl:text> |
45 <xsl:text>Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info) </xsl:text> |
48 <xsl:text>Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info) </xsl:text> |
|
49 <xsl:text>Version: </xsl:text> |
|
50 <xsl:call-template name="version"> |
|
51 <xsl:with-param name="tag" select="$versionTag"/> |
|
52 <xsl:with-param name="distance" select="$versionDistance"/> |
|
53 <xsl:with-param name="hash" select="$versionHash"/> |
|
54 </xsl:call-template> |
|
55 <xsl:text> </xsl:text> |
46 <xsl:text>This manifesto is licensed under the Creative Commons Attribution-NoDerivatives 4.0 International License <https://creativecommons.org/licenses/by-nd/4.0/>. </xsl:text> |
56 <xsl:text>This manifesto is licensed under the Creative Commons Attribution-NoDerivatives 4.0 International License <https://creativecommons.org/licenses/by-nd/4.0/>. </xsl:text> |
47 <xsl:text>---------------------------------------------------------------- </xsl:text> |
57 <xsl:text>---------------------------------------------------------------- </xsl:text> |
48 </xsl:template> |
58 </xsl:template> |
49 |
59 |
50 |
60 |