⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 web-jsptaglibrary_2_0.xsd

📁 在tomcat下运行的投票系统
💻 XSD
📖 第 1 页 / 共 2 页
字号:
      <xsd:element name="dynamic-attributes"
		   type="j2ee:generic-booleanType"
		   minOccurs="0"/>
      <xsd:element name="example"
		   type="j2ee: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="j2ee: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 attributre 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

      </xsd:documentation>
    </xsd:annotation>
    <xsd:sequence>
      <xsd:element name="description"
		   type="j2ee:descriptionType"
		   minOccurs="0" maxOccurs="unbounded"/>
      <xsd:element name="name"
		   type="j2ee:java-identifierType"/>
      <xsd:element name="required"
		   type="j2ee: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:element name="rtexprvalue"
		       type="j2ee:generic-booleanType"
		       minOccurs="0">
	    <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="j2ee:fully-qualified-classType"
		       minOccurs="0">
	    <xsd:annotation>
	      <xsd:documentation>

		Defines the Java type of the attributes value.  For
		static values (those determined at translation time)
		the type is always java.lang.String.

	      </xsd:documentation>
	    </xsd:annotation>
	  </xsd:element>
	</xsd:sequence>
	<xsd:element name="fragment"
		     type="j2ee: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="j2ee:xsdNMTOKENType"/>
    </xsd:simpleContent>
  </xsd:complexType>

<!-- **************************************************** -->

  <xsd:complexType name="tld-extensionType">
    <xsd:annotation>
      <xsd:documentation>

	The tld-extensionType is used to indicate
	extensions to a specific TLD element.

	It is used by elements to designate an extension block
	that is targeted to a specific extension designated by
	a set of extension elements that are declared by a
	namespace. The namespace identifies the extension to
	the tool that processes the extension.

	The type of the extension-element is abstract. Therefore,
	a concrete type must be specified by the TLD using
	xsi:type attribute for each extension-element.

      </xsd:documentation>
    </xsd:annotation>

    <xsd:sequence>
      <xsd:element name="extension-element"
		   type="j2ee:extensibleType"
		   maxOccurs="unbounded"/>
    </xsd:sequence>

    <xsd:attribute name="namespace"
		   use="required"
		   type="xsd:anyURI"/>
    <xsd:attribute name="id" type="xsd:ID"/>

  </xsd:complexType>

<!-- **************************************************** -->

  <xsd:complexType name="tldTaglibType">
    <xsd:annotation>
      <xsd:documentation>

	The taglib tag is the document root, it defines:

	description     a simple string describing the "use" of this taglib,
			should be user discernable

	display-name    the display-name element contains a
			short name that is intended to be displayed
			by tools

	icon            optional icon that can be used by tools

	tlib-version    the version of the tag library implementation

	short-name      a simple default short name that could be
			used by a JSP authoring tool to create
			names with a mnemonic value; for example,
			the it may be used as the prefered prefix
			value in taglib directives

	uri             a uri uniquely identifying this taglib

	validator       optional TagLibraryValidator information

	listener        optional event listener specification

	tag             tags in this tag library

	tag-file        tag files in this tag library

	function        zero or more EL functions defined in this
			tag library

	taglib-extension zero or more extensions that provide extra
			information about this taglib, for tool
			consumption

      </xsd:documentation>
    </xsd:annotation>
    <xsd:sequence>
      <xsd:group ref="j2ee:descriptionGroup"/>
      <xsd:element name="tlib-version"
		   type="j2ee:dewey-versionType">
	<xsd:annotation>
	  <xsd:documentation>

	    Describes this version (number) of the taglibrary.
	    It is described as a dewey decimal.

	  </xsd:documentation>
	</xsd:annotation>

      </xsd:element>

      <xsd:element name="short-name"
		   type="j2ee:tld-canonical-nameType">
	<xsd:annotation>
	  <xsd:documentation>

	    Defines a simple default name that could be used by
	    a JSP authoring tool to create names with a
	    mnemonicvalue; for example, it may be used as the
	    preferred prefix value in taglib directives.  Do
	    not use white space, and do not start with digits
	    or underscore.

	  </xsd:documentation>
	</xsd:annotation>

      </xsd:element>
      <xsd:element name="uri"
		   type="j2ee:xsdAnyURIType"
		   minOccurs="0">
	<xsd:annotation>
	  <xsd:documentation>

	    Defines a public URI that uniquely identifies this
	    version of the taglibrary.  Leave it empty if it
	    does not apply.

	  </xsd:documentation>
	</xsd:annotation>

      </xsd:element>
      <xsd:element name="validator"
		   type="j2ee:validatorType"
		   minOccurs="0">
      </xsd:element>
      <xsd:element name="listener"
		   type="j2ee:listenerType"
		   minOccurs="0" maxOccurs="unbounded">
      </xsd:element>
      <xsd:element name="tag"
		   type="j2ee:tagType"
		   minOccurs="0"
		   maxOccurs="unbounded"/>
      <xsd:element name="tag-file"
		   type="j2ee:tagFileType"
		   minOccurs="0"
		   maxOccurs="unbounded"/>
      <xsd:element name="function"
		   type="j2ee:functionType"
		   minOccurs="0"
		   maxOccurs="unbounded"/>
      <xsd:element name="taglib-extension"
		   type="j2ee:tld-extensionType"
		   minOccurs="0"
		   maxOccurs="unbounded">
	<xsd:annotation>
	  <xsd:documentation>

	    Taglib 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="version"
		   type="j2ee:dewey-versionType"
		   fixed="2.0"
		   use="required">
      <xsd:annotation>
	<xsd:documentation>

	  Describes the JSP version (number) this taglibrary
	  requires in order to function (dewey decimal)

	</xsd:documentation>
      </xsd:annotation>

    </xsd:attribute>
    <xsd:attribute name="id" type="xsd:ID"/>
  </xsd:complexType>

<!-- **************************************************** -->

  <xsd:complexType name="validatorType">
    <xsd:annotation>
      <xsd:documentation>

	A validator that can be used to validate
	the conformance of a JSP page to using this tag library is
	defined by a validatorType.

      </xsd:documentation>
    </xsd:annotation>

    <xsd:sequence>
      <xsd:element name="description"
		   type="j2ee:descriptionType"
		   minOccurs="0"
		   maxOccurs="unbounded"/>
      <xsd:element name="validator-class"
		   type="j2ee:fully-qualified-classType">
	<xsd:annotation>
	  <xsd:documentation>

	    Defines the TagLibraryValidator class that can be used
	    to validate the conformance of a JSP page to using this
	    tag library.

	  </xsd:documentation>
	</xsd:annotation>
      </xsd:element>
      <xsd:element name="init-param"
		   type="j2ee:param-valueType"
		   minOccurs="0" maxOccurs="unbounded">
	<xsd:annotation>
	  <xsd:documentation>

	    The init-param element contains a name/value pair as an
	    initialization param.

	  </xsd:documentation>
	</xsd:annotation>

      </xsd:element>

    </xsd:sequence>
    <xsd:attribute name="id" type="xsd:ID"/>
  </xsd:complexType>

<!-- **************************************************** -->

  <xsd:complexType name="variable-scopeType">
    <xsd:annotation>
      <xsd:documentation>

	This type defines scope of the scripting variable.  See
	TagExtraInfo for details.  The allowed values are,
	"NESTED", "AT_BEGIN" and "AT_END".

      </xsd:documentation>
    </xsd:annotation>

    <xsd:simpleContent>
      <xsd:restriction base="j2ee:string">
	<xsd:enumeration value="NESTED"/>
	<xsd:enumeration value="AT_BEGIN"/>
	<xsd:enumeration value="AT_END"/>
      </xsd:restriction>
    </xsd:simpleContent>
  </xsd:complexType>

<!-- **************************************************** -->

  <xsd:complexType name="variableType">
    <xsd:annotation>
      <xsd:documentation>

	The variableType provides information on the scripting
	variables defined by using this tag.  It is a (translation
	time) error for a tag that has one or more variable
	subelements to have a TagExtraInfo class that returns a
	non-null value from a call to getVariableInfo().

	The subelements of variableType are of the form:

	description              Optional description of this
				 variable

	name-given               The variable name as a constant

	name-from-attribute      The name of an attribute whose
				 (translation time) value will
				 give the name of the
				 variable.  One of name-given or
				 name-from-attribute is required.

	variable-class           Name of the class of the variable.
				 java.lang.String is default.

	declare                  Whether the variable is declared
				 or not.  True is the default.

	scope                    The scope of the scripting varaible
				 defined.  NESTED is default.

      </xsd:documentation>
    </xsd:annotation>

    <xsd:sequence>
      <xsd:element name="description"
		   type="j2ee:descriptionType"
		   minOccurs="0" maxOccurs="unbounded"/>
      <xsd:choice>
	<xsd:element name="name-given"
		     type="j2ee:java-identifierType">
	  <xsd:annotation>
	    <xsd:documentation>

	      The name for the scripting variable.

	    </xsd:documentation>
	  </xsd:annotation>
	</xsd:element>

	<xsd:element name="name-from-attribute"
		     type="j2ee:java-identifierType">
	  <xsd:annotation>
	    <xsd:documentation>

	      The name of an attribute whose
	      (translation-time) value will give the name of
	      the variable.

	    </xsd:documentation>
	  </xsd:annotation>
	</xsd:element>
      </xsd:choice>
      <xsd:element name="variable-class"
		   type="j2ee:fully-qualified-classType"
		   minOccurs="0">
	<xsd:annotation>
	  <xsd:documentation>

	    The optional name of the class for the scripting
	    variable.  The default is java.lang.String.

	  </xsd:documentation>
	</xsd:annotation>

      </xsd:element>

      <xsd:element name="declare"
		   type="j2ee:generic-booleanType"
		   minOccurs="0">

	<xsd:annotation>
	  <xsd:documentation>

	    Whether the scripting variable is to be defined
	    or not.  See TagExtraInfo for details.  This
	    element is optional and "true" is the default.

	  </xsd:documentation>
	</xsd:annotation>
      </xsd:element>
      <xsd:element name="scope"
		   type="j2ee:variable-scopeType"
		   minOccurs="0">
	<xsd:annotation>
	  <xsd:documentation>

	    The element is optional and "NESTED" is the default.

	  </xsd:documentation>
	</xsd:annotation>
      </xsd:element>
    </xsd:sequence>
    <xsd:attribute name="id" type="xsd:ID"/>
  </xsd:complexType>

</xsd:schema>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -