Re: [xsl] Counting number of characters of sibling text node

Subject: Re: [xsl] Counting number of characters of sibling text node
From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx>
Date: Wed, 22 May 2002 17:11:45 +0200
Filipe Correia wrote:
Why not just
<xsl:value-of select="string-length() +
string-length(preceding-sibling::text())"/> ?



It works!! thanks!

Sorry for disapointing you, but that expression only works when you have no more than 2 text nodes, because string-length(nodeset) returns length of the first node string value in the nodeset, not a summarized length, of course.


--
Oleg Tkachenko
Multiconn International, Israel


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread