cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r934575 - /cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/LinkRewriterTransformer.java
Date Thu, 15 Apr 2010 20:05:10 GMT
Author: simonetripodi
Date: Thu Apr 15 20:05:09 2010
New Revision: 934575

URL: http://svn.apache.org/viewvc?rev=934575&view=rev
Log:
processed element local name and not qualified name

Modified:
    cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/LinkRewriterTransformer.java

Modified: cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/LinkRewriterTransformer.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/LinkRewriterTransformer.java?rev=934575&r1=934574&r2=934575&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/LinkRewriterTransformer.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/LinkRewriterTransformer.java
Thu Apr 15 20:05:09 2010
@@ -45,15 +45,11 @@ public class LinkRewriterTransformer ext
     public void startElement(String uri, String localName, String name, Attributes atts)
             throws SAXException {
 
-        if (log.isDebugEnabled()) {
-            log.debug("Processing ("
+        if (this.log.isDebugEnabled()) {
+            this.log.debug("Processing element (namespace="
                     + uri
-                    + ","
+                    + ", name="
                     + localName
-                    + ","
-                    + name
-                    + ","
-                    + atts
                     + ")");
         }
 
@@ -64,10 +60,14 @@ public class LinkRewriterTransformer ext
             attributeNamespace = atts.getURI(i);
             attributeName = atts.getLocalName(i);
             if (this.log.isDebugEnabled()) {
-                this.log.debug("Examining attribute " + attributeName);
+                this.log.debug("Processing attribute ( namepsace="
+                        + attributeNamespace
+                        + ", name="
+                        + attributeName
+                        + ")");
             }
 
-            if (this.toRewrite.contains(uri, name, attributeNamespace, attributeName)) {
+            if (this.toRewrite.contains(uri, localName, attributeNamespace, attributeName))
{
                 if (this.log.isDebugEnabled()) {
                     this.log.debug("Element has attributes to rewrite");
                 }
@@ -78,7 +78,7 @@ public class LinkRewriterTransformer ext
                     ((AttributesImpl) atts).setValue(i,
                             this.linkRewriter.rewrite(uri, name, attributeNamespace, attributeName,
attributeValue));
                 } catch (LinkRewritingException e) {
-                    this.log.error("While rewriting link '"
+                    this.log.error("An error occurred while rewriting link '"
                             + attributeValue
                             + "' ("
                             + name
@@ -90,14 +90,10 @@ public class LinkRewriterTransformer ext
         }
 
         if (this.log.isDebugEnabled()) {
-            this.log.debug("Finished processing ("
+            this.log.debug("Finished processing (namespace="
                     + uri
-                    + ","
+                    + ", name="
                     + localName
-                    + ","
-                    + name
-                    + ","
-                    + atts
                     + ")");
         }
 



Mime
View raw message