public interface IXsltPipelineService extends IService
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
Modifier and Type | Field and Description |
---|---|
static String |
XSLTPIPELINE_SERVICE |
Modifier and Type | Method and Description |
---|---|
String |
getFormat()
WARNING: Deprecated Method (This version is error prone) !!!
|
IContent |
handle(InputStream xml,
InputStream xsl,
Hashtable properties)
This method calls the XSLT processor.
|
IContent |
handle(InputStream xml,
InputStream xsl,
Hashtable properties,
String mime)
This method calls the XSLT processor.
|
IContent |
handle(IProducer xml,
IProducer xsl,
Hashtable properties)
This method calls the XSLT processor.
|
IContent |
handle(IProducer xml,
IProducer xsl,
Hashtable properties,
String mime)
This method calls the XSLT processor.
|
IContent |
handle(IProducer xml,
String xslUrl,
Hashtable properties)
This method calls the XSLT processor.
|
IContent |
handle(IProducer xml,
String xslUrl,
Hashtable properties,
String mime)
This method calls the XSLT processor.
|
IContent |
handle(String xmlUrl,
String xslUrl,
Hashtable properties)
This method calls the XSLT processor.
|
IContent |
handle(String xmlUrl,
String xslUrl,
Hashtable properties,
String mime)
This method calls the XSLT processor.
|
void |
setFormat(String mime)
WARNING: Deprecated Method (This version is error prone) !!!
|
getDescription, getDescription, getID
static final String XSLTPIPELINE_SERVICE
void setFormat(String mime)
mime
- Mime type e.g. "text/html".String getFormat()
IContent handle(IProducer xml, IProducer xsl, 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 situationIContent handle(IProducer xml, IProducer xsl, Hashtable properties, 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 situationIContent handle(InputStream xml, InputStream xsl, 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 situationIContent handle(InputStream xml, InputStream xsl, Hashtable properties, 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 situationIContent handle(IProducer xml, String xslUrl, 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 situationIContent handle(IProducer xml, String xslUrl, Hashtable properties, 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 situationIContent handle(String xmlUrl, String xslUrl, Hashtable properties) throws WcmException
xmlUrl
- XML sourcexslUrl
- XSL sourceproperties
- (optional) Properties are passed to the XSLT processor.WcmException
- Exception raised in failure situationIContent handle(String xmlUrl, String xslUrl, Hashtable properties, 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 situationAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice