On 11/06/2012 08:03, Livia Hauser wrote:

Hi Michael,

clear, but it's not allowed to cache objects which are not serializable (in my current project).
Hope its possible to serialize compiled stylesheets in a future version of saxon.


I'm not planning to change this.

Can you explain why it's not allowed (and who made the rule)? Many projects store compiled stylesheets in application memory and it's vital to performance to do so. I'm not aware of any problems that this causes. The alternative, of compiling each stylesheet each time it is used, is horrendous.

Michael Kay
Saxonica