Show
Ignore:
Timestamp:
08/22/11 00:23:38 (13 years ago)
Author:
František Kučera <franta-hg@…>
Branch:
default
Message:

Zvýrazňování syntaxe #12 – začátek.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • šablona/stránka.xsl

    r20 r27  
    66        xmlns:k="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/konfigurace" 
    77        xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro" 
     8        xmlns:j="java:cz.frantovo.xmlWebGenerator.Funkce" 
    89        xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    910        xmlns:fn="http://www.w3.org/2005/xpath-functions" 
    1011        xmlns:svg="http://www.w3.org/2000/svg" 
    1112        xmlns:xs="http://www.w3.org/2001/XMLSchema" 
    12         exclude-result-prefixes="fn h s k m xs"> 
     13        exclude-result-prefixes="fn h s k m j xs"> 
    1314        <xsl:output  
    1415                method="xml"  
     
    113114        </a> 
    114115    </xsl:template> 
     116     
     117    <!-- 
     118        Makro pro zvýraznění syntaxe: 
     119    -->     
     120    <xsl:template match="m:pre[@jazyk]"> 
     121        <xsl:value-of disable-output-escaping="yes" select="j:zvýrazniSyntaxi(text(), @jazyk)"/> 
     122    </xsl:template> 
     123    <xsl:template match="m:pre"> 
     124        <!-- Pokud jazyk uveden není, nic nezvýrazňujeme. --> 
     125        <pre><xsl:apply-templates/></pre>        
     126    </xsl:template> 
     127     
    115128 
    116129</xsl:stylesheet>