📄 web-jsptaglibrary_2_1.xsd
字号:
<xsd:annotation>
<xsd:documentation>
The example element contains an informal description
of an example of the use of a tag.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="tag-extension"
type="javaee:tld-extensionType"
minOccurs="0"
maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Tag extensions are for tool use only and must not affect
the behavior of a container.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>
<!-- **************************************************** -->
<xsd:complexType name="tagType">
<xsd:annotation>
<xsd:documentation>
The tag defines a unique tag in this tag library. It has one
attribute, id.
The tag element may have several subelements defining:
description Optional tag-specific information
display-name A short name that is intended to be
displayed by tools
icon Optional icon element that can be used
by tools
name The unique action name
tag-class The tag handler class implementing
javax.servlet.jsp.tagext.JspTag
tei-class An optional subclass of
javax.servlet.jsp.tagext.TagExtraInfo
body-content The body content type
variable Optional scripting variable information
attribute All attributes of this action that are
evaluated prior to invocation.
dynamic-attributes Whether this tag supports additional
attributes with dynamic names. If
true, the tag-class must implement the
javax.servlet.jsp.tagext.DynamicAttributes
interface. Defaults to false.
example Optional informal description of an
example of a use of this tag
tag-extension Zero or more extensions that provide extra
information about this tag, for tool
consumption
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="javaee:descriptionGroup"/>
<xsd:element name="name"
type="javaee:tld-canonical-nameType"/>
<xsd:element name="tag-class"
type="javaee:fully-qualified-classType">
<xsd:annotation>
<xsd:documentation>
Defines the subclass of javax.serlvet.jsp.tagext.JspTag
that implements the request time semantics for
this tag. (required)
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="tei-class"
type="javaee:fully-qualified-classType"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Defines the subclass of javax.servlet.jsp.tagext.TagExtraInfo
for this tag. (optional)
If this is not given, the class is not consulted at
translation time.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="body-content"
type="javaee:body-contentType">
<xsd:annotation>
<xsd:documentation>
Specifies the format for the body of this tag.
The default in JSP 1.2 was "JSP" but because this
is an invalid setting for simple tag handlers, there
is no longer a default in JSP 2.0. A reasonable
default for simple tag handlers is "scriptless" if
the tag can have a body.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="variable"
type="javaee:variableType"
minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="attribute"
type="javaee:tld-attributeType"
minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="dynamic-attributes"
type="javaee:generic-booleanType"
minOccurs="0"/>
<xsd:element name="example"
type="javaee:xsdStringType"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
The example element contains an informal description
of an example of the use of a tag.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="tag-extension"
type="javaee:tld-extensionType"
minOccurs="0"
maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Tag extensions are for tool use only and must not affect
the behavior of a container.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>
<!-- **************************************************** -->
<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>
<!-- **************************************************** -->
<xsd:complexType name="tld-canonical-nameType">
<xsd:annotation>
<xsd:documentation>
Defines the canonical name of a tag or attribute being
defined.
The name must conform to the lexical rules for an NMTOKEN.
</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:restriction base="javaee:xsdNMTOKENType"/>
</xsd:simpleContent>
</xsd:complexType>
<!-- **************************************************** -->
<xsd:complexType name="tld-deferred-methodType">
<xsd:annotation>
<xsd:documentation>
Defines information about how to provide the value for a
tag handler attribute that accepts a javax.el.MethodExpression.
The deferred-method element has one optional subelement:
method-signature Provides the signature, as in the Java
Language Specifies, that is expected for
the method being identified by the
expression.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="method-signature"
type="javaee:string"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Provides the expected signature of the method identified
by the javax.el.MethodExpression.
This disambiguates overloaded methods and ensures that
the return value is of the expected type.
The syntax of the method-signature element is identical
to that of the function-signature element. See the
documentation for function-signature for more details.
The name of the method is for documentation purposes only
and is ignored by the JSP container.
Example:
boolean validate(java.lang.String)
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>
<!-- **************************************************** -->
<xsd:complexType name="tld-deferred-valueType">
<xsd:annotation>
<xsd:documentation>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -