BizTalk Utilities CV ,   Jobs ,   Code library  
 
Home Page
XALAN
org.apache.xalan.xsltc.trax.SmartTransformerFactoryImpl Class
org.apache.xalan.xsltc.trax.DOM2SAX Class
org.apache.xalan.transformer.XalanProperties Class
org.apache.xalan.transformer.TrAXFilter Class
org.apache.xalan.transformer.TransformerIdentityImpl Class
org.apache.xalan.processor.TransformerFactoryImpl Class
org.apache.xalan.lib.sql.XConnection Class
javax.xml.transform.sax.TemplatesHandler Class
XALAN Getting Started with XSLTC
The Usage of XALAN
Overview of XALAN - Java
<< WCF, WS, SOAP
XHTML >>

By :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

Implements: javax.xml.transform.Templates, java.io.Serializable

Members

Signature

Public methods

java.util.Properties

getOutputProperties()

DOM

getStylesheetDOM()

byte[][]

getTransletBytecodes()

java.lang.Class[]

getTransletClasses()

int

getTransletIndex()

Transformer

newTransformer()

void

setStylesheetDOM(DOM sdom)

void

setURIResolver(URIResolver resolver)

Overview

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);

            TemplatesImpl templateImpl = (TemplatesImpl)smartTransforer.newTemplates(source);

           DOM stylesheetDOM = templateImpl.getStylesheetDOM();

           

          Transformer transformer = templateImpl.newTransformer();

           StreamSource sourceXML = new StreamSource(xmlfileURI);

           StreamResult result = new StreamResult(outURI);

           transformer.transform(sourceXML,result);

       }catch(Exception e){

           e.printStackTrace();

       }

    }

Example of getStylesheetDOM()

Return the thread local copy of the stylesheet org.apache.xalan.xsltc.DOM object.

.

DOM stylesheetDOM = templateImpl.getStylesheetDOM();


Rate this article on a scale of 1 to 10

Your vote :  


 

Recent Jobs

A great opportunity to Digital Vide
here is a greate opportunity as a S
A great opportunity as a Network En
A Greate Opportunituy as a SQL Deve
An immediate job opportunity as a B

View all Jobs (Add yours)
View all CV (Add yours)



chicago web site design
reservationless conference calls
Host Department NOLIMIT Web Hosting
UK Dedicated Servers
D&g sunglasses
NJ Pool Contractor
answering service
efax
swimming pool contractor
MSN
sunglasses


    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP