net.sf.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
Field Summary
protected Expressionselect
Method Summary
protected voidcompileContent(Executable exec, SimpleNodeConstructor inst, Expression separator)
protected abstract StringgetErrorCodeForSelectPlusContent()
Get the error code to be returned when the element has a select attribute but is not empty.
booleanisInstruction()
Determine whether this node is an instruction.
booleanmayContainSequenceConstructor()
Determine whether this type of element is allowed to contain a template-body
voidvalidate()

Field Detail

select

protected Expression select

Method Detail

compileContent

protected void compileContent(Executable exec, SimpleNodeConstructor inst, Expression separator)

getErrorCodeForSelectPlusContent

protected abstract String getErrorCodeForSelectPlusContent()
Get the error code to be returned when the element has a select attribute but is not empty.

Returns: the error code defined for this condition, for this particular instruction

isInstruction

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

Returns: true - it is an instruction

mayContainSequenceConstructor

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

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

validate

public void validate()