Subject: Re: [xsl] A beef with XSLT Sometimes too complicated From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 14 Jul 2006 11:11:59 -0400 |
>> Is there a cleaner / simpler way to do this? Any chance you can do >> this in one line? > > In xslt2: > > <xsl:variable name="bg_img" select="if(normalize-space($all_vars)) > then 'background_bright' else 'background_faded'"/>
I hate the idea of 2 'if's in a language.
IMHO that makes it even more complicated.
Cheers, Wendell
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] A beef with XSLT Sometime, Colin Paul Adams | Thread | Re: [xsl] A beef with XSLT Sometime, Dimitre Novatchev |
RE: [xsl] XSL hold, compare, and re, Michael Kay | Date | Re: [xsl] XSL hold, compare, and re, Mukul Gandhi |
Month |