com.icl.saxon.style

Class XSLStringConstructor

public abstract class XSLStringConstructor extends StyleElement

Common superclass for XSLT elements whose content template produces a text value: xsl:attribute, xsl:comment, and xsl:processing-instruction
Method Summary
StringexpandChildren(Context context)
Expand the stylesheet elements subordinate to this one, returning the result as a string.
booleanisInstruction()
Determine whether this node is an instruction.
booleanmayContainTemplateBody()
Determine whether this type of element is allowed to contain a template-body
protected voidoptimize()

Method Detail

expandChildren

public String expandChildren(Context context)
Expand the stylesheet elements subordinate to this one, returning the result as a string. The expansion must not generate any element or attribute nodes.

Parameters: context The context in the source document

isInstruction

public boolean isInstruction()
Determine whether this node is an instruction.

Returns: true - it is an instruction

mayContainTemplateBody

public boolean mayContainTemplateBody()
Determine whether this type of element is allowed to contain a template-body

Returns: true: yes, it may contain a template-body

optimize

protected void optimize()