This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: word wrap in a text string
- From: "Laura Jenkins" <xsl_list at hotmail dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 06 Mar 2002 14:45:46 +0000
- Subject: Re: [xsl] word wrap in a text string
- Reply-to: xsl-list at lists dot mulberrytech dot com
Dear Ajay
Try using the function string-length
example
<xsl:variable name = "MyString" select = "beautiful weather"/>
<xsl:value-of select = "string-length(MyString)"/>
would return 17.
HTH
Laura
>From: "ajay sinha" <sinhajay@hotmail.com>
>Reply-To: xsl-list@lists.mulberrytech.com
>To: xsl-list@lists.mulberrytech.com
>Subject: [xsl] word wrap in a text string
>Date: Wed, 06 Mar 2002 14:24:54
>
>
>
>Hi friends,
>I have to do wrap text in a td i.e. in a node, which contains text string I
>have to find if any
>Word has more then 30 characters then insert a br tag after 30 char in that
>word and so on. I have to check whole text for long word and break each of
>them. Furthermore I am using Saxon 3.1 which doesn’t allow tail
>recursion.
>Well if any one can show me an example or guide me, I will be really
>thankful.
>Arup
>
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
>
>
>XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list