Re: [xslt] confusing error message "function format-date bound to undefined prefix date"



Viktor Stujber schrieb:
By reducing the application I now have a minimalistic test case which
reproduces the issue. The problem occured because the author included
the template file "str.replace.function.xsl" (which implements
str:replace) even though libxslt provides its own builtin str:replace
function. Removing the include makes the problem go away.

I can confirm that. Maybe redefining a built-in extension function isn't
supported. Bottom line: Use built-in functionality.

The full test case is provided as an attachment to this mail. What I'm
still wondering about is why the "split into two lines" version still
runs fine even though it's basically the same thing as the "one-liner"
version

A mistery. Running with --verbose yields more information, but I can't
see what's going on.

and why libxslt is yelling about an unbound prefix 'date' when it
actually is bound.

It actually is bound. This error is a mistery to me.

Michael Ludwig


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