vstup/makra/hg-verze.xsl
changeset 120 4d33f14e99dd
parent 119 eec920c4bddf
child 121 1a32988c4fef
     1.1 --- a/vstup/makra/hg-verze.xsl	Sun Jul 08 12:55:27 2012 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,44 +0,0 @@
     1.4 -<?xml version="1.0" encoding="UTF-8"?>
     1.5 -<xsl:stylesheet version="2.0"
     1.6 -	xmlns="http://www.w3.org/1999/xhtml"
     1.7 -	xmlns:h="http://www.w3.org/1999/xhtml"
     1.8 -	xmlns:s="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana"
     1.9 -	xmlns:k="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/konfigurace"
    1.10 -	xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro"
    1.11 -	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    1.12 -	xmlns:fn="http://www.w3.org/2005/xpath-functions"
    1.13 -	xmlns:svg="http://www.w3.org/2000/svg"
    1.14 -	xmlns:xs="http://www.w3.org/2001/XMLSchema"
    1.15 -	exclude-result-prefixes="fn h s k m xs">
    1.16 -	
    1.17 -	<!-- Vypíše verze z verzovacího systému: -->
    1.18 -	<xsl:template match="m:hg-verze">
    1.19 -
    1.20 -		<xsl:variable name="zadáníSkriptu">
    1.21 -			<m:skript jazyk="bash" výstup="xml">hg log --style xml</m:skript>
    1.22 -		</xsl:variable>
    1.23 -
    1.24 -		<xsl:variable name="výstupSkriptu">
    1.25 -			<xsl:apply-templates select="$zadáníSkriptu/*"/>
    1.26 -		</xsl:variable>
    1.27 -
    1.28 -		<table>
    1.29 -			<thead>
    1.30 -				<tr>
    1.31 -					<td>Číslo verze</td>
    1.32 -					<td>Datum vydání</td>
    1.33 -				</tr>
    1.34 -			</thead>
    1.35 -			<tbody style="text-align: right;">
    1.36 -				<xsl:for-each select="$výstupSkriptu/h:log/h:logentry[h:tag[starts-with(text(), 'v')]]">
    1.37 -					<tr>
    1.38 -						<td><xsl:value-of select="substring(h:tag/text(), 2)"/></td>
    1.39 -						<td><xsl:value-of select="format-dateTime(h:date, '[D]. [M]. [Y0001]')"/></td>
    1.40 -					</tr>
    1.41 -				</xsl:for-each>
    1.42 -			</tbody>
    1.43 -		</table>
    1.44 -	</xsl:template>
    1.45 -
    1.46 -</xsl:stylesheet>
    1.47 -