complexType tld-attributeType

complexType {http://java.sun.com/xml/ns/javaee}tld-attributeType

Abstractfalse (This can be used in an instance)
Target Namespacehttp://java.sun.com/xml/ns/javaee
Declared Namespacesxmlns:javaee=http://java.sun.com/xml/ns/javaee
xmlns:xsd=http://www.w3.org/2001/XMLSchema


Source

<xsd:complexType name="tld-attributeType">
    <
xsd:annotation>
        <
xsd:documentation>
The attribute element defines an attribute for the nesting
tag. The attribute element may have several subelements
defining:

description a description of the attribute

name the name of the attribute

required whether the attribute is required or
optional

rtexprvalue whether the attribute is a runtime attribute

type the type of the attributes

fragment whether this attribute is a fragment

deferred-value present if this attribute is to be parsed as a
javax.el.ValueExpression

deferred-method present if this attribute is to be parsed as a
javax.el.MethodExpression
        
</xsd:documentation>
    </
xsd:annotation>
    <
xsd:sequence>
        <
xsd:element name="description" type="javaee:descriptionType" minOccurs="0"
            
maxOccurs="unbounded"/>
        <
xsd:element name="name" type="javaee:java-identifierType"/>
        <
xsd:element name="required" type="javaee:generic-booleanType" minOccurs="0">
            <
xsd:annotation>
                <
xsd:documentation>
Defines if the nesting attribute is required or
optional.

If not present then the default is "false", i.e
the attribute is optional.
                
</xsd:documentation>
            </
xsd:annotation>
        </
xsd:element>
        <
xsd:choice>
            <
xsd:sequence>
                <
xsd:sequence minOccurs="0">
                    <
xsd:element name="rtexprvalue" type="javaee:generic-booleanType">
                        <
xsd:annotation>
                            <
xsd:documentation>
Defines if the nesting attribute can have scriptlet
expressions as a value, i.e the value of the
attribute may be dynamically calculated at request
time, as opposed to a static value determined at
translation time.
If not present then the default is "false", i.e the
attribute has a static value
                            
</xsd:documentation>
                        </
xsd:annotation>
                    </
xsd:element>
                    <
xsd:element name="type" type="javaee:fully-qualified-classType" minOccurs="0">
                        <
xsd:annotation>
                            <
xsd:documentation>
Defines the Java type of the attributes value.
If this element is omitted, the expected type is
assumed to be "java.lang.Object".
                            
</xsd:documentation>
                        </
xsd:annotation>
                    </
xsd:element>
                </
xsd:sequence>
                <
xsd:choice>
                    <
xsd:element name="deferred-value" type="javaee:tld-deferred-valueType"
                        
minOccurs="0">
                        <
xsd:annotation>
                            <
xsd:documentation>
Present if the value for this attribute is to be
passed to the tag handler as a
javax.el.ValueExpression. This allows for deferred
evaluation of EL expressions. An optional subelement
will contain the expected type that the value will
be coerced to after evaluation of the expression.
The type defaults to Object if one is not provided.
                            
</xsd:documentation>
                        </
xsd:annotation>
                    </
xsd:element>
                    <
xsd:element name="deferred-method" type="javaee:tld-deferred-methodType"
                        
minOccurs="0">
                        <
xsd:annotation>
                            <
xsd:documentation>
Present if the value for this attribute is to be
passed to the tag handler as a
javax.el.MethodExpression. This allows for deferred
evaluation of an EL expression that identifies a
method to be invoked on an Object. An optional
subelement will contain the expected method
signature. The signature defaults to "void method()"
if one is not provided.
                            
</xsd:documentation>
                        </
xsd:annotation>
                    </
xsd:element>
                </
xsd:choice>
            </
xsd:sequence>
            <
xsd:element name="fragment" type="javaee:generic-booleanType" minOccurs="0">
                <
xsd:annotation>
                    <
xsd:documentation>
"true" if this attribute is of type
javax.jsp.tagext.JspFragment, representing dynamic
content that can be re-evaluated as many times
as needed by the tag handler. If omitted or "false",
the default is still type="java.lang.String"
                    
</xsd:documentation>
                </
xsd:annotation>
            </
xsd:element>
        </
xsd:choice>
    </
xsd:sequence>
    <
xsd:attribute name="id" type="xsd:ID"/>
</
xsd:complexType>


Documentation

	The attribute element defines an attribute for the nesting
	tag.  The attribute element may have several subelements
	defining:
	description     a description of the attribute
	name            the name of the attribute
	required        whether the attribute is required or
			optional
	rtexprvalue     whether the attribute is a runtime attribute
	type            the type of the attributes
	fragment        whether this attribute is a fragment
        deferred-value  present if this attribute is to be parsed as a
                        javax.el.ValueExpression
        deferred-method present if this attribute is to be parsed as a
                        javax.el.MethodExpression


complexType tld-attributeType


Stylus Studio XML Schema Library Home
Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio®, a product from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2006 All Rights Reserved.