[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: The longest node in a node set

Subject: RE: The longest node in a node set
From: TSchutzerWeissmann@xxxxxxxxxxxxxxxx
Date: Fri, 19 Jul 2002 12:41:59 +0100
oracle 49 node length
Hello Antonio,

> I did not take into account the fact that longer contents are splitted
> into two rows at spaces. That changes the formula: I would 
> have to find
> "the length of the longest word contained in an element". 
> That would not
> change a lot Jeni's recursive approach, except that it would 
> have to be
> douoble-recursive to find the length of the words. But never 
> mind. This
> is certainly not the best solution, as I have a very irregular
> distribution of maximum "word" lengths. So the final result 
> would not be
> appealing.

Does your table have lots of rows, and are you going to change the column
widths on a row-by-row basis?

I was thinking maybe you could work out the word-lengthiness of content by
using the ratio of its total string-length and the string-length of all its
non-whitespace characters. That would give you a (rough) idea of which
content needed the most elbow-room.

it sounds like you'll have a bit of a fight on your hands regardless...
Tom Weissmann


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.