šablona/stránka-společné.xsl
changeset 127 4b02189672db
parent 126 be52f52e7d39
child 131 d47607999a8c
--- a/šablona/stránka-společné.xsl	Sun Jun 23 16:29:22 2013 +0200
+++ b/šablona/stránka-společné.xsl	Sun Jun 23 17:04:52 2013 +0200
@@ -84,6 +84,17 @@
 	<xsl:template match="s:stránka/s:perex">
 		<meta content="{text()}" name="description"/>
 	</xsl:template>
+	<xsl:template match="s:stránka/s:klíčováSlova">
+		<xsl:element name="meta">
+			<xsl:attribute name="content">
+				<xsl:for-each select="s:slovo">
+					<xsl:value-of select="text()"/>
+					<xsl:if test="not(position() = last())">, </xsl:if>
+				</xsl:for-each>
+			</xsl:attribute>
+			<xsl:attribute name="name">keywords</xsl:attribute>
+		</xsl:element>
+	</xsl:template>
 
 	<!--
 		Vloží nečíslovaný seznam obsahující hlavní nabídku webu (seznam stránek)