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]

to extract the longest string (fwd)



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]