This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Counting number of characters of sibling text node
- From: Wendell Piez <wapiez at mulberrytech dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 23 May 2002 12:28:59 -0400
- Subject: RE: [xsl] Counting number of characters of sibling text node
- References: <5.1.0.14.0.20020522132410.01c7db78@earthlink.net>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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