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 03:35:16 GMT
balld       00/05/04 20:35:15

  Modified:    src/org/apache/cocoon/transformer XalanTransformer.java
  Log:
  Added quoting of parameter values.
  Removed QName check since it needs to be done for Xalan and XT, so we're doing it in the
XSLTProcessor.
  
  Revision  Changes    Path
  1.11      +10 -4     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.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- XalanTransformer.java	2000/03/05 22:24:39	1.10
  +++ XalanTransformer.java	2000/05/05 03:35:14	1.11
  @@ -1,4 +1,4 @@
  -/*-- $Id: XalanTransformer.java,v 1.10 2000/03/05 22:24:39 stefano Exp $ --
  +/*-- $Id: XalanTransformer.java,v 1.11 2000/05/05 03:35:14 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.10 $ $Date: 2000/03/05 22:24:39 $
  + * @version $Revision: 1.11 $ $Date: 2000/05/05 03:35:14 $
    */
   
   public class XalanTransformer extends AbstractActor implements Transformer, Status {
  @@ -89,7 +89,13 @@
           Enumeration enum = params.keys();
           while (enum.hasMoreElements()) {
               String name = (String) enum.nextElement();
  -            processor.setStylesheetParam(name, (String) params.get(name));
  +			String value = (String)params.get(name);
  +			if (value.startsWith("'") && value.endsWith("'")) {
  +				value = "\""+value+"\"";
  +			} else {
  +				value = "'"+value+"'";
  +			}
  +           	processor.setStylesheetParam(name,value);
           }
   
           XSLTInputSource i = new XSLTInputSource(in);
  @@ -146,4 +152,4 @@
               return true;
           }
       }
  -}
  \ No newline at end of file
  +}
  
  
  

Mime
View raw message