OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: DOCBOOK-APPS: [QUESTION] translating whitespaces into  


hello,

this question might be likly off-topic...

i am having a stylesheets that produces some
HTML output (taking a website xml file as input).

sometimes i'll like to translate every whitespace
that occures in a plain text string into  

example:

----------8<-----------8<-----------8<----------
 This is a foobar sentence.

sould be translated into:

 This&nbsp;is&nbsp;a&nbsp;foobar&nbsp;sentence.
---------->8----------->8----------->8----------

i used the XSLT translate() function to accomplish
this.

 translate('This is a foobar sentence.', ' ', '&#160;')

unfortunatly this does not produce the desired result.
so how is it possible to translate whitespaces into
&nbsp;?

With best regards / Mit freundlichen Gruessen

Daniel S. Haischt IT Consulting
______________________________
[revolutionary and alpha geek]

Daniel S. Haischt
Grabenstrasse 11
D-71083 Herrenberg
G E R M A N Y

FON:      +49 -7032-992909
          +49 -700-DHAISCHT
FAX:      +49 -7032-992910
CELLULAR: +49 -172-7668936

email: daniel.haischt@daniel-s-haischt.biz
web:   http://www.daniel-s-haischt.biz

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS dx s:- a- C++ UB++++ P+++ L++++ E W+++ N+++ o-- K- w--- 
O++ M++ V- PS+ PE++ Y+ PGP++ t+++ 5+ X+++ R+ tv++ b+++ DI+ D+++ 
G e++ h-- r+ y+++++ 
------END GEEK CODE BLOCK------



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC