Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] Testing the value of a variable [Thread Next] Re: [xsl] Testing the value of a variableTo: Date: 1/1/2006 2:09:00 PM >>>>> "Clare" == Clare Birch <clarebirch@xxxxxxxxxx> 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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
