šablona/makra.xsl
changeset 87 25dec6931f18
parent 61 9503eb8377f1
equal deleted inserted replaced
86:3136e1ad9a5b 87:25dec6931f18
    19 <xsl:stylesheet version="2.0"
    19 <xsl:stylesheet version="2.0"
    20 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    20 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    21 	xmlns:XSL="http://example.com/XSL">
    21 	xmlns:XSL="http://example.com/XSL">
    22 	<xsl:output	method="xml" indent="yes" encoding="UTF-8" />
    22 	<xsl:output	method="xml" indent="yes" encoding="UTF-8" />
    23 	<xsl:namespace-alias stylesheet-prefix="XSL" result-prefix="xsl"/>
    23 	<xsl:namespace-alias stylesheet-prefix="XSL" result-prefix="xsl"/>
    24 	
    24 
    25 	<xsl:template match="/">
    25 	<xsl:template match="/">
    26 		<XSL:stylesheet version="2.0">
    26 		<XSL:stylesheet version="2.0">
    27 		<xsl:text>
    27 		<xsl:text>
    28 </xsl:text>
    28 </xsl:text>
    29 		<xsl:comment>
    29 		<xsl:comment>
    30 	Tento seznam maker je automaticky generovaný.
    30 	Tento seznam maker je automaticky generovaný.
    31 	Neupravujte ho ručně – smažte ho a použijte příkaz „ant makra“.
    31 	Neupravujte ho ručně – smažte ho a použijte příkaz „ant makra“.
    32 </xsl:comment>
    32 </xsl:comment>
    33 		<xsl:text>
    33 		<xsl:text>
    34    </xsl:text>
    34 	</xsl:text>
    35 			<!-- Makra dodávaná jako součást programu: -->
    35 			<!-- Makra dodávaná jako součást programu: -->
    36 			<xsl:for-each select="collection('./makra/?select=*.xsl')">
    36 			<xsl:for-each select="collection('./makra/?select=*.xsl')">
    37 				<XSL:include href="{document-uri(.)}"/>
    37 				<XSL:include href="{document-uri(.)}"/>
    38 			</xsl:for-each>
    38 			</xsl:for-each>
    39 			
    39 
    40 			<!-- Uživatelská makra: -->
    40 			<!-- Uživatelská makra: -->
    41 			<xsl:for-each select="collection('../vstup/makra/?select=*.xsl')">
    41 			<xsl:for-each select="collection('../vstup/makra/?select=*.xsl')">
    42 				<XSL:include href="{document-uri(.)}"/>
    42 				<XSL:include href="{document-uri(.)}"/>
    43 			</xsl:for-each>
    43 			</xsl:for-each>
    44 		</XSL:stylesheet>
    44 		</XSL:stylesheet>
    45 	</xsl:template>
    45 	</xsl:template>
    46 	
    46 
    47 </xsl:stylesheet>
    47 </xsl:stylesheet>
       
    48