You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2001/10/01 15:37:24 UTC

cvs commit: xml-cocoon2/src/org/apache/cocoon/xml/xlink ExtendedXLinkPipe.java

cziegeler    01/10/01 06:37:24

  Modified:    src/org/apache/cocoon/xml/xlink ExtendedXLinkPipe.java
  Log:
  Added background attribute
  
  Revision  Changes    Path
  1.4       +8 -1      xml-cocoon2/src/org/apache/cocoon/xml/xlink/ExtendedXLinkPipe.java
  
  Index: ExtendedXLinkPipe.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/xml/xlink/ExtendedXLinkPipe.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ExtendedXLinkPipe.java	2001/08/21 21:12:15	1.3
  +++ ExtendedXLinkPipe.java	2001/10/01 13:37:24	1.4
  @@ -26,7 +26,7 @@
    * be a way to remove this, that will be a happy day for XML and for Cocoon too.
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version CVS $Revision: 1.3 $ $Date: 2001/08/21 21:12:15 $
  + * @version CVS $Revision: 1.4 $ $Date: 2001/10/01 13:37:24 $
    */
   
   public abstract class ExtendedXLinkPipe extends XLinkPipe {
  @@ -47,6 +47,11 @@
               return;
           }
   
  +        String background = attr.getValue(uri, "background");
  +        if (background != null) {
  +            simpleLink(background, null, null, null, null, null, uri, name, raw, attr);
  +            return;
  +        }
           super.startElement(uri, name, raw, attr);
       }
   
  @@ -56,6 +61,8 @@
           if (hrefIndex > -1) newattr.setValue(hrefIndex, href);
           int srcIndex = attr.getIndex(uri, "src");
           if (srcIndex > -1) newattr.setValue(srcIndex, href);
  +        int backgroundIndex = attr.getIndex(uri, "background");
  +        if (backgroundIndex > -1) newattr.setValue(backgroundIndex, href);
           super.startElement(uri, name, raw, newattr);
       }
   }
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org