xsl-list
[Top] [All Lists]

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

2014-10-06 03:31:41
A replace cll with this pattern should take care of all kinds of spaces
(according to Unicode terminology):

   replace($string, "[\p{Zs}]", "x")

Note that \s matches only the white space characters within the US-ASCII
character set.

-W

On 2 October 2014 11:12, Michael Kay mike(_at_)saxonica(_dot_)com <
xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:

Sorry, but my response to this kind of question is always the same: don't
tell us you've tried everything and nothing works. Tell us exactly what you
tried and exactly how it failed.

Michael Kay
Saxonica
mike(_at_)saxonica(_dot_)com
+44 (0) 118 946 5893




On 2 Oct 2014, at 10:02, Szabo, Patrick (LNG-VIE)
patrick(_dot_)szabo(_at_)lexisnexis(_dot_)at 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com>
wrote:

Hi,

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 ?

cheers


. . . . . . . . . . . . . . . . . . . . . . . . . .
Ing. Patrick Szabo
Developer
LexisNexis
A-1030 Wien, Marxergasse 25

mailto:Patrick(_dot_)Szabo(_at_)lexisnexis(_dot_)at
Tel.: +43 1 53452 1514
Fax.: +43 1 534 52 146

. . . . . . . . . . . . . . . . . . . . . . . . . .



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