You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by th...@apache.org on 2005/06/13 10:40:37 UTC

svn commit: r190371 - /forrest/trunk/main/webapp/sitemap.xmap /forrest/trunk/main/webapp/skins/common/xslt/html/strip_namespaces.xsl

Author: thorsten
Date: Mon Jun 13 01:40:37 2005
New Revision: 190371

URL: http://svn.apache.org/viewcvs?rev=190371&view=rev
Log:
Fixes FOR-541.

Added:
    forrest/trunk/main/webapp/skins/common/xslt/html/strip_namespaces.xsl   (with props)
Modified:
    forrest/trunk/main/webapp/sitemap.xmap

Modified: forrest/trunk/main/webapp/sitemap.xmap
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/sitemap.xmap?rev=190371&r1=190370&r2=190371&view=diff
==============================================================================
--- forrest/trunk/main/webapp/sitemap.xmap (original)
+++ forrest/trunk/main/webapp/sitemap.xmap Mon Jun 13 01:40:37 2005
@@ -236,6 +236,7 @@
         <map:transform type="i18n">
           <map:parameter name="locale" value="{request:locale}"/>
         </map:transform>
+        <map:transform src="{forrest:context}/skins/common/xslt/html/strip_namespaces.xsl"/>
 
       <map:serialize/>
     </map:resource>

Added: forrest/trunk/main/webapp/skins/common/xslt/html/strip_namespaces.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/common/xslt/html/strip_namespaces.xsl?rev=190371&view=auto
==============================================================================
--- forrest/trunk/main/webapp/skins/common/xslt/html/strip_namespaces.xsl (added)
+++ forrest/trunk/main/webapp/skins/common/xslt/html/strip_namespaces.xsl Mon Jun 13 01:40:37 2005
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+  <xsl:output method="xhtml" version="1.0" encoding="UTF-8" indent="yes"/>
+    <xsl:template match="*">
+      <!-- remove element prefix (if any) -->
+      <xsl:element name="{local-name()}">
+        <!-- process attributes -->
+        <xsl:for-each select="@*">
+          <!-- remove attribute prefix (if any) -->
+          <xsl:attribute name="{local-name()}">
+            <xsl:value-of select="."/>
+          </xsl:attribute>
+        </xsl:for-each>
+        <xsl:apply-templates/>
+      </xsl:element>
+  </xsl:template>
+</xsl:stylesheet>

Propchange: forrest/trunk/main/webapp/skins/common/xslt/html/strip_namespaces.xsl
------------------------------------------------------------------------------
    svn:eol-style = native