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

how to replace a part of a string with a newline??

Subject: how to replace a part of a string with a newline??
From: Varun Suri <varunsuri@xxxxxxxxxxxxxxx>
Date: Tue, 13 Jul 2004 13:20:45 +0530
varun suri
Hi

Ive got this string :

Importer__OPT__Trading Company__OPT__Service Provider

How do i make it equivalent to
- Importer
- Trading Company
- Service Provider


Ive tried using translate function, but it replaces all instances of the letters O,P,T as well.I did something like:


translate(text(),'__OPT__',':')

It gives the following output is Importer:rading Company:Service rovider which i dont want.

Any easy way to do it??

Thanks in advance
Regards
Varun

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.