| java.lang.Object net.sf.saxon.expr.ComputedExpression net.sf.saxon.instruct.Instruction net.sf.saxon.instruct.SimpleNodeConstructor net.sf.saxon.instruct.FixedAttribute
FixedAttribute | final public class FixedAttribute extends SimpleNodeConstructor (Code) | | An instruction derived from an xsl:attribute element in stylesheet, or from
an attribute constructor in XQuery. This version deals only with attributes
whose name is known at compile time. It is also used for attributes of
literal result elements. The value of the attribute is in general computed
at run-time.
|
FixedAttribute | public FixedAttribute(int nameCode, int validationAction, SimpleType schemaType, int annotation)(Code) | | Construct an Attribute instruction
Parameters: nameCode - Represents the attribute name Parameters: annotation - Integer code identifying the type named in the type attributeof the instruction - zero if the attribute was not present |
checkPermittedContents | public void checkPermittedContents(SchemaType parentType, StaticContext env, boolean whole) throws XPathException(Code) | | Check that any elements and attributes constructed or returned by this expression are acceptable
in the content model of a given complex type. It's always OK to say yes, since the check will be
repeated at run-time. The process of checking element and attribute constructors against the content
model of a complex type also registers the type of content expected of those constructors, so the
static validation can continue recursively.
|
display | public void display(int level, NamePool pool, PrintStream out)(Code) | | Display this instruction as an expression, for diagnostics
|
getCardinality | public int getCardinality()(Code) | | |
getInstructionNameCode | public int getInstructionNameCode()(Code) | | Get the name of this instruction (return 'xsl:attribute')
|
processLeavingTail | public TailCall processLeavingTail(XPathContext context) throws XPathException(Code) | | Process this instruction
Parameters: context - the dynamic context of the transformation a TailCall to be executed by the caller, always null for this instruction |
setNoSpecialChars | public void setNoSpecialChars()(Code) | | Indicate that the attribute value contains no special characters that
might need escaping
|
setRejectDuplicates | public void setRejectDuplicates()(Code) | | Indicate that two attributes with the same name are not acceptable.
(This option is set in XQuery, but not in XSLT)
|
setSelect | public void setSelect(Expression select) throws StaticError(Code) | | Set the expression defining the value of the attribute. If this is a constant, and if
validation against a schema type was requested, the validation is done immediately.
Parameters: select - The expression defining the content of the attribute throws: StaticError - if the expression is a constant, and validation is requested, andthe constant doesn't match the required type. |
|
|