On 15 Mar 2009, at 14:24, Bernmeister wrote: Hi
<snip />
What I want to do is pass 'apple' via Java, because it may not always be'apple' that I want to test. I have found that if I have in my Java transformer.setParameter( "fruit-name", "apple" ); and my XSLT <xsl:if test="fruit={$fruit-name}"> ...snip... </xsl:if> the test fails.
Provided that you have declared a global xsl:param called 'fruit- name', the following should work:
<xsl:if test="fruit=$fruit-name"> ... </xsl:if> No need to use the curly braces here. HTH! Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
