| org.apache.cocoon.components.xslt.TraxProcessor
TraxProcessor | public class TraxProcessor extends AbstractLogEnabled implements XSLTProcessor,Serviceable,Initializable,Disposable,Parameterizable,Recyclable,URIResolver(Code) | | Adaptation of Excalibur's XSLTProcessor implementation to allow for better
error reporting.
version: $Id: TraxProcessor.java 440004 2006-09-04 10:03:19Z anathaniel $ since: 2.1.8 |
Inner Class :public static class MyTransformerHandlerAndValidity extends TransformerHandlerAndValidity | |
Method Summary | |
public void | dispose() | protected InputSource | getInputSource(Source source) Return a new InputSource object that uses the
InputStream and the system ID of the Source
object. | public TransformerHandler | getTransformerHandler(Source stylesheet) | public TransformerHandler | getTransformerHandler(Source stylesheet, XMLFilter filter) | public TransformerHandlerAndValidity | getTransformerHandlerAndValidity(Source stylesheet) | public TransformerHandlerAndValidity | getTransformerHandlerAndValidity(Source stylesheet, XMLFilter filter) | public void | initialize() | public void | parameterize(Parameters params) | public void | recycle() | public javax.xml.transform.Source | resolve(String href, String base) Called by the processor when it encounters an xsl:include, xsl:import, or
document() function.
Parameters: href - An href attribute, which may be relative or absolute. Parameters: base - The base URI in effect when the href attribute wasencountered. | public void | service(ServiceManager manager) Compose. | public void | setTransformerFactory(String classname) | protected void | sourceToSAX(Source source, ContentHandler handler) | public void | transform(Source source, Source stylesheet, Parameters params, Result result) |
m_checkIncludes | protected boolean m_checkIncludes(Code) | | Check included stylesheets
|
m_includesMap | protected Map m_includesMap(Code) | | Map of pairs of System ID's / validities of the included stylesheets
|
m_incrementalProcessing | protected boolean m_incrementalProcessing(Code) | | Is incremental processing turned on? (default for Xalan: no)
|
m_manager | protected ServiceManager m_manager(Code) | | The ServiceManager
|
m_resolver | protected SourceResolver m_resolver(Code) | | Resolver used to resolve XSLT document() calls, imports and includes
|
m_store | protected Store m_store(Code) | | The store service instance
|
m_transformerFactory | protected String m_transformerFactory(Code) | | The configured transformer factory to use
|
m_useStore | protected boolean m_useStore(Code) | | Is the store turned on? (default is off)
|
m_xmlizer | protected XMLizer m_xmlizer(Code) | | |
dispose | public void dispose()(Code) | | Disposable
|
getInputSource | protected InputSource getInputSource(Source source) throws IOException, SourceException(Code) | | Return a new InputSource object that uses the
InputStream and the system ID of the Source
object.
throws: IOException - if I/O error occured. |
getTransformerHandler | public TransformerHandler getTransformerHandler(Source stylesheet) throws XSLTProcessorException(Code) | | See Also: org.apache.excalibur.xml.xslt.XSLTProcessor.getTransformerHandler(org.apache.excalibur.source.Source) |
getTransformerHandler | public TransformerHandler getTransformerHandler(Source stylesheet, XMLFilter filter) throws XSLTProcessorException(Code) | | See Also: org.apache.excalibur.xml.xslt.XSLTProcessor.getTransformerHandler(org.apache.excalibur.source.Sourceorg.xml.sax.XMLFilter) |
getTransformerHandlerAndValidity | public TransformerHandlerAndValidity getTransformerHandlerAndValidity(Source stylesheet) throws XSLTProcessorException(Code) | | |
getTransformerHandlerAndValidity | public TransformerHandlerAndValidity getTransformerHandlerAndValidity(Source stylesheet, XMLFilter filter) throws XSLTProcessorException(Code) | | |
parameterize | public void parameterize(Parameters params) throws ParameterException(Code) | | Configure the component
|
recycle | public void recycle()(Code) | | Recycle the component
|
resolve | public javax.xml.transform.Source resolve(String href, String base) throws TransformerException(Code) | | Called by the processor when it encounters an xsl:include, xsl:import, or
document() function.
Parameters: href - An href attribute, which may be relative or absolute. Parameters: base - The base URI in effect when the href attribute wasencountered. A Source object, or null if the href cannot be resolved, and theprocessor should try to resolve the URI itself. throws: TransformerException - if an error occurs when trying to resolve the URI. |
service | public void service(ServiceManager manager) throws ServiceException(Code) | | Compose. Try to get the store
|
setTransformerFactory | public void setTransformerFactory(String classname)(Code) | | Set the transformer factory used by this component
|
transform | public void transform(Source source, Source stylesheet, Parameters params, Result result) throws XSLTProcessorException(Code) | | |
|
|