> docs on say that Xalan-C implements the exslt encode-uri() function,
> but I the following stylesheet does not work for me (Xalan 1.9).
> 
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0" 
>     xmlns:str="http://exslt.org/strings";>
> 
>     <xsl:template match="/">
>         <xsl:value-of select="str:encode-uri(' :|.xml')"/>
>     </xsl:template> 
> 
> </xsl:stylesheet>

This is a bug in your stylesheet, along with a bug in the official EXSLT 
documentation for this function.  The EXSLT web site states the function 
encode-uri() has the following signature:

string encode-uri(string, string, string?)

However, according to description of the function on the implementer page, 
the signature should be:

string encode-uri(string, boolean, string?)

See:

http://www.exslt.org/str/functions/encode-uri/str.encode-uri.html

So, you need to supply at least two arguments to the function, which is 
what the error message states.

Dave

Reply via email to