You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Luca Morandini <lu...@tin.it> on 2002/07/16 23:49:34 UTC

RE: string handling in xsl

Suma,

something like: <xsl:value select="substring(concat($s1, $s2, $s3, $spaces), 1, 100)"/> (where spaces is a string of blanks) ?

Just off the top of my head... but should work.

Best regards,

--------------------------------------------- 
               Luca Morandini 
               GIS Consultant 
              lmorandini@ieee.org 
http://utenti.tripod.it/lmorandini/index.html 
---------------------------------------------
 

> -----Original Message-----
> From: SUMA INDRAGANTI [mailto:sumav_99@yahoo.com]
> Sent: Tuesday, July 16, 2002 11:13 PM
> To: lmorandini@ieee.org
> Cc: cocoon-users@xml.apache.org
> Subject: string handling in xsl
> 
> 
> Hi
>   Luca,
> 
>   Iam a new member of cocoon users.I have a question
> regarding handling strings in XSL.
> I have a string which would appear in 3 separate
> lines.
> I want to compute their string length..and check if
> their length is less than 100 i need to append spaces
> else trim it to length 100.
> please could u help me with an example.
> 
> thanks,
> suma
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Autos - Get free new car price quotes
> http://autos.yahoo.com

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>