[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

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- -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?



More information about the talk mailing list