templates/ssm.txt.xsl
branchv_0
changeset 51 21dfb69028a0
parent 49 1dc027689f93
equal deleted inserted replaced
50:1934fc6e5e7b 51:21dfb69028a0
     1 <?xml version="1.0" encoding="UTF-8"?>
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     2 <!--
     3 	Sane Software Manifesto helper tools
     3 	Sane software manifesto helper tools
     4 	Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info)
     4 	Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info)
     5 
     5 
     6     This program is free software: you can redistribute it and/or modify
     6     This program is free software: you can redistribute it and/or modify
     7     it under the terms of the GNU General Public License as published by
     7     it under the terms of the GNU General Public License as published by
     8     the Free Software Foundation, version 3.
     8     the Free Software Foundation, version 3.
    25 	<xsl:import href="common.xsl"/>
    25 	<xsl:import href="common.xsl"/>
    26 	
    26 	
    27 	<xsl:param name="versionTag"/>
    27 	<xsl:param name="versionTag"/>
    28 	<xsl:param name="versionDistance"/>
    28 	<xsl:param name="versionDistance"/>
    29 	<xsl:param name="versionHash"/>
    29 	<xsl:param name="versionHash"/>
       
    30 	<xsl:param name="versionChangedFiles"/>
    30 	
    31 	
    31 	<xsl:output 
    32 	<xsl:output 
    32 		method="text" 
    33 		method="text" 
    33 		encoding="UTF-8"/>
    34 		encoding="UTF-8"/>
    34 		
    35 		
    38 		<xsl:text> ***&#10;&#10;</xsl:text>
    39 		<xsl:text> ***&#10;&#10;</xsl:text>
    39 		<xsl:value-of select="m:preamble"/>
    40 		<xsl:value-of select="m:preamble"/>
    40 		<xsl:text>&#10;&#10;</xsl:text>
    41 		<xsl:text>&#10;&#10;</xsl:text>
    41 		<xsl:apply-templates select="m:chapter"/>
    42 		<xsl:apply-templates select="m:chapter"/>
    42 		
    43 		
    43 		<!-- TODO: move license information to XML file -->
       
    44 		<xsl:text></xsl:text>
    44 		<xsl:text></xsl:text>
    45 		<xsl:text>&#10;&#10;</xsl:text>
    45 		<xsl:text>&#10;&#10;</xsl:text>
    46 		<xsl:text>----------------------------------------------------------------&#10;</xsl:text>
    46 		<xsl:text>----------------------------------------------------------------&#10;</xsl:text>
    47 		<xsl:text>Sane Software Manifesto &lt;https://sane-software.globalcode.info/&gt;&#10;</xsl:text>
    47 		<xsl:value-of select="m:title"/>
    48 		<xsl:text>Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info)&#10;</xsl:text>
    48 		<xsl:text> &lt;</xsl:text>
       
    49 		<xsl:value-of select="m:url"/>
       
    50 		<xsl:text>&gt;&#10;</xsl:text>
       
    51 		<xsl:text>Copyright © 2019 </xsl:text>
       
    52 		<xsl:value-of select="m:author"/>
       
    53 		<xsl:text>&#10;</xsl:text>
    49 		<xsl:text>Version: </xsl:text>
    54 		<xsl:text>Version: </xsl:text>
    50 		<xsl:call-template name="version">
    55 		<xsl:call-template name="version">
    51 			<xsl:with-param name="tag" select="$versionTag"/>
    56 			<xsl:with-param name="tag" select="$versionTag"/>
    52 			<xsl:with-param name="distance" select="$versionDistance"/>
    57 			<xsl:with-param name="distance" select="$versionDistance"/>
    53 			<xsl:with-param name="hash" select="$versionHash"/>
    58 			<xsl:with-param name="hash" select="$versionHash"/>
       
    59 			<xsl:with-param name="changedFiles" select="$versionChangedFiles"/>
    54 		</xsl:call-template>
    60 		</xsl:call-template>
    55 		<xsl:text>&#10;</xsl:text>
    61 		<xsl:text>&#10;</xsl:text>
    56 		<xsl:text>This manifesto is licensed under the Creative Commons Attribution-NoDerivatives 4.0 International License &lt;https://creativecommons.org/licenses/by-nd/4.0/&gt;.&#10;</xsl:text>
    62 		<xsl:value-of select="m:license/m:prefix"/>
       
    63 		<xsl:value-of select="m:license/m:name"/>
       
    64 		<xsl:text> &lt;</xsl:text>
       
    65 		<xsl:value-of select="m:license/m:url"/>
       
    66 		<xsl:text>&gt;</xsl:text>
       
    67 		<xsl:value-of select="m:license/m:suffix"/>
       
    68 		<xsl:text>&#10;</xsl:text>
    57 		<xsl:text>----------------------------------------------------------------&#10;</xsl:text>
    69 		<xsl:text>----------------------------------------------------------------&#10;</xsl:text>
    58 	</xsl:template>
    70 	</xsl:template>
    59 	
    71 	
    60 	
    72 	
    61 	<xsl:template match="m:chapter">
    73 	<xsl:template match="m:chapter">