net.sf.saxon.instruct

Class AttributeSet

public class AttributeSet extends Procedure

The compiled form of an xsl:attribute-set element in the stylesheet.
Field Summary
StructuredQNameattributeSetName
Constructor Summary
AttributeSet()
Create an empty attribute set
Method Summary
voidexpand(XPathContext context)
Evaluate an attribute set
protected static voidexpand(AttributeSet[] asets, XPathContext context)
Expand an array of attribute sets
intgetConstructType()
Get the type of construct.
intgetFocusDependencies()
Determine whether the attribute set has any dependencies on the focus
StructuredQNamegetObjectName()
Get a name identifying the object of the expression, for example a function name, template name, variable name, key name, element name, etc.
voidsetName(StructuredQName attributeSetName)
Set the name of the attribute-set
voidsetStackFrameMap(SlotManager stackFrameMap)
Set the stack frame map which allocates slots to variables declared in this attribute set
voidsetUseAttributeSets(AttributeSet[] useAttributeSets)
Set the attribute sets used by this attribute set

Field Detail

attributeSetName

StructuredQName attributeSetName

Constructor Detail

AttributeSet

public AttributeSet()
Create an empty attribute set

Method Detail

expand

public void expand(XPathContext context)
Evaluate an attribute set

Parameters: context the dynamic context

Throws: XPathException if any failure occurs

expand

protected static void expand(AttributeSet[] asets, XPathContext context)
Expand an array of attribute sets

Parameters: asets the attribute sets to be expanded context the run-time context to use

Throws: XPathException

getConstructType

public int getConstructType()
Get the type of construct. This will either be the fingerprint of a standard XSLT instruction name (values in StandardNames: all less than 1024) or it will be a constant in class Location.

getFocusDependencies

public int getFocusDependencies()
Determine whether the attribute set has any dependencies on the focus

Returns: the dependencies

getObjectName

public StructuredQName getObjectName()
Get a name identifying the object of the expression, for example a function name, template name, variable name, key name, element name, etc. This is used only where the name is known statically.

setName

public void setName(StructuredQName attributeSetName)
Set the name of the attribute-set

Parameters: attributeSetName the name of the attribute-set

setStackFrameMap

public void setStackFrameMap(SlotManager stackFrameMap)
Set the stack frame map which allocates slots to variables declared in this attribute set

Parameters: stackFrameMap the stack frame map

setUseAttributeSets

public void setUseAttributeSets(AttributeSet[] useAttributeSets)
Set the attribute sets used by this attribute set

Parameters: useAttributeSets the set of attribute sets used by this attribute set