Re: [xslt] What does "Invalid number of arguments" mean?



On Wednesday 09 February 2005 20:12, Frans Englich wrote:

> XPath error : Invalid number of arguments

Here's what causes it, you won't find it the code in the previous post.

A call like this:
 <a href="{str:encode-uri($resultPath )}" >

results in the error. The result file is half written, and when that is 
encountered, it fails(e.g, not at compile time). The error is that encode-uri 
takes two arguments, not one.

It's also possible to do a mistake like this:

            <a href="{str:encode-uri($resultPath, False())}" >

Which, similarly, at runtime results in:

mlXPathCompOpEval: function False not found
XPath error : Unregistered function
xmlXPathCompOpEval: parameter error

(it should be false() )


Well, perhaps a FYI,


		Frans



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]