- Timestamp:
- 2004-01-22T15:18:16+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/util/ApplyXSLT.java
r6572 r6585 71 71 72 72 // Use the Transformer to transform an XML Source and send the output to a Result object 73 StringWriter output = new StringWriter();73 OutputStreamWriter output = new OutputStreamWriter(System.out, "UTF-8"); 74 74 transformer.transform(new StreamSource(xml_in), new StreamResult(output)); 75 System.out.println(output.toString());76 75 } 77 76 catch (TransformerConfigurationException ex) { … … 80 79 System.exit(1); 81 80 } 82 catch ( TransformerException ex) {81 catch (Exception ex) { 83 82 System.err.println("XMLTransformer: couldn't transform the source: " + ex.getMessage()); 84 83 System.exit(1);
Note:
See TracChangeset
for help on using the changeset viewer.