[XML-SIG] Possible bug in 4XSLT wrt using EXSLT func:function?
Dieter Maurer
dieter@handshake.de
Sat, 17 Nov 2001 22:06:18 +0100
Craeg K. Strong writes:
> The above works great in Saxon. However in 4XSLT, it dies with a
> message of
> something like "cannot add integer to string."
>
> Here is the offending line: (line 350, Exslt.py)
>
> arg_name_list = map(lambda x: 'a'+x, range(len(self._params[:26])))
While Java converts an integer (in fact any object) in the
given context implicitly to a string, Python does not:
"range" returns a sequence of integers.
Use "'a' + `x`" to convert the integer "x" into a string.
Dieter