xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] how to replace a part of a string with a newline??


Subject: RE: [xsl] how to replace a part of a string with a newline??
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Tue, 13 Jul 2004 11:04:04 +0300

FAQ,

> 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.

<http://www.dpawson.co.uk/xsl/sect2/replace.html>.

Cheers,

Jarno - Claire Voyant: Mercy (cut rate box)


Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor