Strange -- it should have been there. You can download the two files from:
http://www7.xorsis.com
Thanks,
Toby
Toby --
I did not receive an attachment.
Gary
-----Original Message-----
From: Tobias McNulty [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 26, 2002 12:18 PM
To: Gary L Peskin
Cc: John Capehart
Subject: RE: SQL Extension
Hi Gary,
Thanks for volunteering your help.
Here is a stack trace and the responsible XSL file.
I'm using Xalan-J 2.3.1, just the regular Xalan-J (not XSLTC). I'm
running from the command line with the 'java' command on Windows 2000
Server.
I don't know the rules for posting attachments to the list; if it is
acceptable, do you think you could forward this message to the list?
Thanks,
Toby
>Toby --
>
>I'm afraid the SQL Extension question will have to be answered by
>someone else on the list. However, the Java/XSL language binding
>should be working fine and should not be so "picky". Can you please
>send the stack trace from the original problem along with the XSL
>snippet that generate that problem? If so, I can probably
help. Also,
>please let me know what version of XalanJ you're using.
Also, are you
>using XSLTC or the regular XalanJ? Also, are you running from the
>command line or inside an Application Server or what?
>
>Thanks,
>Gary
>
>> -----Original Message-----
>> From: Tobias McNulty [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, March 26, 2002 11:35 AM
>> To: Gary L Peskin
>> Cc: John Capehart
>> Subject: RE: SQL Extension
>>
>>
>> Gary,
>>
>> I fixed that problem by changing my XSL to look something like:
>>
>> <xsl:stylesheet ... xmlns:bt="com.foo"
>> extension-element-prefixes="bt">
>>
>> <xsl:variable name="avar" select="bt:BindTest.new()"/>
>> <xsl:value-of select="bt:BindTest.myFunc($avar)"/>
>>
>> The Java binding seems to be very picky. I couldn't get
the above
>> method to work for certain members of the SQL Extension
family. In
>> order to access XConnection.query, I had to subclass
XConnection and
>> make query a static method that took an instance variable as an
>> argument (I _thought_ Java binding was supposed to do this
for you
>> automatically, but it doesn't seem to do so in all cases).
>>
>> So I'll ask my original question again: what is the status of the
>> SQL Extension and/or Java/XSL language binding? Are people using
>> it, or is it still in the early stages of development?
>>
>> Much thanks,
>> Toby
>>
>> >Toby --
>> >
>> >Can't help with the sql:new() at the moment. But, what
does your
>> stack >trace look like from the "Instance method call to
method new
>> requires
>> >an Object instance as first argument" message?
>> >
>> >Gary
>> >
>> >> -----Original Message-----
>> >> From: Tobias McNulty [mailto:[EMAIL PROTECTED]
>> >> Sent: Tuesday, March 26, 2002 9:46 AM
>> >> To: [EMAIL PROTECTED]
>> >> Subject: Re: SQL Extension
>> >>
>> >>
>> >> >Is anyone out there using the SQL Extension for Xalan?
>> I am having
>> >> >trouble setting up the XSL to bind to Java objects, and
>> the example
>> >> >doesn't seem to function (I converted it to use the MySQL
>> driver).
>> >> >Does anyone have a working example that I could try? >
>> >> >In my experience, the example XSL usually generates obscure
>> >> >NullPointerExceptions or TransformerExceptions during the
>> >> >transformation.
>> >> >
>> >> >Thanks,
>> >> >Toby
>> >>
>> >> It appears that sql:new(...) is returning null (which I
>> assume is
>> >> because it can't find the driver). The driver has already been
>> >> (successfully) loaded in pure Java code using the raw JDBC
>> >> functions. Any idea what's going on here?
> >> >>
>> >>
>> >> I am also having some trouble calling instance level
>> methods from
>> >> XSL. I create a new variable like so:
>> >>
>> > > <xsl:variable name="avar" select="bt:new()"/>
>> >> <xsl:value-of select="bt:myFunc($avar)"/>
>> >>
>> >> Where myfunc is an instance-level function of the class
>> referenced
>> >> by the bt: namespace:
>> >>
>> >> <xsl:stylesheet ... xmlns:bt="java:com.foo.BindTest"
>> > > extension-element-prefixes="bt">
>> >>
>> >> Xalan gives me the following error:
>> >>
>> >> "Instance method call to method new requires an Object
>> instance as
>> >> first argument"
>> >>
>> >> This would lead me to believe that it's trying to call
> > new() as an
>> >> instance level method, when it is (I _believe_) a
static method
>> (or >> "pseudo" method, in this case). Do I have to define
>> anything on the
>> >> Java side to support the method new()?
>> >>
>> >> Thanks,
>> >> Toby
> >> >>
--
Tobias McNulty
Data Description, Inc.
840 Hanshaw Road, Suite 9
Ithaca, NY 14850
Phone: (607) 257-1000
E-mail: [EMAIL PROTECTED]
Web: www.datadesk.com