Changeset 5:0a7c6c9357d3
- Timestamp:
- 04/03/11 02:39:06 (14 years ago)
- Branch:
- default
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
šablona/stránka.xsl
r4 r5 6 6 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 7 7 xmlns:fn="http://www.w3.org/2005/xpath-functions" 8 xmlns:svg="http://www.w3.org/2000/svg" 8 9 exclude-result-prefixes="fn h g"> 9 10 <xsl:output … … 14 15 doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"/> 15 16 17 <!-- Celý dokument: --> 16 18 <xsl:template match="/"> 17 19 <html> … … 39 41 </xsl:template> 40 42 41 <xsl:template match="node()|@*"> 42 <xsl:copy> 43 <xsl:apply-templates select="node()|@*"/> 44 </xsl:copy> 45 </xsl:template> 43 <!-- Kopírujeme elementy, ale vynecháme nepoužité xmlns deklarace: --> 44 <xsl:template match="*"> 45 <xsl:element name="{name()}"> 46 <xsl:copy-of select="@*"/> 47 <xsl:apply-templates/> 48 </xsl:element> 49 </xsl:template> 46 50 47 51 </xsl:stylesheet>