šablona/makra.xsl
author František Kučera <franta-hg@frantovo.cz>
Thu, 24 Oct 2019 22:06:44 +0200
changeset 136 d5feb9d8ebc3
parent 87 25dec6931f18
permissions -rw-r--r--
fix license version: GNU GPLv3
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     3 XML Web generátor – program na generování webových stránek
     4 Copyright © 2012 František Kučera (frantovo.cz)
     5 
     6 This program is free software: you can redistribute it and/or modify
     7 it under the terms of the GNU General Public License as published by
     8 the Free Software Foundation, version 3 of the License.
     9 
    10 This program is distributed in the hope that it will be useful,
    11 but WITHOUT ANY WARRANTY; without even the implied warranty of
    12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13 GNU General Public License for more details.
    14 
    15 You should have received a copy of the GNU General Public License
    16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    17 -->
    18 <xsl:stylesheet version="2.0"
    19 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    20 	xmlns:XSL="http://example.com/XSL">
    21 	<xsl:output	method="xml" indent="yes" encoding="UTF-8" />
    22 	<xsl:namespace-alias stylesheet-prefix="XSL" result-prefix="xsl"/>
    23 
    24 	<xsl:template match="/">
    25 		<XSL:stylesheet version="2.0">
    26 		<xsl:text>
    27 </xsl:text>
    28 		<xsl:comment>
    29 	Tento seznam maker je automaticky generovaný.
    30 	Neupravujte ho ručně – smažte ho a použijte příkaz „ant makra“.
    31 </xsl:comment>
    32 		<xsl:text>
    33 	</xsl:text>
    34 			<!-- Makra dodávaná jako součást programu: -->
    35 			<xsl:for-each select="collection('./makra/?select=*.xsl')">
    36 				<XSL:include href="{document-uri(.)}"/>
    37 			</xsl:for-each>
    38 
    39 			<!-- Uživatelská makra: -->
    40 			<xsl:for-each select="collection('../vstup/makra/?select=*.xsl')">
    41 				<XSL:include href="{document-uri(.)}"/>
    42 			</xsl:for-each>
    43 		</XSL:stylesheet>
    44 	</xsl:template>
    45 
    46 </xsl:stylesheet>
    47