mouse-data/makra/escape-xml.xsl
author František Kučera <franta-hg@frantovo.cz>
Thu, 30 Jul 2020 02:13:42 +0200
branchv_0
changeset 142 de98ccaff37f
parent 137 8e583c8df660
permissions -rw-r--r--
contact: update links
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
137
8e583c8df660 cadMousePro, Spacenav Demo, Spacenav Simulator, Spacenav Hack
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
8e583c8df660 cadMousePro, Spacenav Demo, Spacenav Simulator, Spacenav Hack
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     2
<xsl:stylesheet version="2.0"
8e583c8df660 cadMousePro, Spacenav Demo, Spacenav Simulator, Spacenav Hack
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     3
	xmlns="http://www.w3.org/1999/xhtml"
8e583c8df660 cadMousePro, Spacenav Demo, Spacenav Simulator, Spacenav Hack
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     4
	xmlns:h="http://www.w3.org/1999/xhtml"
8e583c8df660 cadMousePro, Spacenav Demo, Spacenav Simulator, Spacenav Hack
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     5
	xmlns:s="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana"
8e583c8df660 cadMousePro, Spacenav Demo, Spacenav Simulator, Spacenav Hack
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     6
	xmlns:k="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/konfigurace"
8e583c8df660 cadMousePro, Spacenav Demo, Spacenav Simulator, Spacenav Hack
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     7
	xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro"
8e583c8df660 cadMousePro, Spacenav Demo, Spacenav Simulator, Spacenav Hack
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8e583c8df660 cadMousePro, Spacenav Demo, Spacenav Simulator, Spacenav Hack
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
	xmlns:fn="http://www.w3.org/2005/xpath-functions"
8e583c8df660 cadMousePro, Spacenav Demo, Spacenav Simulator, Spacenav Hack
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    10
	xmlns:svg="http://www.w3.org/2000/svg"
8e583c8df660 cadMousePro, Spacenav Demo, Spacenav Simulator, Spacenav Hack
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    11
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
8e583c8df660 cadMousePro, Spacenav Demo, Spacenav Simulator, Spacenav Hack
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    12
	exclude-result-prefixes="fn h s k m xs">
8e583c8df660 cadMousePro, Spacenav Demo, Spacenav Simulator, Spacenav Hack
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    13
8e583c8df660 cadMousePro, Spacenav Demo, Spacenav Simulator, Spacenav Hack
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    14
	<!--
8e583c8df660 cadMousePro, Spacenav Demo, Spacenav Simulator, Spacenav Hack
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    15
		Should be used as a pipe filter in scripts with výstup="xhtml"
8e583c8df660 cadMousePro, Spacenav Demo, Spacenav Simulator, Spacenav Hack
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    16
	-->
8e583c8df660 cadMousePro, Spacenav Demo, Spacenav Simulator, Spacenav Hack
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    17
	<xsl:template match="m:escape-xml"><![CDATA[sed -e 's/&/\&amp;/g' -e 's/</\&lt;/g' -e 's/>/\&gt;/g' -e 's/"/\&quot;/g' -e "s/'/\\&apos;/g"]]></xsl:template>
8e583c8df660 cadMousePro, Spacenav Demo, Spacenav Simulator, Spacenav Hack
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    18
8e583c8df660 cadMousePro, Spacenav Demo, Spacenav Simulator, Spacenav Hack
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    19
</xsl:stylesheet>
8e583c8df660 cadMousePro, Spacenav Demo, Spacenav Simulator, Spacenav Hack
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    20