xsl-list
[Top] [All Lists]

[xsl] xslt parameters used in custom function

2007-03-29 01:48:57
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>
  • [xsl] xslt parameters used in custom function, Mihai Bucica <=