|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The XSLT-Pipeline is a specialized version of the pipeline.
XSLT-Pipeline is used to transform XML into another form via XSL. The code sample creates a XSLT pipeline and transforms a XML resource:
IResource xml = ...
IResource xsl = ...
IXsltPipelineService xsltpl;
xsltpl = (IXsltPipelineService) ResourceFactory.getInstance().getServiceFactory().
getService("xsltpipeline");
IContent content = xsltpl.handle(ProducerFromResource(xml),
ProducerFromResource(xsl),
null)
Copyright (c) SAP Portals Europe GmbH 2001
| Method Summary | |
java.lang.String |
getFormat()
WARNING: Deprecated Method (This version is error prone) !!! |
IContent |
handle(java.io.InputStream xml,
java.io.InputStream xsl,
java.util.Hashtable properties)
This method calls the XSLT processor. |
IContent |
handle(java.io.InputStream xml,
java.io.InputStream xsl,
java.util.Hashtable properties,
java.lang.String mime)
This method calls the XSLT processor. |
IContent |
handle(IProducer xml,
IProducer xsl,
java.util.Hashtable properties)
This method calls the XSLT processor. |
IContent |
handle(IProducer xml,
IProducer xsl,
java.util.Hashtable properties,
java.lang.String mime)
This method calls the XSLT processor. |
IContent |
handle(IProducer xml,
java.lang.String xslUrl,
java.util.Hashtable properties)
This method calls the XSLT processor. |
IContent |
handle(IProducer xml,
java.lang.String xslUrl,
java.util.Hashtable properties,
java.lang.String mime)
This method calls the XSLT processor. |
IContent |
handle(java.lang.String xmlUrl,
java.lang.String xslUrl,
java.util.Hashtable properties)
This method calls the XSLT processor. |
IContent |
handle(java.lang.String xmlUrl,
java.lang.String xslUrl,
java.util.Hashtable properties,
java.lang.String mime)
This method calls the XSLT processor. |
void |
setFormat(java.lang.String mime)
WARNING: Deprecated Method (This version is error prone) !!! |
| Methods inherited from interface com.sapportals.wcm.service.IService |
getDescription, getDescription, getID |
| Method Detail |
public void setFormat(java.lang.String mime)
mime - Mime type e.g. "text/html".public java.lang.String getFormat()
public IContent handle(IProducer xml,
IProducer xsl,
java.util.Hashtable properties)
throws WcmException
ProducerFromResource for the XSL source.xsl - XSL Source. If NULL the XSL stylesheet must be
defined in the XML.properties - Properties to pass to processor and formatter. If null
then no parameters are passed. See IPipelineService.handle(IProducer, IProcessor, Hashtable)xml - TBD: Description of the incoming method parameterWcmException - Exception raised in failure situation
public IContent handle(IProducer xml,
IProducer xsl,
java.util.Hashtable properties,
java.lang.String mime)
throws WcmException
ProducerFromResource for the XSL source.xml - XML Source. See also IPipelineService.handle(IProducer, IProcessor, Hashtable)xsl - XSL Source. If NULL the XSL stylesheet must be
defined in the XML.properties - Properties to pass to processor and formatter. If null
then no parameters are passed. See IPipelineService.handle(IProducer, IProcessor, Hashtable)mime - Mime type for formatter. If mime=null then
"text/html" is usedWcmException - Exception raised in failure situation
public IContent handle(java.io.InputStream xml,
java.io.InputStream xsl,
java.util.Hashtable properties)
throws WcmException
Iproducer interface instead.xml - Inputstream to the XML.xsl - Inputstream to the XSL. If NULL the XSL stylesheet
must be defined in the XML.properties - Properties to pass to processor and formatter. If null
then no parameters are passed. See IPipelineService.handle(IProducer, IProcessor, Hashtable)WcmException - Exception raised in failure situation
public IContent handle(java.io.InputStream xml,
java.io.InputStream xsl,
java.util.Hashtable properties,
java.lang.String mime)
throws WcmException
Iproducer interface instead.xml - Inputstream of XML.xsl - Inputstream of XSL. If NULL the XSL stylesheet must
be defined in the XML.properties - Properties to pass to processor and formatter. If null
then no parameters are passed. See IPipelineService.handle(IProducer, IProcessor, Hashtable)mime - Mime type for formatter. If mime=null then
"text/html" is usedWcmException - Exception raised in failure situation
public IContent handle(IProducer xml,
java.lang.String xslUrl,
java.util.Hashtable properties)
throws WcmException
xml - XML sourcexslUrl - XSL sourceproperties - Properties to pass to processor and formatter. If null
then no parameters are passed. See IPipelineService.handle(IProducer, IProcessor, Hashtable)WcmException - Exception raised in failure situation
public IContent handle(IProducer xml,
java.lang.String xslUrl,
java.util.Hashtable properties,
java.lang.String mime)
throws WcmException
xml - XML sourcexslUrl - XSL sourceproperties - Properties to pass to processor and formatter. If null
then no parameters are passed. See IPipelineService.handle(IProducer, IProcessor, Hashtable)mime - Mime type for formatter. If mime=null then
"text/html" is usedWcmException - Exception raised in failure situation
public IContent handle(java.lang.String xmlUrl,
java.lang.String xslUrl,
java.util.Hashtable properties)
throws WcmException
xmlUrl - XML sourcexslUrl - XSL sourceproperties - (optional) Properties are passed to the XSLT processor.WcmException - Exception raised in failure situation
public IContent handle(java.lang.String xmlUrl,
java.lang.String xslUrl,
java.util.Hashtable properties,
java.lang.String mime)
throws WcmException
xmlUrl - XML sourcexslUrl - XSL sourceproperties - (optional) Properties are passed to the XSLT processor.mime - Mime type for formatter. If mime=null then "text/html" is usedWcmException - Exception raised in failure situation
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||