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

Scott Derrick scott at tnstaafl.net
Mon Aug 15 12:17:43 PDT 2011


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?

thanks,

Scott






More information about the talk mailing list