Subject: [xsl] Re: Deleting various number of tabs in a row and adding one whitespace From: "Georg Hohmann" <georg.hohmann@xxxxxxxxx> Date: Mon, 19 Jun 2006 16:56:24 +0200 |
Oh, got it myself! All i have to do is to use the normalize-space function.
Sorry. GH
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(., '	', '')
... 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Deleting various number of ta, Georg Hohmann | Thread | [xsl] Writing an Entity Reference, Woods, Christopher |
[xsl] Deleting various number of ta, Georg Hohmann | Date | [xsl] Writing an Entity Reference, Woods, Christopher |
Month |