[xquery-talk] Java throwing java.net.SocketException when parsing xslt file with Saxon?

Andrew Welch 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
> SaxonHE-9.3.0.5
>
> 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"
>      xmlns:html="http://www.w3.org/1999/html"
>      version="2.0">
>
> <xsl:output method="text" encoding="utf-8"/>
>
> </xsl:stylesheet>
>
> 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-9.3.0.5.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.
>
> Error
>  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?


-- 
Andrew Welch
http://andrewjwelch.com



More information about the talk mailing list