Re: [xsl] Trying to replace vertical pipe...

Subject: Re: [xsl] Trying to replace vertical pipe...
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 26 Aug 2010 12:28:29 -0400
At 2010-08-26 09:26 -0700, Paul Harvey wrote:
I'm trying to replace the string "|95|" with a single character but the
"replace()" function seems to interpret the vertical bars as "or" and won't
allow it, complaining about a "zero-length string".

How would I escape |95| in order for it to be treated it as a string and enable
it to be replaced?

The back-slash escapes sensitive characters: "\|95\|"


I hope this helps.

. . . . . . . . Ken


-- XSLT/XQuery training: after http://XMLPrague.cz 2011-03-28/04-01 Vote for your XML training: http://www.CraneSoftwrights.com/s/i/ Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal

Current Thread