<xsl:template match="/">
<!-- 1. Make the connection -->
<xsl:param name="cinfo" select="//DBINFO"/>
<xsl:variable name="DB" select="sql:new($cinfo)"/>
</xsl:template>
</xsl:stylesheet>
The error:
dbinfo.xsl (9, 3)
Exception calling Java extension: java.lang.ClassNotFoundException: http:..xml.apache.org.xalan.sql at com.exln.stylus.CXClassLoader.findClass(CXClassLoader.java:204) at java.lang.ClassLoader.loadClass(Unknown Source) at com.exln.stylus.CXClassLoader.loadClass(CXClassLoader.java:246) at java.lang.ClassLoader.loadClass(Unknown Source)
I have seen someone else use the class name for the xmlns:sql="org.apache.xalan.lib.sql.XConnection" instead of the http address. It seems to like this better but gives this error regarding the new() function:
dbinfo.xsl (11, 3)
Exception calling Java extension: java.lang.NoSuchMethodError: new
I am using the following xml file as database params. I have also set the classpath in the IDE to include the mysql jar as well as xalan.jar, xalanhlp.jar, xercesImpl.jar, and xml-apis.jar.
<?xml version="1.0"?>
<databases>
<DBINFO>
<dbdriver>com.mysql.jdbc.Driver</dbdriver>
<dburl>jdbc:mysql://localhost:3306/jnellis2_db</dburl>
<user>jnellis</user>
<password>werd</password>
</DBINFO>
</databases>
Does anyone have an idea what is wrong? I'm using the 1.5jdk/jre.