[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: reducing string length

Subject: RE: reducing string length
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Mon, 17 Nov 2008 11:21:12 +0100
RE:  reducing string length
Not too difficult I'd say:

concat(substring(substring-before(email, '@'), 1, 10), '..@..',
substring(substring-after(email, '@'), string-length(substring-after(email,
'@')) - 10 + 1, 10))

Or perhaps you would like to add some if's to test for total length and
lengths of left and right hand first..



Drs. G.P.H. Josten

Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
KvK 27164984
De informatie - verzonden in of met dit emailbericht - is afkomstig van
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit
bericht kunnen geen rechten worden ontleend.

> From: Bastiaan Wakkie [mailto:bwakkie@xxxxxxxxx]
> Sent: maandag 17 november 2008 11:14
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  reducing string length
> Someone tried already to reduce a long email string into a
> smaller one in xsl v1.0 ?
> like
> myverywaytolongemail.address@xxxxxxxxxxxx
> into  something like:
>  myveryway..@..domain.com
> So it does not exceed the length of 25 chars.
> thanks,
> Bastiaan

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.