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


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.

Cheers,
Wendell



======================================================================
Wendell Piez                            mailto:wapiez@mulberrytech.com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
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:  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]