is StylesheetRoot really java.io.Serializable ? 2007-08-01 - By tiberiu
Hi, in xalan documentation there is a hint to use Templates and to cache them, in order to increase performance. I need to cache them on disk, so that I tried to use (java.io) Serializable interface. The Problem is that even if StyleSheetRoot (the Templates Object) implements Serializable, ExtensionNamespaceSupport doesn't.
So, trying to save a StylesheetRoot with xalan2.4.0 crashes, in 2.7.0 I didn't obtain an error but the read Class from such a File return on method StylesheetRoot.getExtensions() a null. This null is at the end converted in an "Unknown Error in XPath" Error because of the following Code from ExtensionsTable class: Vector extensions = m_sroot.getExtensions(); for (int i = 0; i < extensions.size(); i++)
Without these Extensions the Templates doesn't know defined Namespaces.
My Question is if it is a possibility to serialize StylesheetRoot in a File, and to can use that serialized form in order to generate a good Transformer.
Thanks for an answer.
-- View this message in context: http://www.nabble.com/is-StylesheetRoot-really -java.io.Serializable---tf4202280.html#a11952525 Sent from the Xalan - J - Users mailing list archive at Nabble.com.
Hi, in xalan documentation there is a hint to use Templates and to cache them, in order to increase performance. I need to cache them on disk, so that I tried to use (java.io) Serializable interface. The Problem is that even if StyleSheetRoot (the Templates Object) implements Serializable, <i>ExtensionNamespaceSupport</i> doesn't.
So, trying to save a StylesheetRoot with xalan2.4.0 crashes, in 2.7.0 I didn't obtain an error but the read Class from such a File return on method StylesheetRoot.getExtensions() a null. This null is at the end converted in an "Unknown Error in XPath" Error because of the following Code from <i >ExtensionsTable</i> class: Vector extensions = m_sroot.getExtensions(); for (int i = 0; i < <i>extensions.size()</i>; i++)
Without these Extensions the Templates doesn't know defined Namespaces.
My Question is if it is a possibility to serialize StylesheetRoot in a File, and to can use that serialized form in order to generate a good Transformer.
Thanks for an answer.
<br><hr align="left" width="300"> View this message in context: <a href="http://www.nabble.com/is-StylesheetRoot -really-java.io.Serializable---tf4202280.html#a11952525">is StylesheetRoot really java.io.Serializable ?</a><br> Sent from the <a href="http://www.nabble.com/Xalan---J---Users-f275.html">Xalan - J - Users mailing list archive</a> at Nabble.com.<br>
|
|