You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Rob Tice <ro...@fdgroup.com> on 2002/05/21 09:50:32 UTC
xpath replace()
Slightly off topic as it is a w3c issue, but I am interested as to the
lists thoughts as to why is it that xpath translate() ignores additional
characters when the replacement string is longer than the original but
deletes characters if the replacement string is shorter? This doesn't seem
logical to me. I only sent this post as I was about to raise it as a bug
before I looked at the w3c spec!!
Rob Tice
The information transmitted in this electronic mail message may contain
confidential and or privileged materials. For full details and restrictions
see http://www.fdgroup.com/emaildisclaimer.html
Re: xpath replace()
Posted by Jacek Ambroziak <ja...@yahoo.com>.
Rob,
"ABXY" ==> "12" maps A->1, B->2, X,Y->'nothing'
(effectively delete)
You can think about A,B as chars to replace with
different chars,
and X,Y as chars to get rid off: translate('XY', '')
--Jacek
> lists thoughts as to why is it that xpath
> translate() ignores additional
> characters when the replacement string is longer
> than the original but
> deletes characters if the replacement string is
> shorter? This doesn't seem
> logical to me.
>
> Rob Tice
__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com