[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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


Subject: Re: [xsl] replacing nbsp just won't work
From: "Wolfgang Laun wolfgang.laun@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 6 Oct 2014 08:31:22 -0000

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@xxxxxxxxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxx
> +44 (0) 118 946 5893
>
>
>
>
> On 2 Oct 2014, at 10:02, Szabo, Patrick (LNG-VIE)
> patrick.szabo@xxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
> 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.Szabo@xxxxxxxxxxxxx
> > Tel.: +43 1 53452 1514
> > Fax.: +43 1 534 52 146
> >
> > . . . . . . . . . . . . . . . . . . . . . . . . . .


Current Thread
Keywords