Altova Mailing List Archives>Archive Index >xml-dev Archive Home >Recent entries >Thread Prev - Xsl:when - Can I pass Conditions at runtime? [Thread Next] Re: [xml-dev] Xsl:when - Can I pass Conditions at runtime?To: Date: 3/1/2007 9:37:00 AM On 3/1/07, binu.idicula@w... <binu.idicula@w...> wrote: > <xsl:param name="condition"/> I usually use default values ; <xsl:param name="condition" select="'no-condition'" /> > <xsl:variable name="cond" select="$condition"/> > <xsl:variable name="val" select="$value"/> Don't need these; use your params directly. > <xsl:choose> > <xsl:when test="$condition = $value"> > </xsl:when> This is just testing strings. To test XPath, you need to use an eval function. Look at exslt functions for this. You probably also want to ask in any of the XSL(T) groups for more XSLT specifics. Regards, Alex -- --------------------------------------------------------------------------- Project Wrangler, SOA, Information Alchymist, UX, RESTafarian, Topic Maps ------------------------------------------ http://shelter.nu/blog/ -------- | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
