This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Counting number of characters of sibling text node


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]