# HG changeset patch # User František Kučera <franta-hg@frantovo.cz> # Date 1372693902 -7200 # Node ID 7493856248e168b4469d03ca211f81ff8803e765 # Parent 4b02189672db460735772b765b0fb3ba221179db makro pro XML komentáře diff -r 4b02189672db -r 7493856248e1 ukázka/kontakt.xml --- a/ukázka/kontakt.xml Sun Jun 23 17:04:52 2013 +0200 +++ b/ukázka/kontakt.xml Mon Jul 01 17:51:42 2013 +0200 @@ -37,6 +37,8 @@ reditel -> root; </m:diagram> + <m:xmlKomentář>organizační struktury bývají někdy tajemné</m:xmlKomentář> + <h2>Procesy</h2> <p> diff -r 4b02189672db -r 7493856248e1 šablona/makra/xmlKomentář.xsl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/šablona/makra/xmlKomentář.xsl Mon Jul 01 17:51:42 2013 +0200 @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +XML Web generátor – program na generování webových stránek +Copyright © 2012 František Kučera (frantovo.cz) + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +--> +<xsl:stylesheet version="2.0" + xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + exclude-result-prefixes="m"> + + <!-- + XML komentář + ************ + vloží XML komentář s mezerami na začátku a na konci + --> + <xsl:template match="m:xmlKomentář"> + <xsl:comment> + <xsl:text> </xsl:text> + <xsl:apply-templates/> + <xsl:text> </xsl:text> + </xsl:comment> + </xsl:template> + +</xsl:stylesheet> +