You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Damon Horrell <dh...@oktoborinteractive.com> on 2003/05/12 07:07:03 UTC

Caching stylesheets (serializable?)

Hi,
 
org.apache.xalan.templates.StylesheetRoot says it implements the
Serializable interface.  Why then do I get the error:
 
Error (java.io.NotSerializableException):
org.apache.xalan.extensions.ExtensionNamespacesManager
 
when I try to write it to an ObjectOutputStream?  Is there a way to write
out just the part of it that is serializable?
 
What I am trying to do is cache my stylesheet once it has been parsed from
text into objects so that I can quickly load it when needed.  Can anyone
suggest a way to approach this?  I can't use XSLTC because I am using
several of the features that this doesn't support.
 
Thanks, Damon