xsl-list
[Top] [All Lists]

Re: [xsl] Replacing \U+00A0

2013-08-24 09:31:03
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(_at_)uvic(_dot_)ca> 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(_dot_)madunic(_at_)aeroinfo(_dot_)com | #200-13575 Commerce Parkway | 
Richmond, BC,
V6V 2L1, Canada | www.aeroinfo.com | www.boeing.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--
Martin Holmes
University of Victoria Humanities Computing and Media Centre
(mholmes(_at_)uvic(_dot_)ca)

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>