Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Testing Whether An Element Exists Or Has Value Testing Whether An Element Exists Or Has ValueTo: NULL Date: 5/8/2005 11:36:00 AM Hey all, I'm just starting out with XML/XSL, so I apologize if this is a stupid question. I'm working on formatting some XML documents for display on the Web (I doubt there will be any other use of them for any other application). I'm creating several documents that will have a CreatedDate element. Also, if there has been a change since the doc was created, there may also be a LastModified element. On the Web page, I want to display something like this: "Created: 12/23/2003 Last Modified: 04/27/2004" but obviously, if something hasn't been modified, I don't want to display that second line. How, in XSL, can I test whether the LastModified element is there? (It also may be there, but be empty.) Thanks. -- Hmm...they have the Internet on COMPUTERS now! | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
