net.sf.saxon.instruct
public final class FixedAttribute extends AttributeCreator
Constructor Summary | |
---|---|
FixedAttribute(int nameCode, int validationAction, SimpleType schemaType, int annotation)
Construct an Attribute instruction |
Method Summary | |
---|---|
void | checkPermittedContents(SchemaType parentType, StaticContext env, boolean whole)
Check that any elements and attributes constructed or returned by this expression are acceptable
in the content model of a given complex type. |
Expression | copy()
Copy an expression. |
Item | evaluateItem(XPathContext context) |
int | evaluateNameCode(XPathContext context) |
void | explain(ExpressionPresenter out)
Diagnostic print of expression structure. |
int | getAttributeNameCode()
Get the name pool name code of the attribute to be constructed |
int | getCardinality() |
int | getInstructionNameCode()
Get the name of this instruction (return 'xsl:attribute') |
ItemType | getItemType(TypeHierarchy th) |
void | localTypeCheck(ExpressionVisitor visitor, ItemType contextItemType) |
void | setSelect(Expression select, Configuration config)
Set the expression defining the value of the attribute. |
Parameters: nameCode Represents the attribute name validationAction the validation required, for example strict or lax schemaType the schema type against which validation is required, null if not applicable annotation Integer code identifying the type named in the type
attribute
of the instruction - zero if the attribute was not present
Returns: the copy of the original expression
Returns: the attribute's name code
Parameters: select The expression defining the content of the attribute config The Saxon configuration
Throws: XPathException if the expression is a constant, and validation is requested, and the constant doesn't match the required type.