# HG changeset patch # User František Kučera <franta-hg@frantovo.cz> # Date 1301791146 -7200 # Node ID 0a7c6c9357d33886b415f09e3a8d462cc060afe7 # Parent 1bb39595a51cbaa54323235ba63d2f13f8c30ef5 Při kopírování elementů vynecháme nepoužité xmlns deklarace. diff -r 1bb39595a51c -r 0a7c6c9357d3 šablona/stránka.xsl --- 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>