> The API of request:get-attribute has return type of xs:string, so I
> suppose this is the "normal behaviour" (although I'd expect behaviour
> similar to the corresponding servlet API, i.e. put object in, get object
Yes indeed. request:get-attribute should not force the object into
string. To fix this, replace line 80 of
return attrib == null ? Sequence.EMPTY_SEQUENCE :
I didn't test it, but it should be ok.