You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@apache.org on 2001/01/02 18:56:23 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/transformer TransformerImpl.java
sboag 01/01/02 09:56:23
Modified: java/src/org/apache/xalan/transformer TransformerImpl.java
Log:
Fix bug in setOutputProperty where it was effecting the Templates
properties. This made the harness test fail in several places.
Revision Changes Path
1.70 +6 -1 xml-xalan/java/src/org/apache/xalan/transformer/TransformerImpl.java
Index: TransformerImpl.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/transformer/TransformerImpl.java,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -r1.69 -r1.70
--- TransformerImpl.java 2001/01/02 03:36:52 1.69
+++ TransformerImpl.java 2001/01/02 17:56:19 1.70
@@ -730,7 +730,12 @@
public void setOutputProperty(String name, String value)
throws IllegalArgumentException
{
- m_outputFormat = getOutputFormat();
+ // Get the output format that was set by the user, otherwise get the
+ // output format from the stylesheet.
+ if(null == m_outputFormat)
+ {
+ m_outputFormat = (OutputProperties)getStylesheet().getOutputComposed().clone();
+ }
if(!m_outputFormat.isLegalPropertyKey(name))
throw new IllegalArgumentException("output property not recognized: "+name);