You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dl...@locus.apache.org on 2000/10/16 19:49:48 UTC
cvs commit: xml-xalan/java/samples/SimpleTransform readme.html SimpleTransform.java
dleslie 00/10/16 10:49:45
Modified: java/samples/SimpleTransform SimpleTransform.java
Added: java/samples/SimpleTransform readme.html
Log:
1. Changed FileWriter to FileOutputStream
2. Added readme.html for distribution.
Revision Changes Path
1.3 +2 -2 xml-xalan/java/samples/SimpleTransform/SimpleTransform.java
Index: SimpleTransform.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/samples/SimpleTransform/SimpleTransform.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- SimpleTransform.java 2000/10/13 02:33:04 1.2
+++ SimpleTransform.java 2000/10/16 17:49:41 1.3
@@ -69,7 +69,7 @@
import org.xml.sax.SAXException;
// Imported java classes
-import java.io.FileWriter;
+import java.io.FileOutputStream;
import java.io.IOException;
/**
@@ -104,7 +104,7 @@
// Use the transformer to apply the Templates (StylesheetRoot) object to an XML document
// (foo.xml) and write the output to a file (foo.out).
- transformer.transform(new InputSource("foo.xml"), new Result(new FileWriter("foo.out")));
+ transformer.transform(new InputSource("foo.xml"), new Result(new FileOutputStream("foo.out")));
System.out.println("************* The result is in foo.out *************");
}
1.1 xml-xalan/java/samples/SimpleTransform/readme.html
Index: readme.html
===================================================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Xalan Samples</title>
</head>
<body>
<h2>Xalan Samples</h2>
<p>For information about the samples (what they illustrate and how to run them), see <a href="../../docs/samples.html">Samples</a>.</p>
</body>
</html>