xsl-list
[Top] [All Lists]

Re: [xsl] replacing nbsp just won't work

2014-10-02 04:10:36
Szabo, Patrick (LNG-VIE) patrick(_dot_)szabo(_at_)lexisnexis(_dot_)at wrote:

I'm using Saxon 9 and xslt 2.0
I'm building a filename inside my stylesheet that I later us in result-document.
In the filename there are no spaces allowed so I wanted to use replace and 
translate but none of them seems to replace non-breaking-spaces in the 
filename. I've tried copying the character and using entities but nothing works.

Any suggestions ?

  translate($filename, ' ', '-')

should do to replace any non breaking character with Unicode code 160 with the minus sign '-'.
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>