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

Subject: Re: [xsl] replacing nbsp just won't work
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 2 Oct 2014 09:10:21 -0000
Szabo, Patrick (LNG-VIE) patrick.szabo@xxxxxxxxxxxxx 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, '&#160;', '-')


should do to replace any non breaking character with Unicode code 160 with the minus sign '-'.

Current Thread