I have a transform that works fine if I use “call java net.sf.saxon.Transform”, but it emits errors when I use “call java net.sf.saxon.Compile”. What should my next step be?

 

Here’s my session…

 

 

16:02:31.34 $ p5st 2020

 

16:03:34.14 $ call java net.sf.saxon.Transform -o "2020.html" -t "2020.xml" "C:\Documents and Settings\Cary Millsap\My Documents\Software\dev\P5\Profile-xhtml\p5.xsl" "SOFTWARE-HOME=C:\Documents and Settings\Cary Millsap\My Documents\Software\dev"

Saxon 8.3 from Saxonica

Java version 1.5.0_02

Stylesheet compilation time: 3335 milliseconds

Processing file:/C:/Documents%20and%20Settings/Cary%20Millsap/My%20Documents/Software/dev/P5/Test-Data/2020.xml

Building tree for file:/C:/Documents%20and%20Settings/Cary%20Millsap/My%20Documents/Software/dev/P5/Test-Data/2020.xml using class net.sf.saxon.tinytree.TinyBuilder

Tree built in 130 milliseconds

Tree size: 3910 nodes, 14905 characters, 7901 attributes

Building tree for file:///C:/Documents%20and%20Settings/Cary%20Millsap/My%20Documents/Software/dev/P5/config/Profile-XHTML.xml using class net.sf.saxon.tinytree.TinyBuilder

Tree built in 0 milliseconds

Tree size: 112 nodes, 225 characters, 32 attributes

Building tree for file:///C:/Documents%20and%20Settings/Cary%20Millsap/My%20Documents/Software/dev/P5/config/cdefs.xml using class net.sf.saxon.tinytree.TinyBuilder

Tree built in 10 milliseconds

Tree size: 44 nodes, 57 characters, 22 attributes

Execution time: 1522 milliseconds

16:03:41.16 $

16:03:57.95 $

16:03:59.45 $ ..\Profile-XHTML\xsl2sxx

 

16:04:13.33 $ set XSL=C:\Documents and Settings\Cary Millsap\My Documents\Software\dev\P5\Profile-XHTML\p5.xsl

 

16:04:13.33 $ set SXX=C:\Documents and Settings\Cary Millsap\My Documents\Software\dev\P5\bin\Profile-XHTML.sxx

 

16:04:13.33 $ call java net.sf.saxon.Compile -t "C:\Documents and Settings\Cary Millsap\My Documents\Software\dev\P5\Profile-XHTML\p5.xsl" "C:\Documents and Settings\Cary Millsap\My Documents\Software\dev\P5\bin\Profile-XHTML.sxx"

Saxon 8.3 from Saxonica

Java version 1.5.0_02

Stylesheet compilation time: 6249 milliseconds

Serializing compiled stylesheet

java.io.NotSerializableException: net.sf.saxon.om.FastStringBuffer

        at java.io.ObjectOutputStream.writeObject0(Unknown Source)

        at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)

        at java.io.ObjectOutputStream.writeSerialData(Unknown Source)

        at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)

        at java.io.ObjectOutputStream.writeObject0(Unknown Source)

        at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)

        at java.io.ObjectOutputStream.writeSerialData(Unknown Source)

        at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)

        at java.io.ObjectOutputStream.writeObject0(Unknown Source)

        at java.io.ObjectOutputStream.writeObject(Unknown Source)

        at java.util.HashMap.writeObject(Unknown Source)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

        at java.lang.reflect.Method.invoke(Unknown Source)

        at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)

        at java.io.ObjectOutputStream.writeSerialData(Unknown Source)

        at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)

        at java.io.ObjectOutputStream.writeObject0(Unknown Source)

        at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)

        at java.io.ObjectOutputStream.writeSerialData(Unknown Source)

        at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)

        at java.io.ObjectOutputStream.writeObject0(Unknown Source)

        at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)

        at java.io.ObjectOutputStream.writeSerialData(Unknown Source)

        at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)

        at java.io.ObjectOutputStream.writeObject0(Unknown Source)

        at java.io.ObjectOutputStream.writeObject(Unknown Source)

        at net.sf.saxon.Compile.doMain(Compile.java:148)

        at net.sf.saxon.Compile.main(Compile.java:44)

 

16:04:29.23 $

 

Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com
Nullius in verba

Visit www.hotsos.com for curriculum and schedule details...