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

Michael Kay mike at saxonica.com
Mon Aug 15 13:58:29 PDT 2011


I can't see why you're raising an XSLT question on this list - 
especially one that is clearly product-specific.

You've asked the same question on the Saxon help list, and I shall 
answer it there.

Michael Kay
Saxonica

On 15/08/2011 20:17, Scott Derrick 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?
>
> thanks,
>
> Scott
>
>
>
>
> _______________________________________________
> talk at x-query.com
> http://x-query.com/mailman/listinfo/talk
>



More information about the talk mailing list