[xsl] xslt parameters used in custom function

Subject: [xsl] xslt parameters used in custom function
From: Mihai Bucica <misu200@xxxxxxxxx>
Date: Thu, 29 Mar 2007 01:26:45 -0700 (PDT)
Hello all,

 I have an XSLT parameter like:
 <xsl:param name="DateFormat">eeee</xsl:param>

 I'm trying to use this XSLT parameter as a parameter
to my custom class

                 <xsl:value-of     


select="java:x.y.z.convertDate(string(calculationPeriodDates/terminationDate/unadjustedDate),$DateFormat)"
                   
                 />

 But each time I've found out that in z.convertDate
the second parameter i received is '$DateFormat'

 Why is that not 'eeee' (or whatever)?

 I've also tried somenthing like {$DateFormat} or
string($DateFormat) but it doesn't work.

It works to output the param to the result.It's just
that I can't pass the xslt parameter as a parameter to
my custom class. 

I'm using Xalan-Java Version 2.7.0 and Java 1.5

Thanks,
Valentin


 
____________________________________________________________________________________
Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

Current Thread