net.sf.saxon.instruct
public class QuerySimpleContentConstructor extends SimpleContentConstructor
| Field Summary | |
|---|---|
| boolean | noNodeIfEmpty |
| Constructor Summary | |
|---|---|
| QuerySimpleContentConstructor(Expression select, Expression separator, boolean noNodeIfEmpty) | |
| Method Summary | |
|---|---|
| protected int | computeCardinality()
Compute the cardinality of the result of the expression. |
| Item | evaluateItem(XPathContext context)
Evaluate an expression as a single item. |
| CharSequence | expandChildren(XPathContext context)
Expand the stylesheet elements subordinate to this one, returning the result
as a string. |
Returns: the cardinality, @link {StaticProperty.EXACTLY_ONE}
Parameters: context The context in which the expression is to be evaluated
Returns: the node or atomic value that results from evaluating the expression; or null to indicate that the result is an empty sequence
Throws: net.sf.saxon.trans.XPathException if any dynamic error occurs evaluating the expression
Parameters: context The dynamic context for the transformation