xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mor...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/runtime TextOutput.java
Date Tue, 07 Aug 2001 10:19:08 GMT
morten      01/08/07 03:19:08

  Modified:    java/src/org/apache/xalan/xsltc/runtime TextOutput.java
  Log:
  Fix to prevent escaping of attribute values in HTML output.
  PR:		bugzilla 3003
  Obtained from:	n/a
  Submitted by:	morten@xml.apache.org
  Reviewed by:	morten@xml.apache.org
  
  Revision  Changes    Path
  1.16      +5 -2      xml-xalan/java/src/org/apache/xalan/xsltc/runtime/TextOutput.java
  
  Index: TextOutput.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/runtime/TextOutput.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- TextOutput.java	2001/07/30 13:35:41	1.15
  +++ TextOutput.java	2001/08/07 10:19:08	1.16
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: TextOutput.java,v 1.15 2001/07/30 13:35:41 morten Exp $
  + * @(#)$Id: TextOutput.java,v 1.16 2001/08/07 10:19:08 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -527,7 +527,10 @@
   		    namespace(name.substring(6),value);
   	    }
   	    else {
  -		_attributes.add(name,escapeChars(value));
  +		if (_outputType == HTML)
  +		    _attributes.add(name,value);
  +		else
  +		    _attributes.add(name,escapeChars(value));
   	    }
   	}
   	else {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message