xsl-list
[Top] [All Lists]

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

2010-08-26 11:29:27
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(_at_)CraneSoftwrights(_dot_)com
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


--~------------------------------------------------------------------
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>
--~--