Hi...
I have a set of tests which assign various parameters. Sometimes the
string values are similar and require the same variable to be used.
<xsl:when test="($tabName = 'Pilot')">pilotTab</xsl:when>
<xsl:when test="($tabName = 'Pilot 2')">pilotTab</xsl:when>
<xsl:when test="($tabName = 'Pilot 3')">pilotTab</xsl:when>
Instead of replicating the test over and over, I would like to extend
the test to check for the word 'pilot' and so do away with repetition.
I have tried various ways including 'contains' and 'begins-with' but I
can't get it to work. I also looked at using subString but this seems
to always require two values....which might work for 'Pilot,*' but not
for 'Pilot'.
Can anyone help?
Thanks...
Aaron
..................................................................
Aaron MW Johnson
GUI / XSLT development
Academic Technologies Group [ATG]
University of the West of England
0117 328 1051 [ext: 81051]
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--