The function replace() is not available in XPath 1.0. It's a XPath 2.0
function. And, Xalan-J 2.7.0 doesn't support XPath 2.0.
On 2/7/07, Henk Spaan (JIRA) <[email protected]> wrote:
function replace() does not conform to specifications
-----------------------------------------------------
Key: XALANJ-2363
URL: https://issues.apache.org/jira/browse/XALANJ-2363
Project: XalanJ2
Issue Type: Bug
Components: XPath-function
Affects Versions: 2.7
Environment: Windows 2000; IBM RAD 6
Reporter: Henk Spaan
Fix For: The Latest Development Code
The function call:
replace('xyzxyzxyz', 'x', 'aaa')
will return 'ayzayzayz' in version 2.7.0.
According to the W3C specifications the result should be 'aaayzaaayzaaayz'.
Now, it seems to be nothing more than a copy of 'translate'.
--
Regards,
Mukul Gandhi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]