cvs commit: cocoon-2.1/src/blocks/webdav/java/org/apache/cocoon/transformation SourcepropsWritingTransformer.java

2003-08-27 Thread stephan
stephan 2003/08/27 01:33:42

  Modified:src/blocks/webdav/java/org/apache/cocoon/transformation
SourcepropsWritingTransformer.java
  Log:
  Fixed typo.
  
  Revision  ChangesPath
  1.2   +2 -2  
cocoon-2.1/src/blocks/webdav/java/org/apache/cocoon/transformation/SourcepropsWritingTransformer.java
  
  Index: SourcepropsWritingTransformer.java
  ===
  RCS file: 
/home/cvs/cocoon-2.1/src/blocks/webdav/java/org/apache/cocoon/transformation/SourcepropsWritingTransformer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SourcepropsWritingTransformer.java22 Aug 2003 13:02:01 -  1.1
  +++ SourcepropsWritingTransformer.java27 Aug 2003 08:33:42 -  1.2
  @@ -79,7 +79,7 @@
* 
lt;source:sourcegt;webdav://localhost/webdav/step1/repo/contentA.xmllt;/source:sourcegt;
* lt;source:prop name=author namespace=metagt;melt;/source:propgt;
* lt;source:prop name=category namespace=metagt;catAlt;/source:propgt;
  - *   lt;/source:writegt;
  + *   lt;/source:patchgt;
*   ...
* lt;/pagegt;
* /pre
  
  
  


cvs commit: cocoon-2.1/src/blocks/webdav/java/org/apache/cocoon/transformation SourcepropsWritingTransformer.java

2003-08-22 Thread gcasper
gcasper 2003/08/22 06:02:01

  Added:   src/blocks/webdav/java/org/apache/cocoon/transformation
SourcepropsWritingTransformer.java
  Log:
  Needed to come up with a sample :-)
  First I wanted to put it into the slide block because that is where
  SourceDescriptionGenerator also resides, but then I noticed that the slide
  block isn't marked unstable.
  
  Revision  ChangesPath
  1.1  
cocoon-2.1/src/blocks/webdav/java/org/apache/cocoon/transformation/SourcepropsWritingTransformer.java
  
  Index: SourcepropsWritingTransformer.java
  ===
  /*
  
   
 The Apache Software License, Version 1.1
   
  
   Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
  
   Redistribution and use in source and binary forms, with or without modifica-
   tion, are permitted provided that the following conditions are met:
  
   1. Redistributions of  source code must  retain the above copyright  notice,
  this list of conditions and the following disclaimer.
  
   2. Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.
  
   3. The end-user documentation included with the redistribution, if any, must
  include  the following  acknowledgment:  This product includes  software
  developed  by the  Apache Software Foundation  (http://www.apache.org/).
  Alternately, this  acknowledgment may  appear in the software itself,  if
  and wherever such third-party acknowledgments normally appear.
  
   4. The names Apache Cocoon and  Apache Software Foundation must  not  be
  used to  endorse or promote  products derived from  this software without
  prior written permission. For written permission, please contact
  [EMAIL PROTECTED]
  
   5. Products  derived from this software may not  be called Apache, nor may
  Apache appear  in their name,  without prior written permission  of the
  Apache Software Foundation.
  
   THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
   INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE
   APACHE SOFTWARE  FOUNDATION  OR ITS CONTRIBUTORS  BE LIABLE FOR  ANY DIRECT,
   INDIRECT, INCIDENTAL, SPECIAL,  EXEMPLARY, OR CONSEQUENTIAL  DAMAGES (INCLU-
   DING, BUT NOT LIMITED TO, PROCUREMENT  OF SUBSTITUTE GOODS OR SERVICES; LOSS
   OF USE, DATA, OR  PROFITS; OR BUSINESS  INTERRUPTION)  HOWEVER CAUSED AND ON
   ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT
   (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF
   THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  
   This software  consists of voluntary contributions made  by many individuals
   on  behalf of the Apache Software  Foundation and was  originally created by
   Stefano Mazzocchi  [EMAIL PROTECTED]. For more  information on the Apache
   Software Foundation, please see http://www.apache.org/.
  
  */
  package org.apache.cocoon.transformation;
  
  import java.io.IOException;
  import java.io.StringReader;
  import java.util.Map;
  import java.util.Vector;
  
  import org.apache.avalon.framework.component.Component;
  import org.apache.avalon.framework.parameters.Parameters;
  import org.apache.cocoon.ProcessingException;
  import org.apache.cocoon.components.source.InspectableSource;
  import org.apache.cocoon.components.source.helpers.SourceProperty;
  import org.apache.cocoon.environment.SourceResolver;
  import org.apache.excalibur.source.Source;
  import org.apache.excalibur.xml.dom.DOMParser;
  import org.w3c.dom.Document;
  import org.xml.sax.Attributes;
  import org.xml.sax.InputSource;
  import org.xml.sax.SAXException;
  
  /**
   * This transformer allows you to set properties on an InspectableSource.
   * 
  * pInput XML document example:/p
   * pre
   * lt;pagegt;
   *   ...
   *   lt;source:patch xmlns:source=http://apache.org/cocoon/propwrite/1.0gt;
   * 
lt;source:sourcegt;webdav://localhost/webdav/step1/repo/contentA.xmllt;/source:sourcegt;
   * lt;source:prop name=author namespace=metagt;melt;/source:propgt;
   * lt;source:prop name=category namespace=metagt;catAlt;/source:propgt;
   *   lt;/source:writegt;
   *   ...
   * lt;/pagegt;
   * /pre
   * 
   * @author a href=mailto:[EMAIL PROTECTED]Guido Casper/a
   * @version CVS $Id: SourcepropsWritingTransformer.java,v 1.1 2003/08/22 13:02:01 
gcasper Exp $
   */
  public class SourcepropsWritingTransformer
  extends AbstractSAXTransformer {
  
  public