| java.lang.Object net.sf.saxon.expr.ComputedExpression net.sf.saxon.instruct.Instruction net.sf.saxon.instruct.SimpleNodeConstructor net.sf.saxon.instruct.ValueOf
ValueOf | final public class ValueOf extends SimpleNodeConstructor (Code) | | An xsl:value-of element in the stylesheet.
The xsl:value-of element takes attributes:
- a mandatory attribute select="expression".
This must be a valid String expression
- an optional disable-output-escaping attribute, value "yes" or "no"
- an optional separator attribute. This is handled at compile-time: if the separator attribute
is present, the select expression passed in here will be a call to the string-join() function.
|
Constructor Summary | |
public | ValueOf(Expression select, boolean disable, boolean noNodeIfEmpty) |
ValueOf | public ValueOf(Expression select, boolean disable, boolean noNodeIfEmpty)(Code) | | |
checkPermittedContents | public void checkPermittedContents(SchemaType parentType, StaticContext env, boolean whole) throws XPathException(Code) | | Check statically that the results of the expression are capable of constructing the content
of a given schema type.
Parameters: parentType - The schema type Parameters: env - the static context Parameters: whole - throws: net.sf.saxon.trans.XPathException - if the expression doesn't match the required content type |
computeCardinality | public int computeCardinality()(Code) | | |
display | public void display(int level, NamePool pool, PrintStream out)(Code) | | Display this instruction as an expression, for diagnostics
|
getInstructionNameCode | public int getInstructionNameCode()(Code) | | Get the name of this instruction for diagnostic and tracing purposes
|
promoteInst | protected void promoteInst(PromotionOffer offer) throws XPathException(Code) | | Offer promotion for subexpressions. The offer will be accepted if the subexpression
is not dependent on the factors (e.g. the context item) identified in the PromotionOffer.
By default the offer is not accepted - this is appropriate in the case of simple expressions
such as constant values and variable references where promotion would give no performance
advantage. This method is always called at compile time.
Parameters: offer - details of the offer, for example the offer to moveexpressions that don't depend on the context to an outer level inthe containing expression exception: XPathException - if any error is detected |
setIsNumberingInstruction | public void setIsNumberingInstruction()(Code) | | Indicate that this is really an xsl:nunber instruction
|
|
|