Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - xsl:if test fails when source xml element on 2 lines >Thread Next - Re: xsl:if test fails when source xml element on 2 lines Re: xsl:if test fails when source xml element on 2 linesTo: NULL Date: 5/1/2007 7:19:00 PM KW wrote: > <xsl:when test="person/email != ''> > The first test is attempting to determine if the element is not > "empty", but with the example xml, it is evaluating to true because > the test is seeing the newline created from the Email element being on > two lines. I would like to evaulate a node like Email so that even if > it is on two lines, there is still "no email address" in the element. Use <xsl:when test="normalize-space(person/email) != ''"> -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
