Selection based on more than one condition
-
Hi. I have data in XML format and I use XslTransform.Transform to transform the data to a presentable form with an xsl-file. At one location I have used for instance to select what TermR data to use, where $intd is some variable. If I want to use two conditions, for example I only want to use TermR data where termid=$intd AND term2=$intp , is this possible? How do I write the selection in my xsl-code? Thanks /EnkelIk
-
Hi. I have data in XML format and I use XslTransform.Transform to transform the data to a presentable form with an xsl-file. At one location I have used for instance to select what TermR data to use, where $intd is some variable. If I want to use two conditions, for example I only want to use TermR data where termid=$intd AND term2=$intp , is this possible? How do I write the selection in my xsl-code? Thanks /EnkelIk
-
You should be able to use it just like that:
<xsl:if test="termid=$intd AND term2=$intp">
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi