templates/ssm.xhtml.xsl
branchv_0
changeset 51 21dfb69028a0
parent 49 1dc027689f93
child 53 f62393f88eab
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.
    29 	<xsl:import href="common.xsl"/>
    29 	<xsl:import href="common.xsl"/>
    30 	
    30 	
    31 	<xsl:param name="versionTag"/>
    31 	<xsl:param name="versionTag"/>
    32 	<xsl:param name="versionDistance"/>
    32 	<xsl:param name="versionDistance"/>
    33 	<xsl:param name="versionHash"/>
    33 	<xsl:param name="versionHash"/>
       
    34 	<xsl:param name="versionChangedFiles"/>
    34 	
    35 	
    35 	<xsl:output 
    36 	<xsl:output 
    36 		method="xml" 
    37 		method="xml" 
    37 		indent="yes" 
    38 		indent="yes" 
    38 		encoding="UTF-8"		
    39 		encoding="UTF-8"		
    56 					<p style="text-align: center">
    57 					<p style="text-align: center">
    57 						<xsl:call-template name="version">
    58 						<xsl:call-template name="version">
    58 							<xsl:with-param name="tag" select="$versionTag"/>
    59 							<xsl:with-param name="tag" select="$versionTag"/>
    59 							<xsl:with-param name="distance" select="$versionDistance"/>
    60 							<xsl:with-param name="distance" select="$versionDistance"/>
    60 							<xsl:with-param name="hash" select="$versionHash"/>
    61 							<xsl:with-param name="hash" select="$versionHash"/>
       
    62 							<xsl:with-param name="changedFiles" select="$versionChangedFiles"/>
    61 						</xsl:call-template>
    63 						</xsl:call-template>
    62 					</p>
    64 					</p>
    63 				
    65 				
    64 					<p>
    66 					<p>
    65 						<xsl:value-of select="m:preamble"/>
    67 						<xsl:value-of select="m:preamble"/>
    66 					</p>
    68 					</p>
    67 				
    69 				
    68 					<xsl:apply-templates select="m:chapter"/>
    70 					<xsl:apply-templates select="m:chapter"/>
    69 				
    71 				
    70 				
       
    71 					<!-- TODO: move license information to XML file -->
       
    72 					<hr/>
    72 					<hr/>
    73 					<p class="footer">
    73 					<p class="footer">
    74 						<a href="https://sane-software.globalcode.info/">Sane Software Manifesto</a>
    74 						<a href="{m:url}">
       
    75 							<xsl:value-of select="m:title"/>
       
    76 						</a>
       
    77 						<!-- TODO: move also mailing list to XML file -->
    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>)
    78 						(<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>)
    76 						other formats: <a href="ssm.en.pdf">PDF</a>, <a href="ssm.en.txt">TXT</a>
    79 						other formats: <a href="ssm.en.pdf">PDF</a>, <a href="ssm.en.txt">TXT</a>
    77 						<br/>
    80 						<br/>
    78 						Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info)<br/>
    81 						Copyright © <xsl:value-of select="m:license/m:year"/>
    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>.
    82 						<xsl:text> </xsl:text>
       
    83 						<xsl:value-of select="m:author"/>
       
    84 						<br/>
       
    85 						<xsl:value-of select="m:license/m:prefix"/> 
       
    86 						<a href="{m:license/m:url}">
       
    87 							<xsl:value-of select="m:license/m:name"/>
       
    88 						</a>
       
    89 						<xsl:value-of select="m:license/m:suffix"/>
    80 					</p>
    90 					</p>
    81 
    91 
    82 				</div>
    92 				</div>
    83 			</body>
    93 			</body>
    84 		</html>
    94 		</html>