list4xt : Mailing list for the XT users community.
[list4xt] Re: illegal arguments error?
Subject: [list4xt] Re: illegal arguments error?
From: Eric van der Vlist (vdv@dyomedea.com)
Date: 28/05/2001 - 22:23
I am confused by what you are asking ;=) ...
I don't see the set method in the GregorianCalendar of my JDK 1.3.
Furthermore, if you solved this first issue,
<xsl:value-of select="date:get($mygc, Calendar.YEAR)"/>
wouldn't mean what you attempt to express (Calendar.YEAR will be
interpreted as a XPath expression and mean the child elements named
"Calendar.YEAR") and XT doesn't provide any mean to access to
properties.
When you need to access standard Java classes, most of the time it is
much easier to write a wrapper class that will present the datatypes
that XT is expecting.
Hope this helps.
Eric
Graham Stephenson wrote:
>
> Eric,
>
> Thanks for the response. However, when I try to declare a Double object
> like this:
>
> <xsl:variable name="yearInteger" select="d:new(d:Double($year))"/> where
> year is a string, it dies and says "Double: no method with 1 arguments",
> which is clearly not true according to the java docs. Also tried just
> passing in 2000 and got the same error. I haven't tried to do anything with
> it yet, just instantiate it.
>
> (I also added the namespace
> xmlns:d="http://www.jclark.com/xt/java/java.lang.Double" )
>
> Any ideas?
>
> Graham
>
> --
> Mailing list for the XT users community. (http://thesmokeadvisors.com)
> (mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)
--
Pour y voir plus clair dans la nebuleuse XML...
http://dyomedea.com/formation/
------------------------------------------------------------------------
Eric van der Vlist http://ubcbankcard.com - http://highriskmerchant.net
http://cheapestmerchantaccounts.com - http://lakesidecityalliance.org http://ilcollectorsassoc.org
------------------------------------------------------------------------
--
Mailing list for the XT users community. (http://stylustmagazine.com)
(mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)
Archive générée par hypermail 2b28 le 01/06/2001 - 09:01 CEST
webmaster@4xt.org
|