templates/ssm.odt.xsl
branchv_0
changeset 49 1dc027689f93
parent 36 9e5c3383ba50
child 51 21dfb69028a0
equal deleted inserted replaced
48:904c1827bc38 49:1dc027689f93
    25 	xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0"
    25 	xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0"
    26 	xmlns:m="tag:globalcode.info,2019:sane-software/manifesto"
    26 	xmlns:m="tag:globalcode.info,2019:sane-software/manifesto"
    27 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    27 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    28 	xmlns:fn="http://www.w3.org/2005/xpath-functions"
    28 	xmlns:fn="http://www.w3.org/2005/xpath-functions"
    29 	xmlns:xs="http://www.w3.org/2001/XMLSchema"
    29 	xmlns:xs="http://www.w3.org/2001/XMLSchema"
    30 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    30 	exclude-result-prefixes="fn m xs">
    31 	xsi:schemaLocation="tag:globalcode.info,2019:sane-software/manifesto ssm.xsd"
    31 	
    32 	exclude-result-prefixes="fn m xs xsi">
    32 	<xsl:import href="common.xsl"/>
       
    33 	
       
    34 	<xsl:param name="versionTag"/>
       
    35 	<xsl:param name="versionDistance"/>
       
    36 	<xsl:param name="versionHash"/>
    33 	
    37 	
    34 	<xsl:output 
    38 	<xsl:output 
    35 		method="xml" 
    39 		method="xml" 
    36 		indent="yes" 
    40 		indent="yes" 
    37 		encoding="UTF-8"/>
    41 		encoding="UTF-8"/>
    42 			<office:body>
    46 			<office:body>
    43 				<office:text>
    47 				<office:text>
    44 					<text:p text:style-name="Title">
    48 					<text:p text:style-name="Title">
    45 						<xsl:value-of select="m:title"/>
    49 						<xsl:value-of select="m:title"/>
    46 					</text:p>
    50 					</text:p>
    47 					<!-- TODO: remove hardcoded warning, use version from mercurial -->
    51 					<text:p text:style-name="Subtitle">
    48 					<text:p text:style-name="Subtitle">&lt;DRAFT&gt; Please note that this is a draft version. Stay tuned for v1.0.0! &lt;/DRAFT&gt;</text:p>
    52 						<xsl:call-template name="version">
       
    53 							<xsl:with-param name="tag" select="$versionTag"/>
       
    54 							<xsl:with-param name="distance" select="$versionDistance"/>
       
    55 							<xsl:with-param name="hash" select="$versionHash"/>
       
    56 						</xsl:call-template>
       
    57 					</text:p>
    49 					<text:p text:style-name="Paragraph">
    58 					<text:p text:style-name="Paragraph">
    50 						<xsl:value-of select="m:preamble"/>
    59 						<xsl:value-of select="m:preamble"/>
    51 					</text:p>
    60 					</text:p>
    52 					<xsl:apply-templates select="m:chapter"/>
    61 					<xsl:apply-templates select="m:chapter"/>
    53 				</office:text>
    62 				</office:text>