[xquery-talk] Java throwing java.net.SocketException when parsing xslt file with Saxon?
andrew.j.welch at gmail.com
Mon Aug 15 12:42:58 PDT 2011
On 15 August 2011 20:17, Scott Derrick <scott at tnstaafl.net> wrote:
> Ubuntu 10.4 AMD64
> Java 1.6.0_26
> I am using a very simple script
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> <xsl:output method="text" encoding="utf-8"/>
> To extract text content from html files
> Running this script from within Oxygen, it runs fine and produces the
> expected output.
> Running this script on the same machine form the command line like so
> java -jar lib/saxonHE-188.8.131.52.jar -o:build/etemp/html_1.txt
> -s:build/ebook/epub_sh-tei.html -xsl:xslt/htm2text.xsl
> produces the following error and no output.
> java.net.SocketException: Unexpected end of file from server
> Transformation failed: Run-time errors were reported
> It seems odd that using the same version of Java and Saxon would be fine in
> Oxygen and not on the command line?
hmmm guessing it could be dtd related, perhaps oxygen is using a
cached copy of the xhtml dtd but outside of oxygen the xml parser is
trying to fetch it?
More information about the talk