Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - xsl:if problems >Thread Next - Re: xsl:if problems Re: xsl:if problemsTo: NULL Date: 5/3/2007 8:19:00 PM Doulos05 wrote: > <xsl:if test="expired = false"> So you want your XSLT processor to interpret 'expired' as a name of an element but 'false' as a string literal? How the hell is it supposed to know the difference? <xsl:if test="expired='false'"> What you wrote does something else entirely. Note that the expression given wouldn't work for <expired> false </expired> unless you use <xsl:strip-space/>. Figuring out what <xsl:if test="expired=false()"> would do is left as an exercise for the reader. Reading a good XSLT/XPath tutorial is strongly recommended before you start tinkering. > What I want it to do is only display the items which are > not expired (for which expired = false). What it does is > give me the table header row, but it does not return any > of the non-expired items. Think before you type. -- roy axenov | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
