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

Subject: RE: [xsl] Counting number of characters of sibling text node
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 23 May 2002 12:28:59 -0400
At 03:52 AM 5/23/2002, you wrote:
> As I understand it, what I'm doing here is constructing an
> RTF and then
> asking for its string-length.

Sorry, yes, I read it too quickly. Actually, it's a rather neat solution
- though not necessarily very efficient!

True enough. (In the stylesheet where I use it, I have to do some fancy parameter passing to avoid collecting the nodes on preceding:: -- which is actually what I need -- but visiting all preceding nodes for every node, not just preceding siblings, is something you *really* need plenty of spare time for.)

A recursive solution isn't necessarily better though is it? unless running of those nice Novatchev math chips.


Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.      
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
  Mulberry Technologies: A Consultancy Specializing in SGML and XML

XSL-List info and archive:

Current Thread