View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-cms-site-sample/transformers/stripnamespaces.xsl
Revision: 414
Committed: Fri Dec 9 13:45:01 2005 UTC (14 years, 11 months ago) by nvankampenhout
Content type: application/xml
File size: 724 byte(s)
Error occurred while calculating annotation data.
Log Message:
initial checkin

File Contents

# Content
1 <?xml version="1.0"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
3 <xsl:template match="*" priority="-1">
4 <xsl:choose>
5 <xsl:when test="namespace-uri()=''">
6 <!-- assume if namespace empty, namespace = xhtml -->
7 <xsl:element name="{name()}">
8 <xsl:apply-templates select="@*|node()"/>
9 </xsl:element>
10 </xsl:when>
11 <xsl:otherwise>
12 <xsl:element name="{local-name()}">
13 <xsl:apply-templates select="@*|node()"/>
14 </xsl:element>
15 </xsl:otherwise>
16 </xsl:choose>
17 </xsl:template>
18 <xsl:template match="@*|comment()">
19 <xsl:copy/>
20 </xsl:template>
21 </xsl:stylesheet>