sboag 00/12/05 21:53:38
Modified: java/src/org/apache/xalan/lib Redirect.java
Log:
Deleted OutputFormat and OutputFormatExtended in favor of new
OutputProperties class. Default properties are now resource based.
Serializers should be pluggable, though this hasn't been tested.
Entity references are now specified through resources, and a bitmap
is built for fast test to determine special status of character.
indent-amount and URI character escaping can now be controled
via xalan attributes on xsl:output.
Revision Changes Path
1.10 +5 -5 xml-xalan/java/src/org/apache/xalan/lib/Redirect.java
Index: Redirect.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/lib/Redirect.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- Redirect.java 2000/11/13 16:26:37 1.9
+++ Redirect.java 2000/12/06 05:53:38 1.10
@@ -62,11 +62,11 @@
import org.xml.sax.ContentHandler;
-import org.apache.xalan.serialize.OutputFormat;
import org.apache.xalan.extensions.XSLProcessorContext;
import org.apache.xalan.transformer.TransformerImpl;
import org.apache.xalan.templates.StylesheetRoot;
import org.apache.xalan.templates.ElemExtensionCall;
+import org.apache.xalan.templates.OutputProperties;
import org.apache.xalan.res.XSLTErrorResources;
import org.apache.xpath.objects.XObject;
import org.apache.xpath.XPath;
@@ -169,9 +169,9 @@
context.getTransformer());
boolean mkdirs = (mkdirsExpr != null)
? (mkdirsExpr.equals("true") ||
mkdirsExpr.equals("yes")) : true;
- // ContentHandler fl =
- makeFormatterListener(context, elem, fileName, true, mkdirs);
- // fl.startDocument();
+ // ContentHandler fl =
+ makeFormatterListener(context, elem, fileName, true, mkdirs);
+ // fl.startDocument();
}
}
@@ -374,7 +374,7 @@
// This should be worked on so that the output format can be
// defined by a first child of the redirect element.
- OutputFormat format = transformer.getOutputFormat();
+ OutputProperties format = transformer.getOutputFormat();
FileOutputStream ostream = new FileOutputStream(file);