I need to use a string replace function in my XSL document. I found a W3
library that has numerous string functions such as fn:replace(). When I try
using the namespace, I get an error
"Cannot find the script or external object that implements prefix
'http://www.w3.org/2005/02/xpath-functions'.
I am using VB, an XMLDocument object, an XSLCompiledTransform object, and an
XmlTextWriter to store the transformation.
Here is the start of my XSL document:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fn="http://www.w3.org/2005/02/xpath-functions">
<xsl:template match="/">
<html>
<body style="margin-left:35;">
....
<xsl:value-of select="fn:replace(//xml/fields/CEADR1, 'abc',
'def')"/><br/>
....
Am I doing something wrong? Is this namespace not compatible with .NET 2.0?
Help!
SR