Thanks yet again Michael. Yes, the quotes around the $var were a figment of my
imagination. I'm a self-taught XSLT programmer (thanks in large part due to
this excellent resource), and to paraphrase the old adage I have a fool for a
master.
With or without the '' around $var, the result is the same ie <project oregon>
isn't translated to <Project Oregon> by the translate function. However, the
translation works as intended when using the strings A - Z & a-z instead of the
variable representation.
The latter serves my purpose, but I was wondering...
Shivani.
<xsl:if test="@name[not (translate (., '$lowerCase',
'$upperCase')
*Not So* with the first <xsl: if> where I use variables
instead of the string 'A...Z'
$var is a reference to the variable var, '$var' in quotes is a string of
four characters.
I'm sure you knew that really...
Michael Kay
http://www.saxonica.com.
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
--~------------------------------------------------------------------
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>
--~--