|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xsl.process.ValueOfTemplate
A template that creates a text node whose value is given by a string
expression. This template corresponds to the xsl:value-of
element.
Constructor Summary | |
ValueOfTemplate(Expression stringExpr,
boolean noEscaping,
Node nsContext)
Constructs a value-of template with the specified string expression. |
Method Summary | |
void |
dump(PrintWriter out,
int indent)
Dumps this object to the specified output stream. |
Expression |
getExpr()
Returns this template's string expression. |
Node |
getNamespaceContext()
Return the node that is the namespace context for this template |
void |
instantiate(ProcessingEnv env,
Node currentNode,
ResultHandler result)
Instantiates this template for the specified current node and sends the result to the specified result handler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ValueOfTemplate(Expression stringExpr, boolean noEscaping, Node nsContext)
stringExpr
- the value-of template's string expressionnoEscaping
- If serialized, text should be output without escapingnsContext
- The node in the style sheet from which this template comesMethod Detail |
public Expression getExpr()
public void instantiate(ProcessingEnv env, Node currentNode, ResultHandler result) throws XSLException
For a ValueOfTemplate
, this method evaluates its string
expression and adds a text node containing the result to the result
tree.
instantiate
in interface Template
env
- the current processing environmentcurrentNode
- the current source noderesult
- the handler to which results are sent
XSLException
- if a fatal error occurs during instantiationpublic Node getNamespaceContext()
getNamespaceContext
in interface Template
public void dump(PrintWriter out, int indent)
dump
in interface Template
out
- the output stream to write toindent
- number of tabs to indent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |