--- a/šablona/stránka.xsl Sun Apr 03 01:46:20 2011 +0200
+++ b/šablona/stránka.xsl Sun Apr 03 02:39:06 2011 +0200
@@ -5,6 +5,7 @@
xmlns:g="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/prostor"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fn="http://www.w3.org/2005/xpath-functions"
+ xmlns:svg="http://www.w3.org/2000/svg"
exclude-result-prefixes="fn h g">
<xsl:output
method="xml"
@@ -13,6 +14,7 @@
doctype-public="-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"/>
+ <!-- Celý dokument: -->
<xsl:template match="/">
<html>
<head>
@@ -38,10 +40,12 @@
</html>
</xsl:template>
- <xsl:template match="node()|@*">
- <xsl:copy>
- <xsl:apply-templates select="node()|@*"/>
- </xsl:copy>
- </xsl:template>
+ <!-- Kopírujeme elementy, ale vynecháme nepoužité xmlns deklarace: -->
+ <xsl:template match="*">
+ <xsl:element name="{name()}">
+ <xsl:copy-of select="@*"/>
+ <xsl:apply-templates/>
+ </xsl:element>
+ </xsl:template>
</xsl:stylesheet>