public interface IDfXMLTransformOperation extends IDfOperation
GENERATE_RESOURCE_FORK, IGNORE_RESOURCE_FORK, REQUIRE_RESOURCE_FORK, RESOURCE_FORK_UNDEFINED, USE_RESOURCE_FORK_IF_AVAILABLE
Modifier and Type | Method and Description |
---|---|
void |
setDestination(java.lang.Object destinationObject)
Specify the transformed document's destination.
|
void |
setSession(IDfSession session)
Set the session that will be used by this operation.
|
void |
setTransformation(java.lang.Object transformObject)
Specify the XSLT transformation object that will be applied to the input.
|
void |
setXSLTParameter(java.lang.String paramName,
java.lang.String value)
Specify a parameter that will be passed to the stylesheet.
|
abort, add, areDisabledRegistryUpdates, canUndo, disableRegistryUpdates, enablePopulateWithReferences, execute, getContext, getDescription, getErrors, getName, getNodes, getOperationMonitor, getOperationType, getProperties, getRootNodes, getSession, getSteps, isAborted, isEnabledPopulateWithReferences, logError, removeNode, reportError, resetErrors, setOperationMonitor, succeeded
void setSession(IDfSession session) throws DfException
setSession
in interface IDfOperation
session
- IDfSession objectDfException
IDfSession
void setTransformation(java.lang.Object transformObject) throws DfException
transformObject
- XSLT transformation object that will be applied on
the input as any one of the following types:
IDfSysObject, URL, Reader, IDfFile
.DfException
void setDestination(java.lang.Object destinationObject) throws DfException
IDfImportOperation
is specified as the
destination, the transformed document will be imported as
a new Docbase object.
IDfSysObject
is specified as the destination,
the transformed output file will replace the content of that
IDfSysObject
.
node.setOutputFormat
method.
destinationObject
- specifies the transformed document's
destination as one of the following types:
IDfFile, OutputStream, Writer, IDfImportOperation, IDfSysObject
.DfException
IDfXMLTransformNode.setOutputFormat(java.lang.String)
void setXSLTParameter(java.lang.String paramName, java.lang.String value) throws DfException
<xsl:param name="PROJECT_NAME" select="string('default project')"/>
You can pass the value for PROJECT_NAME as follows:
transformOper.setXSLTParameter("PROJECT_NAME", "Project ABC");paramName
- The name of the parameter.value
- The value of the parameter.DfException
Copyright 1994-2023 OpenText Corporation. All rights reserved.