Permalink
Browse files

Fix bug where the output format was being specified incorrectly

for text/plain output.
  • Loading branch information...
ndw committed Aug 17, 2014
1 parent e9c16d6 commit 30ad404fa571f1a910cbc4ccb634ea52ac965e86
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/com/xmlcalabash/util/FoAH.java
@@ -11,9 +11,7 @@
import jp.co.antenna.XfoJavaCtl.XfoObj;
import net.sf.saxon.s9api.XdmNode;
-import java.io.ByteArrayInputStream;
-import java.io.OutputStream;
-import java.io.UnsupportedEncodingException;
+import java.io.*;
import java.util.Properties;
/**
@@ -121,7 +119,7 @@ public void format(XdmNode doc, OutputStream out, String contentType) {
} else if ("application/vnd.mif".equals(contentType)) {
outputFormat = "@MIF";
} else if ("text/plain".equals(contentType)) {
- outputFormat = "@TXT";
+ outputFormat = "@TEXT";
} else {
throw new XProcException(step.getNode(), "Unsupported content-type on p:xsl-formatter: " + contentType);
}

0 comments on commit 30ad404

Please sign in to comment.