Project

Profile

Help

Saxon-B 9.1.0.1 (basic) Jar Dependencies

Added by Anonymous about 15 years ago

Legacy ID: #6860594 Legacy Poster: Ken Herdy (ksherdy)

I downloaded saxon-resources9-1-0-1.zip. Saxon-B (9.1.0.1) seems to depend on the following Jar files: ant.jar stax-api-1.0.1.jar dom4j-1.6.1.jar jdom-1.0.jar xom-1.1.jar exist.jar I located each of these Jars online. I downloaded the latest eXist release and installed eXist on my machine but the exist.jar built using 'ant xquery' does not seem to contain all the classes required by Saxon-B. I also tried a previous release of exist (1.2.5) but no luck, it also does not contain all of the required classes. For example, exist.jar does not contain the following classes which are required by Saxon. javax.xml.xquery.XQConstants javax.xml.xquery.XQResultItem What is the correct exist build procedure or Jar to use? I actually do not need xquery functionality so I removed the net.sf.saxon.xqj package from the build and this works. I can also use the Saxon-SA saxon9-xjq.jar since it contains all the required classes but it seems odd for the open source version to depend on a Jar located in the SA version. Any suggestions on how to build the exist.jar file so the correct classes are included? I tried 'ant xquery' but I'm not sure if this is correct or whether a special build to generate the correct exist.jar file is needed.


Replies (2)

RE: Saxon-B 9.1.0.1 (basic) Jar Dependencies - Added by Anonymous about 15 years ago

Legacy ID: #6861116 Legacy Poster: Michael Kay (mhkay)

I'm sorry, I can't advise you on building eXist. That would seem to be a matter for a different forum. It's not clear to me why you need to rebuild the Saxon jars. It's best avoided unless you have a very good reason. A full build of Saxon is rather complex, but the package structure is designed so that you can often get away with building only the parts that you need. For example, if you don't use DOM4J, you don't need to build saxon-dom4j.jar, and you therefore don't need dom4j-1.6.1.jar. Similarly, if you don't need the XQJ API, you don't need to build this package, and this removes the dependency on the XQJ interface definitions. I'm puzzled by your comments about using the Saxon-SA version of saxon9-xqj.jar. This JAR file is distributed with both Saxon-B and Saxon-SA and is identical in both. It's true that this JAR contains the javax.xml.xquery interface package, but I would advise you very strongly to read the licensing terms in JSR 225 before using these class files. Michael Kay http://www.saxonica.com/

RE: Saxon-B 9.1.0.1 (basic) Jar Dependencies - Added by Anonymous about 15 years ago

Legacy ID: #6861140 Legacy Poster: Michael Kay (mhkay)

The other thing to mention is: (a) Saxon does not depend on exist.jar. Don't know where you got that idea from. (b) Saxon's only dependency on ant.jar is in the Saxon ant transform task, which is now a separate product from Saxon proper, and can safely be ignored when building Saxon.

    (1-2/2)

    Please register to reply