Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - More tables >Thread Next - Re: More tables Re: More tablesTo: NULL Date: 1/30/2009 3:12:00 PM Feargal wrote: > I would like to find out if every cell in a column is empty. > > I have used an expression "tbody/row/entry[1]/text()", but that just gets > the contents of the first <entry> (cell) element in the first row. > > Is there an expression that will combine all the entry[1] elements of every > row? Well tbody/row/entry[1] potentially selects several 'entry' elements. It all depends on how you use that XPath. In XSLT 1.0 if you do e.g. <xsl:value-of select="tbody/row/entry[1]"/> then the string value of the first 'entry' element in the node-set is output. With XSLT 2.0 that is different. And XSLT/XPath 2.0 have a lot more expressive power for instance you can use e.g. <xsl:if test="every $e in tbody/row/entry[1] satisfies not(normalize-space($e))"> XSLT/XPath 2.0 is implemented by Saxon 9 from http://saxon.sourceforge.net/ and AltovaXML tools from http://www.altova.com/. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
