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

Re: Replacing \U+00A0

Subject: Re: Replacing \U+00A0
From: Martin Holmes <mholmes@xxxxxxx>
Date: Sat, 24 Aug 2013 07:30:31 -0700
Re:  Replacing \U+00A0
On 13-08-23 10:39 PM, Wolfgang Laun wrote:
Or use the simpler '#xA0'

I think the problem is that he's trying to replace the literal string \U+00A0', isn't it?


Cheers,
Martin

-W

On 23/08/2013, Martin Holmes <mholmes@xxxxxxx> wrote:
The replace() function uses a regular expression pattern, so I think
you'll need to escape the backslash:

'\\U00A0'

Cheers,
Martin

On 13-08-23 12:25 PM, Mario Madunic wrote:
Hi,

Having a problem replacing the following string in some XML, \U+00A0. It
is appearing as is in the XML. Example: <p>This para\U+00A0contains.</p>

Using Saxon HE 9.5.0.1J.

Tried the following:
<xsl:value-of select="if (contains(., '\U+00A0')) then replace(.,
'\U+00A0', ' ') else ." />. Am able to find the string in question (using
contains()) but am unable to replace it.

Any insight and help will be appreciated.

Thanks

Mario Madunic | Software Developer | AeroInfo Systems, A Boeing Company |
mario.madunic@xxxxxxxxxxxx | #200-13575 Commerce Parkway | Richmond, BC,
V6V 2L1, Canada | www.aeroinfo.com | www.boeing.com



-- Martin Holmes University of Victoria Humanities Computing and Media Centre (mholmes@xxxxxxx)

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.