This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]