1.1 --- a/šablona/stránka.xsl Wed Jul 06 18:54:11 2011 +0200
1.2 +++ b/šablona/stránka.xsl Mon Aug 22 00:23:38 2011 +0200
1.3 @@ -5,11 +5,12 @@
1.4 xmlns:s="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana"
1.5 xmlns:k="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/konfigurace"
1.6 xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro"
1.7 + xmlns:j="java:cz.frantovo.xmlWebGenerator.Funkce"
1.8 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
1.9 xmlns:fn="http://www.w3.org/2005/xpath-functions"
1.10 xmlns:svg="http://www.w3.org/2000/svg"
1.11 xmlns:xs="http://www.w3.org/2001/XMLSchema"
1.12 - exclude-result-prefixes="fn h s k m xs">
1.13 + exclude-result-prefixes="fn h s k m j xs">
1.14 <xsl:output
1.15 method="xml"
1.16 indent="yes"
1.17 @@ -112,5 +113,17 @@
1.18 <xsl:apply-templates/>
1.19 </a>
1.20 </xsl:template>
1.21 +
1.22 + <!--
1.23 + Makro pro zvýraznění syntaxe:
1.24 + -->
1.25 + <xsl:template match="m:pre[@jazyk]">
1.26 + <xsl:value-of disable-output-escaping="yes" select="j:zvýrazniSyntaxi(text(), @jazyk)"/>
1.27 + </xsl:template>
1.28 + <xsl:template match="m:pre">
1.29 + <!-- Pokud jazyk uveden není, nic nezvýrazňujeme. -->
1.30 + <pre><xsl:apply-templates/></pre>
1.31 + </xsl:template>
1.32 +
1.33
1.34 </xsl:stylesheet>