This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
to extract the longest string (fwd)
- To: xsl-list at mulberrytech dot com
- Subject: to extract the longest string (fwd)
- From: "C.V. Radhakrishnan" <cvr at md2 dot vsnl dot net dot in>
- Date: Fri, 18 Aug 2000 13:05:36 +0530 (IST)
- Reply-To: xsl-list at mulberrytech dot com
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