Matthijs Wensveen-2 wrote:
> 
> 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 
> 
> 

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.



-- 
View this message in context: 
http://www.nabble.com/xslt-parameters-not-expanded-tf3481119.html#a9728288
Sent from the Xalan - J - Users mailing list archive at Nabble.com.

Reply via email to