Subject: Re: [xsl] A beef with XSLT Sometimes too complicated From: Kamal Bhatt <kbhatt@xxxxxxxxx> Date: Fri, 14 Jul 2006 15:42:04 +1000 |
<xsl:variable name="bg_img"> <xsl:choose> <xsl:when test="normalize-space($all_vars)=''">background_bright</xsl:when> <xsl:otherwise>background_faded</xsl:otherwise> </xsl:choose> </xsl:variable>
<xsl:variable name="bg_img"> <xsl:choose> <xsl:when test="normalize-space($all_vars)=''"> <xsl:text>background_bright</xsl:text> </xsl:when> <xsl:otherwise> <xsl:text>background_faded</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:variable>
Is there a cleaner / simpler way to do this? Any chance you can do this in one line?
Karl..
-- Kamal Bhatt
-- Disclaimer: This email is confidential and may contain privileged information for the sole use of the person or business to which it is addressed. If you are not the intended recipient, please notify the sender by return e-mail or phone as you must not view, disseminate, distribute or copy this email without our consent. We do not accept any liability in connection with any computer virus, data corruption, incompleteness, or unauthorised amendment of this email. It is the sole responsibility of the receiver to scan for viruses before opening.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] A beef with XSLT Sometime, Michael Kay | Thread | RE: [xsl] A beef with XSLT Sometime, Geert Josten |
Re: [xsl] A beef with XSLT Sometime, Colin Paul Adams | Date | Re: [xsl] A beef with XSLT Sometime, Karl Stubsjoen |
Month |