org.apache.xalan.templates
Class FuncDocument
- ExpressionNode, ExpressionOwner, java.io.Serializable, SourceLocator, XPathVisitable
public class FuncDocument
Execute the Doc() function.
When the document function has exactly one argument and the argument
is a node-set, then the result is the union, for each node in the
argument node-set, of the result of calling the document function with
the first argument being the string-value of the node, and the second
argument being a node-set with the node as its only member. When the
document function has two arguments and the first argument is a node-set,
then the result is the union, for each node in the argument node-set,
of the result of calling the document function with the first argument
being the string-value of the node, and with the second argument being
the second argument passed to the document function.
asIterator, asIteratorRaw, asNode, assertion, bool, canTraverseOutsideSubtree, deepEquals, error, execute, execute, execute, execute, executeCharsToContentHandler, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, fixupVariables, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isNodesetExpr, isStableNumber, num, warn, xstr |
error
public void error(XPathContext xctxt,
String msg,
args[] )
throws javax.xml.transform.TransformerException Tell the user of an error, and probably throw an
exception.
xctxt - The XPath runtime state.msg - The error message key
execute
public XObject execute(XPathContext xctxt)
throws javax.xml.transform.TransformerException Execute the function. The function must return
a valid object.
- execute in interface Function
xctxt - The current execution context.
isNodesetExpr
public boolean isNodesetExpr()
Tell if the expression is a nodeset expression.
- isNodesetExpr in interface Expression
- true if the expression can be represented as a nodeset.
warn
public void warn(XPathContext xctxt,
String msg,
args[] )
throws javax.xml.transform.TransformerException Warn the user of a problem.
xctxt - The XPath runtime state.msg - Warning message key
Copyright B) 2004 Apache XML Project. All Rights Reserved.