public interface IDfXMLTransformNode extends IDfOperationNode
Modifier and Type | Method and Description |
---|---|
void |
setDestination(java.lang.Object destinationObject)
Specify the transformed document's destination.
|
void |
setInputFormat(java.lang.String inputFormat)
Specify the input format for input object.
|
void |
setName(java.lang.String name)
Sets the name for this input transform node.
|
void |
setOutputFormat(java.lang.String outputFormat)
Specify the destination format for the output of the transformation.
|
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 this input node.
|
void |
setXSLTParameter(java.lang.String name,
java.lang.String value)
Specify a parameter that will be passed to the stylesheet.
|
getChildren, getEdgeProperties, getId, getOperation, getParent, getPersistentProperties, getProperties, isRoot
void setSession(IDfSession session) throws DfException
session
- sessionDfException
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 object.
IDfSysObject
is specified as the destination, the transformed document
will be used to set the primary content of the object.
node.setOutputFormat
method.
destinationObject
- specifies the transformed document's
destination as one of the following types:
IDfFile, OutputStream, Writer, IDfImportOperation, IDfSysObject
.DfException
setOutputFormat(java.lang.String)
void setName(java.lang.String name) throws DfException
Reader
or DOM
.
The user needs to set a meaningful name for such input objects.
name
- Name of the node.DfException
void setInputFormat(java.lang.String inputFormat) throws DfException
IDfSysObjects
.
To add the transformed document as a rendition of the input document:
setDestination
method;
inputFormat
- Format name of the object being transformed (e.g. xml)DfException
void setOutputFormat(java.lang.String outputFormat) throws DfException
To add the transformed document as a rendition of the input document:
setDestination
method;
The format can also be specified in the stylesheet (e.g. xsl:output method="html"
).
If the stylesheet specifies the output format, setting the destination format
though the setOutputFormat
method is not required.
outputFormat
- Format name of the transformation output. (e.g. html)DfException
setDestination(java.lang.Object)
,
setInputFormat(java.lang.String)
void setXSLTParameter(java.lang.String name, java.lang.String value)
<xsl:param name="PROJECT_NAME" select="string('default project')"/>
You can pass the value for PROJECT_NAME as follows:
transformNode.setXSLTParameter("PROJECT_NAME", "Project ABC");name
- The name of the parameter.value
- The value of the parameter.Copyright 1994-2023 OpenText Corporation. All rights reserved.