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

Deleting various number of tabs in a row and adding on

Subject: Deleting various number of tabs in a row and adding one whitespace
From: "Georg Hohmann" <georg.hohmann@xxxxxxxxx>
Date: Mon, 19 Jun 2006 16:51:05 +0200
tab deleting
Hello out there,

i have a xml source which contains a lot of tabs inside the text
nodes. I would like to delete them for the output using xslt2. Simply
deleting all tabs is not an solution because the parts of the text
that were seperated by the tabs should have one empty space between
them, and the number of tabs in a row vary from 1 to 6.

This is in example for the source (where "~" means "tab"):
<content>Lorem ipsum~~~dolor sit amet</content>

When i delete all the tabs using
translate(., '&#09;', '')

... i get this:
<content>Lorem ipsumdolor sit amet</content>

But i want to have is this:
<content>Lorem ipsum dolor sit amet</content>

Do you see any solution for this issue?

Greetz,
GH

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.