|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is the interface of the XSLT processor.
| Nested Class Summary | |
static class |
XSLTProcessor.TransformerHandlerAndValidity
|
| Method Summary | |
TransformerHandler |
getTransformerHandler(Source stylesheet)
Same as getTransformerHandler(Source,XMLFilter), with
filter set to null. |
TransformerHandler |
getTransformerHandler(Source stylesheet,
XMLFilter filter)
Return a TransformerHandler for a given
stylesheet Source. |
XSLTProcessor.TransformerHandlerAndValidity |
getTransformerHandlerAndValidity(Source stylesheet)
Same as getTransformerHandlerAndValidity(Source,XMLFilter), with
filter set to null. |
XSLTProcessor.TransformerHandlerAndValidity |
getTransformerHandlerAndValidity(Source stylesheet,
XMLFilter filter)
Return a TransformerHandler and
SourceValidity for a given stylesheet
Source. |
void |
transform(Source source,
Source stylesheet,
Map params,
Result result)
Applies an XSLT stylesheet to an XML document. |
| Method Detail |
public TransformerHandler getTransformerHandler(Source stylesheet,
XMLFilter filter)
throws XSLTProcessorException
Return a TransformerHandler for a given
stylesheet Source. This can be used in a pipeline to
handle the transformation of a stream of SAX events. See TraxTransformer.setConsumer(org.apache.cocoon.xml.XMLConsumer) for
an example of how to use this method.
The additional filter argument, if it's not
null, is inserted in the chain SAX events as an XML
filter during the parsing or the source document.
This method caches the Templates object with meta information (modification time and list of included stylesheets) and performs a reparsing only if this changes.
stylesheet - a Source valuefilter - a XMLFilter value
TransformerHandler value
XSLTProcessorException - if an error occurs
public XSLTProcessor.TransformerHandlerAndValidity getTransformerHandlerAndValidity(Source stylesheet,
XMLFilter filter)
throws XSLTProcessorException
Return a TransformerHandler and
SourceValidity for a given stylesheet
Source. This can be used in a pipeline to
handle the transformation of a stream of SAX events. See TraxTransformer.setConsumer(org.apache.cocoon.xml.XMLConsumer) for
an example of how to use this method.
The additional filter argument, if it's not
null, is inserted in the chain SAX events as an XML
filter during the parsing or the source document.
This method caches the Templates object with meta information (modification time and list of included stylesheets) and performs a reparsing only if this changes.
stylesheet - a Source valuefilter - a XMLFilter value
TransformerHandlerAndValidity value
XSLTProcessorException - if an error occurs
public TransformerHandler getTransformerHandler(Source stylesheet)
throws XSLTProcessorException
getTransformerHandler(Source,XMLFilter), with
filter set to null.
stylesheet - a Source value
TransformerHandler value
XSLTProcessorException - if an error occurs
public XSLTProcessor.TransformerHandlerAndValidity getTransformerHandlerAndValidity(Source stylesheet)
throws XSLTProcessorException
getTransformerHandlerAndValidity(Source,XMLFilter), with
filter set to null.
stylesheet - a Source value
XSLTProcessor.TransformerHandlerAndValidity value
XSLTProcessorException - if an error occurs
public void transform(Source source,
Source stylesheet,
Map params,
Result result)
throws XSLTProcessorException
Source
objects. The result of the transformation is placed in
Result, which should be properly initialized before
invoking this method. Any additional parameters passed in
params will become arguments to the stylesheet.
source - a Source valuestylesheet - a Source valueparams - a Mapresult - a Result value
XSLTProcessorException - if an error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||