Thanks Adam,
Here are some notes about my various attempts.
First try: running the bin/transform.sh in http-client-saxon-1.2.5-SNAPSHOT-dir, As I understand it, this adds all the necessary jars to the classpath for me.
command:
bin/transform.sh -config:config.xml -s:xslt/test.xml -xsl:xslt/http-test.xsl -o:xslt/output.xml
error:
Exception in thread "main" java.lang.RuntimeException: java.lang.ClassNotFoundException: com.saxonica.config.ProfessionalConfiguration
at net.sf.saxon.Configuration.makeLicensedConfiguration(Configuration.java:536)
at net.sf.saxon.trans.ConfigurationReader.startElement(ConfigurationReader.java:219)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:379)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:605)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3138)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:880)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:649)
at net.sf.saxon.trans.ConfigurationReader.makeConfiguration(ConfigurationReader.java:148)
at net.sf.saxon.Configuration.readConfigurationFile(Configuration.java:458)
at net.sf.saxon.Configuration.readConfiguration(Configuration.java:378)
at net.sf.saxon.Transform.doTransform(Transform.java:301)
at net.sf.saxon.Transform.main(Transform.java:82)
Caused by: java.lang.ClassNotFoundException: com.saxonica.config.ProfessionalConfiguration
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at net.sf.saxon.Configuration.instantiateConfiguration(Configuration.java:425)
at net.sf.saxon.Configuration.makeLicensedConfiguration(Configuration.java:534)
... 19 more
Second try: run the transform using the 'uber.jar' with saxon HE, same error as above, so I tried running the 'uber jar' with saxon EE
command: java -cp http-client-saxon-uber.jar:saxon9ee.jar net.sf.saxon.Transform -config:config.xml -s:../xslt/test.xml -xsl:../xslt/http-test.xsl -o:../xslt/test2.xml
error:
Looking for function Q{
http://expath.org/ns/http-client}send-request#1Trying com.saxonica.functions.registry.XSLT30HOFunctionSet
Trying net.sf.saxon.style.StylesheetFunctionLibrary
Trying net.sf.saxon.functions.FunctionLibraryList
Looking for function Q{
http://expath.org/ns/http-client}send-request#1Trying com.saxonica.functions.extfn.VendorFunctionSetPE
Trying net.sf.saxon.functions.MathFunctionSet
Trying net.sf.saxon.ma.map.MapFunctionSet
Trying net.sf.saxon.ma.arrays.ArrayFunctionSet
Trying net.sf.saxon.functions.registry.ExsltCommonFunctionSet
Trying com.saxonica.functions.extfn.EXPathFileFunctionSet
Trying net.sf.saxon.functions.registry.OnDemandFunctionSet
Function Q{
http://expath.org/ns/http-client}send-request not found!
Trying net.sf.saxon.functions.registry.ConstructorFunctionLibrary
Trying net.sf.saxon.query.XQueryFunctionLibrary
Trying net.sf.saxon.functions.IntegratedFunctionLibrary
Exception in thread "main" java.lang.NoSuchFieldError: SINGLE_ELEMENT_NODE
at org.expath.httpclient.saxon.SendRequestFunction.getArgumentTypes(SendRequestFunction.java:91)
at net.sf.saxon.functions.IntegratedFunctionCall.checkArguments(IntegratedFunctionCall.java:100)
at net.sf.saxon.expr.FunctionCall.typeCheck(FunctionCall.java:170)
at net.sf.saxon.functions.IntegratedFunctionCall.typeCheck(IntegratedFunctionCall.java:133)
at net.sf.saxon.style.StyleElement.typeCheck(StyleElement.java:1555)
at net.sf.saxon.style.XSLCopyOf.validate(XSLCopyOf.java:116)
at net.sf.saxon.style.StyleElement.validateSubtree(StyleElement.java:1744)
at net.sf.saxon.style.StyleElement.validateChildren(StyleElement.java:1779)
at net.sf.saxon.style.StyleElement.validateSubtree(StyleElement.java:1748)
at net.sf.saxon.style.XSLTemplate.validateSubtree(XSLTemplate.java:595)
at net.sf.saxon.style.PrincipalStylesheetModule.preprocess(PrincipalStylesheetModule.java:404)
at net.sf.saxon.style.Compilation.compilePackage(Compilation.java:287)
at net.sf.saxon.style.StylesheetModule.loadStylesheet(StylesheetModule.java:223)
at net.sf.saxon.style.Compilation.compileSingletonPackage(Compilation.java:107)
at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:788)
at net.sf.saxon.Transform.doTransform(Transform.java:741)
at net.sf.saxon.Transform.main(Transform.java:80)
Third try: running the bin/transform.sh in http-client-saxon-1.2.5-SNAPSHOT-dir but change saxon to EE version. (update transform.sh to reflect this change)
error (same as above):
Looking for function Q{http://expath.org/ns/http-client}send-request#1
Trying com.saxonica.functions.registry.XSLT30HOFunctionSet
Trying net.sf.saxon.style.StylesheetFunctionLibrary
Trying net.sf.saxon.functions.FunctionLibraryList
Looking for function Q{http://expath.org/ns/http-client}send-request#1
Trying com.saxonica.functions.extfn.VendorFunctionSetPE
Trying net.sf.saxon.functions.MathFunctionSet
Trying net.sf.saxon.ma.map.MapFunctionSet
Trying net.sf.saxon.ma.arrays.ArrayFunctionSet
Trying net.sf.saxon.functions.registry.ExsltCommonFunctionSet
Trying com.saxonica.functions.extfn.EXPathFileFunctionSet
Trying net.sf.saxon.functions.registry.OnDemandFunctionSet
Function Q{http://expath.org/ns/http-client}send-request not found!
Trying net.sf.saxon.functions.registry.ConstructorFunctionLibrary
Trying net.sf.saxon.query.XQueryFunctionLibrary
Trying net.sf.saxon.functions.IntegratedFunctionLibrary
Exception in thread "main" java.lang.NoSuchFieldError: SINGLE_ELEMENT_NODE
at org.expath.httpclient.saxon.SendRequestFunction.getArgumentTypes(SendRequestFunction.java:91)
at net.sf.saxon.functions.IntegratedFunctionCall.checkArguments(IntegratedFunctionCall.java:100)
at net.sf.saxon.expr.FunctionCall.typeCheck(FunctionCall.java:170)
at net.sf.saxon.functions.IntegratedFunctionCall.typeCheck(IntegratedFunctionCall.java:133)
at net.sf.saxon.style.StyleElement.typeCheck(StyleElement.java:1555)
at net.sf.saxon.style.XSLCopyOf.validate(XSLCopyOf.java:116)
at net.sf.saxon.style.StyleElement.validateSubtree(StyleElement.java:1744)
at net.sf.saxon.style.StyleElement.validateChildren(StyleElement.java:1779)
at net.sf.saxon.style.StyleElement.validateSubtree(StyleElement.java:1748)
at net.sf.saxon.style.XSLTemplate.validateSubtree(XSLTemplate.java:595)
at net.sf.saxon.style.PrincipalStylesheetModule.preprocess(PrincipalStylesheetModule.java:404)
at net.sf.saxon.style.Compilation.compilePackage(Compilation.java:287)
at net.sf.saxon.style.StylesheetModule.loadStylesheet(StylesheetModule.java:223)
at net.sf.saxon.style.Compilation.compileSingletonPackage(Compilation.java:107)
at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:788)
at net.sf.saxon.Transform.doTransform(Transform.java:741)
at net.sf.saxon.Transform.main(Transform.java:80)
I also tried running this in oXygen by adding the http-client-saxon/target/http-client-saxon-1.2.5-SNAPSHOT-uber.jar and the config.xml file and running Saxon EE. I received this error:
error:
java.lang.NoSuchFieldError: SINGLE_ELEMENT_NODE
at org.expath.httpclient.saxon.SendRequestFunction.getArgumentTypes(SendRequestFunction.java:91)
at net.sf.saxon.functions.IntegratedFunctionCall.checkArguments(IntegratedFunctionCall.java:98)
at net.sf.saxon.expr.FunctionCall.typeCheck(FunctionCall.java:174)
at net.sf.saxon.functions.IntegratedFunctionCall.typeCheck(IntegratedFunctionCall.java:131)
at net.sf.saxon.style.StyleElement.typeCheck(StyleElement.java:1576)
at net.sf.saxon.style.XSLCopyOf.validate(XSLCopyOf.java:116)
at net.sf.saxon.style.StyleElement.validateSubtree(StyleElement.java:1771)
at net.sf.saxon.style.StyleElement.validateChildren(StyleElement.java:1806)
at net.sf.saxon.style.StyleElement.validateSubtree(StyleElement.java:1775)
at net.sf.saxon.style.XSLTemplate.validateSubtree(XSLTemplate.java:593)
at net.sf.saxon.style.PrincipalStylesheetModule.preprocess(PrincipalStylesheetModule.java:429)
at net.sf.saxon.style.Compilation.compilePackage(Compilation.java:288)
at net.sf.saxon.style.StylesheetModule.loadStylesheet(StylesheetModule.java:258)
at net.sf.saxon.style.Compilation.compileSingletonPackage(Compilation.java:106)
at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:739)
at net.sf.saxon.jaxp.SaxonTransformerFactory.newTemplates(SaxonTransformerFactory.java:186)
at net.sf.saxon.jaxp.SaxonTransformerFactory.newTransformer(SaxonTransformerFactory.java:142)
at ro.sync.xml.transformer.c.r(Unknown Source)
at ro.sync.xml.transformer.c.y(Unknown Source)
at ro.sync.xml.transformer.c.j(Unknown Source)
at ro.sync.xml.transformer.c.ub(Unknown Source)
at ro.sync.xml.transformer.c.jb(Unknown Source)
at ro.sync.exml.editor.xmleditor.gc.guk(Unknown Source)
at ro.sync.exml.editor.xmleditor.gc.etk(Unknown Source)
at ro.sync.exml.editor.xmleditor.gc$4.dxd(Unknown Source)
at ro.sync.ui.application.mb.run(Unknown Source)
Thanks for the help!
-Winona