equal
deleted
inserted
replaced
|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <xsl:stylesheet version="2.0" |
|
3 xmlns="http://www.w3.org/1999/xhtml" |
|
4 xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro" |
|
5 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
6 exclude-result-prefixes="m"> |
|
7 |
|
8 <!-- |
|
9 Makro pro převod interních odkazů: |
|
10 - doplnění správné přípony |
|
11 - URL kódování znaků |
|
12 --> |
|
13 <xsl:template match="m:a"> |
|
14 <a> |
|
15 <xsl:copy-of select="@*"/> |
|
16 <xsl:attribute name="href"> |
|
17 <xsl:value-of select="encode-for-uri(concat(@href, $výstupníPřípona))"/> |
|
18 </xsl:attribute> |
|
19 <xsl:apply-templates/> |
|
20 </a> |
|
21 </xsl:template> |
|
22 |
|
23 </xsl:stylesheet> |