BizTalk Utilities CV ,   Jobs ,   Code library  
 
Home Page
XALAN
org.apache.xalan.xsltc.trax.TemplatesImpl Class
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 :446

 

Xalan: The org.apache.xalan.xsltc.trax.TransformerFactoryImpl Class

Extends: javax.xml.transform.sax.SAXTransformerFactory

Implements: org.apache.xalan.xsltc.compiler.SourceLocator, javax.xml.transform.ErrorListener

Members

Signature

Public methods

void

error(TransformerException e)

void

fatalError(TransformerException e)

Source

getAssociatedStylesheet(Source source, java.lang.String media, java.lang.String title, java.lang.String charset)

java.lang.Object

getAttribute(java.lang.String name)

ErrorListener

getErrorListener()

boolean

getFeature(java.lang.String name)

URIResolver

getURIResolver()

InputSource

loadSource(java.lang.String href, java.lang.String context, XSLTC xsltc)

Templates

newTemplates(Source source)

TemplatesHandler

newTemplatesHandler()

Transformer

newTransformer()

Transformer

newTransformer(Source source)

TransformerHandler

newTransformerHandler()

TransformerHandler

newTransformerHandler(Source src)

TransformerHandler

newTransformerHandler(Templates templates)

XMLFilter

newXMLFilter(Source src)

XMLFilter

newXMLFilter(Templates templates)

void

setAttribute(java.lang.String name, java.lang.Object value)

void

setErrorListener(ErrorListener listener)

void

setURIResolver(URIResolver resolver)

void

warning(TransformerException e)

Overview

This class is the implementation of a JAXP1.1 TransformerFactory for Translets. This class extends javax.xml.transform.sax.SAXTransformerFactory to provide SAX-specific factory methods.

A TrAX TransformerFactory is an objects that processes transformation instructions, and produces Templates. A Templates object provides a Transformer, which transforms one or more Sources into one or more Results.

User should ensure Thread safety while using TransformerFactory. TransformerFactory may not perform multiple concurrent operarions.

Method Overviews

Methods in this class serve as a factory for a concrete implementation of an TransformerFactory, serve as a direct factory for Transformer objects, serve as a factory for Templates objects, and manage processor specific features.

Example of newInstance()

newInstance() is used to used to create an instance of JAXP TransformerFactory. This method is inherited from JAXP TransformerFactory.

TransformerFactory tFactory = TransformerFactoryImpl.newInstance();

Example of how to use TransformerFactoryImpl

public void useTransformerFactoryImpl(String stylesheetURI,String xmlfileURI,String outURI){

        try{

            TransformerFactory tFactory = TransformerFactoryImpl.newInstance();

            StreamSource source = new StreamSource(stylesheetURI);

            Transformer transformer = tFactory.newTransformer(source);

            StreamSource sourceXML = new StreamSource(xmlfileURI);

            StreamResult result = new StreamResult(outURI);

            transformer.transform(sourceXML, result);

        }catch(Exception e){

            e.printStackTrace();

        }

    }


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
spfxmasks
Host Department NOLIMIT Web Hosting
Cheap Web Hosting
Versace sunglasses
New York Pool Contractor
answering service
conference calling
swimming pool builder
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