šablona/makra/xmlKomentář.xsl
author František Kučera <franta-hg@frantovo.cz>
Mon, 01 Jul 2013 17:51:42 +0200
changeset 128 7493856248e1
child 136 d5feb9d8ebc3
permissions -rw-r--r--
makro pro XML komentáře
franta-hg@128
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@128
     2
<!--
franta-hg@128
     3
XML Web generátor – program na generování webových stránek
franta-hg@128
     4
Copyright © 2012 František Kučera (frantovo.cz)
franta-hg@128
     5
franta-hg@128
     6
This program is free software: you can redistribute it and/or modify
franta-hg@128
     7
it under the terms of the GNU General Public License as published by
franta-hg@128
     8
the Free Software Foundation, either version 3 of the License, or
franta-hg@128
     9
(at your option) any later version.
franta-hg@128
    10
franta-hg@128
    11
This program is distributed in the hope that it will be useful,
franta-hg@128
    12
but WITHOUT ANY WARRANTY; without even the implied warranty of
franta-hg@128
    13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
franta-hg@128
    14
GNU General Public License for more details.
franta-hg@128
    15
franta-hg@128
    16
You should have received a copy of the GNU General Public License
franta-hg@128
    17
along with this program.  If not, see <http://www.gnu.org/licenses/>.
franta-hg@128
    18
-->
franta-hg@128
    19
<xsl:stylesheet version="2.0"
franta-hg@128
    20
	xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro"
franta-hg@128
    21
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
franta-hg@128
    22
	exclude-result-prefixes="m">
franta-hg@128
    23
franta-hg@128
    24
	<!--
franta-hg@128
    25
		XML komentář
franta-hg@128
    26
		************
franta-hg@128
    27
		vloží XML komentář s mezerami na začátku a na konci
franta-hg@128
    28
	-->
franta-hg@128
    29
	<xsl:template match="m:xmlKomentář">
franta-hg@128
    30
		<xsl:comment>
franta-hg@128
    31
			<xsl:text> </xsl:text>
franta-hg@128
    32
			<xsl:apply-templates/>
franta-hg@128
    33
			<xsl:text> </xsl:text>
franta-hg@128
    34
		</xsl:comment>
franta-hg@128
    35
	</xsl:template>
franta-hg@128
    36
franta-hg@128
    37
</xsl:stylesheet>
franta-hg@128
    38