xslt parameters not expanded 2007-03-29 - By Matthijs Wensveen
misu200 wrote: > 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. > > Thanks, > Valentin > >
Have you tried just outputting the param to the result, instead of passing it to a function? Does that work? Have you tried <xsl:param name="DateFormat" select="'eee'"/> ? In any case, if you use the body of the param tag as a value, I think you shouldn't quote it.
Matthijs
-- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 4230000 F +31 20 4223500
|
|