xsl-list
[Top] [All Lists]

Re: Testing the value of a variable

2006-01-01 07:09:05
"Clare" == Clare Birch <clarebirch(_at_)excite(_dot_)com> writes:
    Clare> Neither of these tests return true and I dont understand
    Clare> why. If anyone has any ideas Id be grateful,

    Clare> <xso:if test="'$A'='34'">

This tests if the string "$A" is equal to the string "34", which it
manifestly isn't.


    Clare> <xso:if test="A='34'">

This tests if there is an A child element of the context node that has
the string value "34".


<xsl:if test="$A = '34'">

will evaluate to true().
-- 
Colin Adams
Preston Lancashire

--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>