Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :
03/24/2008
Times viewed :
361
Xalan: The org.apache.xalan.xsltc.trax.TemplatesImpl Class
This
class is serialized form of javax.xml.transform.Templates class.
Overrides
the default readObject implementation since we decided it would be cleaner not
to serialize the entire tranformer factory. [ ref bugzilla 12317 ] We need to
check if the user defined class for URIResolver also implemented Serializable
if yes then we need to deserialize the URIResolver Fix for bugzilla bug 22438.
Method Overviews
Methods
in this class are used to manipulate Templates object.
Example of newTransformer()
newTransformer() is used to used to Transformer
object. In this code snippet I have used SmartTransformerFactoryImpl class to
create a TemplatesImpl object.
public void useTemplateImpl(String
stylesheetURI,String xmlfileURI,String outURI){
try{
SmartTransformerFactoryImpl smartTransforer = new
SmartTransformerFactoryImpl();
StreamSource source = new StreamSource(stylesheetURI);