Changeset 17:02bad17b4590 for šablona/stránka.xsl
- Timestamp:
- 04/30/11 17:06:59 (13 years ago)
- Branch:
- default
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
šablona/stránka.xsl
r16 r17 4 4 xmlns:h="http://www.w3.org/1999/xhtml" 5 5 xmlns:g="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/prostor" 6 xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro" 6 7 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 7 8 xmlns:fn="http://www.w3.org/2005/xpath-functions" 8 9 xmlns:svg="http://www.w3.org/2000/svg" 9 10 xmlns:xs="http://www.w3.org/2001/XMLSchema" 10 exclude-result-prefixes="fn h g xs ">11 exclude-result-prefixes="fn h g xs m"> 11 12 <xsl:output 12 13 method="xml" … … 93 94 <link href="{text()}" type="text/css" rel="StyleSheet" /> 94 95 </xsl:template> 96 97 <!-- 98 Makro pro převod interních odkazů: 99 - doplnění správné přípony 100 - URL kódování znaků 101 --> 102 <xsl:template match="m:a"> 103 <a> 104 <xsl:copy-of select="@*"/> 105 <xsl:attribute name="href"> 106 <xsl:value-of select="fn:encode-for-uri(concat(@href, $výstupníPřípona))"/> 107 </xsl:attribute> 108 <xsl:apply-templates/> 109 </a> 110 </xsl:template> 95 111 96 112 <!-- Ukázka vlastního „makra“: -->