cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/portal/java/org/apache/cocoon/portal/transformation CopletTransformer.java HTMLEventLinkTransformer.java
Date Thu, 01 Apr 2004 10:25:42 GMT
cziegeler    2004/04/01 02:25:42

  Modified:    src/blocks/portal/java/org/apache/cocoon/portal/transformation
                        CopletTransformer.java
                        HTMLEventLinkTransformer.java
  Log:
  Clean up code
  
  Revision  Changes    Path
  1.19      +1 -2      cocoon-2.1/src/blocks/portal/java/org/apache/cocoon/portal/transformation/CopletTransformer.java
  
  Index: CopletTransformer.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/portal/java/org/apache/cocoon/portal/transformation/CopletTransformer.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- CopletTransformer.java	1 Apr 2004 09:36:55 -0000	1.18
  +++ CopletTransformer.java	1 Apr 2004 10:25:41 -0000	1.19
  @@ -28,7 +28,6 @@
   import org.apache.cocoon.portal.event.impl.CopletJXPathEvent;
   import org.apache.cocoon.portal.event.impl.JXPathEvent;
   import org.apache.cocoon.xml.AttributesImpl;
  -import org.apache.cocoon.xml.XMLUtils;
   import org.apache.commons.jxpath.JXPathContext;
   import org.apache.excalibur.xml.sax.XMLizable;
   import org.xml.sax.Attributes;
  
  
  
  1.8       +7 -7      cocoon-2.1/src/blocks/portal/java/org/apache/cocoon/portal/transformation/HTMLEventLinkTransformer.java
  
  Index: HTMLEventLinkTransformer.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/portal/java/org/apache/cocoon/portal/transformation/HTMLEventLinkTransformer.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- HTMLEventLinkTransformer.java	1 Apr 2004 09:36:56 -0000	1.7
  +++ HTMLEventLinkTransformer.java	1 Apr 2004 10:25:42 -0000	1.8
  @@ -66,14 +66,14 @@
       throws SAXException {
           boolean processed = false;
           if ("a".equals(name) ) {
  -            final boolean isRemoteAnchor = this.isRemoteAnchor(name, attr);
  +            final boolean isRemoteAnchor = this.isRemoteAnchor(attr);
               this.stack.push(isRemoteAnchor? Boolean.TRUE: Boolean.FALSE);
               if ( isRemoteAnchor ) {
  -                this.createAnchorEvent(uri, name, raw, attr);
  +                this.createAnchorEvent(attr);
                   processed = true;
               }
           } else if ("form".equals(name) ) {
  -            this.createFormEvent(uri, name, raw, attr);
  +            this.createFormEvent(attr);
               processed = true;
           }
           if ( !processed ) {
  @@ -108,7 +108,7 @@
           }
       }
   
  -    protected void createAnchorEvent(String uri, String name, String raw, Attributes attributes)
  +    protected void createAnchorEvent(Attributes attributes)
       throws SAXException {
           AttributesImpl newAttributes = new AttributesImpl();
           String link = attributes.getValue("href");
  @@ -127,7 +127,7 @@
                                         newAttributes);
       }
   
  -    protected void createFormEvent(String uri, String name, String raw, Attributes attributes)
  +    protected void createFormEvent(Attributes attributes)
       throws SAXException {
           AttributesImpl newAttributes = new AttributesImpl();
           String link = attributes.getValue("action");
  @@ -166,7 +166,7 @@
        * @param attributes the attributes of the element
        * @return true if the href url is an anchor pointing to a remote source
        */
  -    protected boolean isRemoteAnchor(String name, Attributes attributes) {
  +    protected boolean isRemoteAnchor(Attributes attributes) {
           String link = attributes.getValue("href");
   
           // no empty link to current document
  
  
  

Mime
View raw message