Author: rgardler
Date: Sun Jan  6 14:12:04 2008
New Revision: 609437

URL: http://svn.apache.org/viewvc?rev=609437&view=rev
Log:
Allow attributes with namespaces to pass through

Modified:
    
forrest/trunk/main/webapp/resources/stylesheets/declare-broken-site-links.xsl

Modified: 
forrest/trunk/main/webapp/resources/stylesheets/declare-broken-site-links.xsl
URL: 
http://svn.apache.org/viewvc/forrest/trunk/main/webapp/resources/stylesheets/declare-broken-site-links.xsl?rev=609437&r1=609436&r2=609437&view=diff
==============================================================================
--- 
forrest/trunk/main/webapp/resources/stylesheets/declare-broken-site-links.xsl 
(original)
+++ 
forrest/trunk/main/webapp/resources/stylesheets/declare-broken-site-links.xsl 
Sun Jan  6 14:12:04 2008
@@ -24,20 +24,17 @@
   then excluded by cli.xconf
 -->
 
-<!--  This match needs to cover all namespaces -->
-
   <xsl:template match="@*">
-    <!--  Note this strips namespaces from attributes -->
-    <xsl:attribute name="{local-name(.)}">
       <xsl:choose>
         <xsl:when test="contains(., 'site:') or contains(., 'ext:')">
-          <xsl:value-of select="concat('error:', .)"/>
+          <xsl:attribute name="{name(.)}">
+            <xsl:value-of select="concat('error:', .)"/>
+          </xsl:attribute>
         </xsl:when>
         <xsl:otherwise>
-          <xsl:value-of select="."/>
+          <xsl:copy><xsl:value-of select="."/></xsl:copy>
         </xsl:otherwise>
       </xsl:choose>
-    </xsl:attribute>
   </xsl:template>
   <xsl:template match="/ | * | comment() | processing-instruction() | text()">
     <xsl:copy>