BEA Systems, Inc.

WebLogic Server 6.0sp2 API Reference

weblogic.apache.xalan.xslt
Class XSLTProcessorFactory

java.lang.Object
  |
  +--weblogic.apache.xalan.xslt.XSLTProcessorFactory

public class XSLTProcessorFactory
extends java.lang.Object

Manufactures the processor for performing transformations. Use one of the static getProcessor methods to create an XSLTProcessor object.

This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.

Author:
Copyright © 2001 BEA Systems, Inc. All Rights Reserved.

Constructor Summary
XSLTProcessorFactory()
           
 
Method Summary
static XSLTProcessor getProcessor()
          Get a new XSLTProcessor with the default high-performance DTM (Document Table Model) liaison and XML parser.
static XSLTProcessor getProcessor(XMLParserLiaison parserLiaison)
          Get a new XSLTProcessor that will use the specified XMLParserLiaison to interact with a given XML parser.
static XSLTProcessor getProcessor(XMLParserLiaison parserLiaison, XPathFactory xpathFactory)
          Get a new XSLTProcessor that will use the specified XMLParserLiaison and XPathFactory to interact with a given XML parser.
static XSLTProcessor getProcessorUsingLiaisonName(java.lang.String parserLiaisonClassName)
          Get a new XSLTProcessor that will use a given XMLParserLiaison class to interact with a given XML parser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSLTProcessorFactory

public XSLTProcessorFactory()
Method Detail

getProcessor

public static XSLTProcessor getProcessor()
                                  throws org.xml.sax.SAXException
Get a new XSLTProcessor with the default high-performance DTM (Document Table Model) liaison and XML parser.

Note If you want to process DOM Node input, use getProcessorUsingLiaisonName("weblogic.apache.xalan.xpath.xdom.XercesLiaison").

Returns:
An implentation of the XSLTProcessor interface with which you can perform transformations.
See Also:
DTMLiaison

getProcessorUsingLiaisonName

public static XSLTProcessor getProcessorUsingLiaisonName(java.lang.String parserLiaisonClassName)
                                                  throws org.xml.sax.SAXException
Get a new XSLTProcessor that will use a given XMLParserLiaison class to interact with a given XML parser. You can use this method, for example, if you are processing DOM Node input with weblogic.apache.xalan.xpath.xdom.XercesLiaison and the Xerces XML parser.

If your input is in the form of a file, character stream, byte stream, or SAX DocumentHandler, you may want to use the high-performance DTM liaison and parser, in which case you can use the no-argument constructor.

Parameters:
parserLiaisonClassName - The name of the ParserLiaison class.
Returns:
An implentation of the XSLTProcessor interface with which you can perform transformations.
See Also:
getProcessor(), XMLParserLiaison, DTMLiaison

getProcessor

public static XSLTProcessor getProcessor(XMLParserLiaison parserLiaison)
Get a new XSLTProcessor that will use the specified XMLParserLiaison to interact with a given XML parser. If your input is in the form of a file, character stream, byte stream, or SAX DocumentHandler, you may want to use the high-performance DTM liaison and parser, in which case you can use the no-argument getProcessor() method.

Parameters:
parserLiaison - the XMLParserLiaison set up to interact with a given XML parser.
Returns:
An implentation of the XSLTProcessor interface with which you can perform transformations.
See Also:
getProcessor(), XMLParserLiaison, DTMLiaison

getProcessor

public static XSLTProcessor getProcessor(XMLParserLiaison parserLiaison,
                                         XPathFactory xpathFactory)
Get a new XSLTProcessor that will use the specified XMLParserLiaison and XPathFactory to interact with a given XML parser. If your input is in the form of a file, character stream, byte stream, or SAX DocumentHandler, you may want to use the high-performance DTM liaison and parser, in which case you can use the no-argument getProcessor() method.

Parameters:
parserLiaison - the XMLParserLiaison set up to interact with a given XML parser.
xpathFactory - A custom XPathFactory.
Returns:
An implentation of the XSLTProcessor interface with which you can perform transformations.
See Also:
getProcessor(), XMLParserLiaison, DTMLiaison

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs60