![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: assigning an elements content to variable and then testing assigning an elements content to variable and then testingTo: NULL Date: 2/2/2005 1:15:00 PM In transforming the <towing> element (boolean) I want the xlst document test the <towing> element for the "true" text and if found output "available", otherwise output "not available". While the complete code is on http://www.otima.ca/XML/auto2.xslt from auto.xml .. below is the relevant snippet. The code below always evaluates to "false" showing "not available" ... what I am doing wrong? <tr> <td class="autoDescr">Towing</td> <td><xsl:variable name="towingCapable" select=".//towing/text()" /> <xsl:choose> <xsl:when test="$towingCapable=true"> <xsl:text>Available</xsl:text> </xsl:when> <xsl:otherwise> <xsl:text>Not Available</xsl:text> </xsl:otherwise> </xsl:choose></td> </tr> Thank you, Ian *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
