Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: xsl:if test fails when source xml element on 2 lines [Thread Next] Re: xsl:if test fails when source xml element on 2 linesTo: NULL Date: 5/2/2007 1:58:00 PM KW wrote: > But, I have another question. Is there a better test expression to use > in order to figure out if an element is empty as I have defined it? Or > is this approach commonly used? If the element node were really empty then you could do e.g. person/email[not(node())] but as you are dealing with elements that can have white space text content then using normalize-space is a common approach. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
