to extract the longest string (fwd)

Subject: to extract the longest string (fwd)
From: "C.V. Radhakrishnan" <cvr@xxxxxxxxxxxxxxx>
Date: Fri, 18 Aug 2000 13:05:36 +0530 (IST)
I have the following xml

I want to concatnate the 'align' attributes of the <col> under each 
<row>  into  separate strings and after that I want to extract the
lengthiest of the strings.

For example first <col> attributes gives "ll"
	    second <col> attribute gives  "ccc"
	    third <col> attribute gives "rrrr"
						
I must get "rrrr" as the output since that is the lengthiest of the
three string.

I hope someone will help me with an XSL script.

<?xml version="1.0"?>
<table>
<row>
	<col align="l"/>
	<col align="l"/>
</row>
<row>
	<col align="c"/>
	<col align="c"/>
	<col align="c"/>
</row>
<row>
	<col align="r"/>
	<col align="r"/>
	<col align="r"/>
	<col align="r"/>
</row>
</table>

Thanks in advance.

Rajagopal





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


Current Thread