author | František Kučera <franta-hg@frantovo.cz> |
Thu, 07 Feb 2019 13:08:29 +0100 | |
branch | v_0 |
changeset 246 | fde0cd94fde6 |
parent 173 | d248aa5da038 |
permissions | -rw-r--r-- |
141 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
<xsl:stylesheet version="2.0" |
|
3 |
xmlns="http://www.w3.org/1999/xhtml" |
|
4 |
xmlns:h="http://www.w3.org/1999/xhtml" |
|
5 |
xmlns:s="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana" |
|
6 |
xmlns:k="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/konfigurace" |
|
7 |
xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro" |
|
8 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
9 |
xmlns:fn="http://www.w3.org/2005/xpath-functions" |
|
10 |
xmlns:svg="http://www.w3.org/2000/svg" |
|
11 |
xmlns:xs="http://www.w3.org/2001/XMLSchema" |
|
12 |
exclude-result-prefixes="fn h s k m xs"> |
|
13 |
||
173
d248aa5da038
macro for escaping XML using sed in scripts
František Kučera <franta-hg@frantovo.cz>
parents:
141
diff
changeset
|
14 |
<!-- |
d248aa5da038
macro for escaping XML using sed in scripts
František Kučera <franta-hg@frantovo.cz>
parents:
141
diff
changeset
|
15 |
Should be used as a pipe filter in scripts with výstup="xhtml" |
d248aa5da038
macro for escaping XML using sed in scripts
František Kučera <franta-hg@frantovo.cz>
parents:
141
diff
changeset
|
16 |
--> |
d248aa5da038
macro for escaping XML using sed in scripts
František Kučera <franta-hg@frantovo.cz>
parents:
141
diff
changeset
|
17 |
<xsl:template match="m:escape-xml"><![CDATA[sed -e 's/&/\&/g' -e 's/</\</g' -e 's/>/\>/g' -e 's/"/\"/g' -e "s/'/\\'/g"]]></xsl:template> |
141 | 18 |
|
19 |
</xsl:stylesheet> |
|
20 |