[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: replacing nbsp just won't work

Subject: Re: 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
Re:  replacing nbsp just won't work
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.