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



On Wed, Feb 09, 2005 at 08:42:00PM +0000, Frans Englich wrote:
> 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() )

  you can track those using -v flags, saving the stderr output of xsltproc
and search for debug informations around the error output. I'm not sure
there is much I can do there.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/


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