|
next
|
Subject: replace decode style functionality Author: Sushant Prabhu Date: 08 Jan 2007 08:12 PM
|
Hi All
Currently I am receiving some ids to my functionality as <xsl:param name="type_id"/>
so the id's are like 1,2,3, & so on
I print the same using <xsl:value-of select="$type_id"/>
Now i want to do something like this
if the id is 1 it should translate to a string called 'Continent'
if the id is 2 it should translate to a string called 'Country'
if the id is 3 it should translate to a string called 'State'
if the id is 4 it should translate to a string called 'City'
was looking if we have a functionality similar to decode where i can say something like this
<xsl:value-of select="function($type_id,'1','Continent','2','Country','3',
'State','4','City')"/>
Looking out for some functionality on the same lines.
Do post your thoughts on the same
Regards,
|
|
|