relpipe-data/makra/already.xsl
author František Kučera <franta-hg@frantovo.cz>
Fri, 18 Jan 2019 21:34:58 +0100
branchv_0
changeset 241 f71d300205b7
permissions -rw-r--r--
Release v0.9

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://www.w3.org/1999/xhtml"
	xmlns:s="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana"
	xmlns:k="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/konfigurace"
	xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:fn="http://www.w3.org/2005/xpath-functions"
	xmlns:svg="http://www.w3.org/2000/svg"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	exclude-result-prefixes="fn h s k m xs">

	<!--
	<xsl:template match="m:already">
		<span class="already-implemented">
			<xsl:apply-templates/>
			<xsl:if test="@since">
				~ since <xsl:value-of select="@since"/>
			</xsl:if>
		</span>
	</xsl:template>
	-->
	
	<xsl:template match="h:li[@m:since and @m:since ne /s:stránka/m:release/text()]">
		<li class="already-implemented">
			<xsl:apply-templates/>
			~ since <xsl:value-of select="@m:since"/>
		</li>
	</xsl:template>

	<xsl:template match="h:li[@m:since and @m:since eq /s:stránka/m:release/text()]">
		<li>
			<xsl:apply-templates/>
		</li>
	</xsl:template>

		
</xsl:stylesheet>