cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ba...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/transformer XalanTransformer.java
Date Fri, 05 May 2000 19:30:42 GMT
balld       00/05/05 12:30:42

  Modified:    src/org/apache/cocoon/transformer XalanTransformer.java
  Log:
  patched parameter input routine according to Scott Boag's recommendation
  
  Revision  Changes    Path
  1.12      +3 -8      xml-cocoon/src/org/apache/cocoon/transformer/XalanTransformer.java
  
  Index: XalanTransformer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/transformer/XalanTransformer.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- XalanTransformer.java	2000/05/05 03:35:14	1.11
  +++ XalanTransformer.java	2000/05/05 19:30:42	1.12
  @@ -1,4 +1,4 @@
  -/*-- $Id: XalanTransformer.java,v 1.11 2000/05/05 03:35:14 balld Exp $ --
  +/*-- $Id: XalanTransformer.java,v 1.12 2000/05/05 19:30:42 balld Exp $ --
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -69,7 +69,7 @@
    * Xalan XSLT processor.
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version $Revision: 1.11 $ $Date: 2000/05/05 03:35:14 $
  + * @version $Revision: 1.12 $ $Date: 2000/05/05 19:30:42 $
    */
   
   public class XalanTransformer extends AbstractActor implements Transformer, Status {
  @@ -90,12 +90,7 @@
           while (enum.hasMoreElements()) {
               String name = (String) enum.nextElement();
   			String value = (String)params.get(name);
  -			if (value.startsWith("'") && value.endsWith("'")) {
  -				value = "\""+value+"\"";
  -			} else {
  -				value = "'"+value+"'";
  -			}
  -           	processor.setStylesheetParam(name,value);
  +           	processor.setStylesheetParam(name,processor.createXString(value));
           }
   
           XSLTInputSource i = new XSLTInputSource(in);
  
  
  

Mime
View raw message