Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: More tables

From: Martin Honnen <mahotrash@-----.-->
To: 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/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent