net.sf.saxon.instruct
public final class FixedAttribute extends SimpleNodeConstructor
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. |
void | display(int level, NamePool pool, PrintStream out)
Display this instruction as an expression, for diagnostics |
Item | evaluateItem(XPathContext context) |
protected int | evaluateNameCode(XPathContext context) |
int | getCardinality() |
InstructionInfo | getInstructionInfo() |
int | getInstructionNameCode()
Get the name of this instruction (return 'xsl:attribute') |
ItemType | getItemType(TypeHierarchy th) |
void | localTypeCheck(StaticContext env, ItemType contextItemType) |
TailCall | processLeavingTail(XPathContext context)
Process this instruction |
void | setNoSpecialChars()
Indicate that the attribute value contains no special characters that
might need escaping |
void | setRejectDuplicates()
Indicate that two attributes with the same name are not acceptable.
|
void | setSelect(Expression select, Configuration config)
Set the expression defining the value of the attribute. |
Parameters: nameCode Represents the attribute name annotation Integer code identifying the type named in the type
attribute
of the instruction - zero if the attribute was not present
Parameters: context the dynamic context of the transformation
Returns: a TailCall to be executed by the caller, always null for this instruction
Parameters: select The expression defining the content of the attribute config
Throws: StaticError if the expression is a constant, and validation is requested, and the constant doesn't match the required type.