jsp_2_0.xsd 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
  3. targetNamespace="http://java.sun.com/xml/ns/j2ee"
  4. xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
  5. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  6. elementFormDefault="qualified"
  7. attributeFormDefault="unqualified"
  8. version="2.0">
  9. <xsd:annotation>
  10. <xsd:documentation>
  11. @(#)jsp_2_0.xsds 1.17 03/18/03
  12. </xsd:documentation>
  13. </xsd:annotation>
  14. <xsd:annotation>
  15. <xsd:documentation>
  16. Copyright 2003 Sun Microsystems, Inc., 901 San Antonio
  17. Road, Palo Alto, California 94303, U.S.A. All rights
  18. reserved.
  19. Sun Microsystems, Inc. has intellectual property rights
  20. relating to technology described in this document. In
  21. particular, and without limitation, these intellectual
  22. property rights may include one or more of the U.S. patents
  23. listed at http://www.sun.com/patents and one or more
  24. additional patents or pending patent applications in the
  25. U.S. and other countries.
  26. This document and the technology which it describes are
  27. distributed under licenses restricting their use, copying,
  28. distribution, and decompilation. No part of this document
  29. may be reproduced in any form by any means without prior
  30. written authorization of Sun and its licensors, if any.
  31. Third-party software, including font technology, is
  32. copyrighted and licensed from Sun suppliers.
  33. Sun, Sun Microsystems, the Sun logo, Solaris, Java, J2EE,
  34. JavaServer Pages, Enterprise JavaBeans and the Java Coffee
  35. Cup logo are trademarks or registered trademarks of Sun
  36. Microsystems, Inc. in the U.S. and other countries.
  37. Federal Acquisitions: Commercial Software - Government Users
  38. Subject to Standard License Terms and Conditions.
  39. </xsd:documentation>
  40. </xsd:annotation>
  41. <xsd:annotation>
  42. <xsd:documentation>
  43. This is the XML Schema for the JSP 2.0 deployment descriptor
  44. types. The JSP 2.0 schema contains all the special
  45. structures and datatypes that are necessary to use JSP files
  46. from a web application.
  47. The contents of this schema is used by the web-app_2_4.xsd
  48. file to define JSP specific content.
  49. </xsd:documentation>
  50. </xsd:annotation>
  51. <xsd:annotation>
  52. <xsd:documentation>
  53. The following conventions apply to all J2EE
  54. deployment descriptor elements unless indicated otherwise.
  55. - In elements that specify a pathname to a file within the
  56. same JAR file, relative filenames (i.e., those not
  57. starting with "/") are considered relative to the root of
  58. the JAR file's namespace. Absolute filenames (i.e., those
  59. starting with "/") also specify names in the root of the
  60. JAR file's namespace. In general, relative names are
  61. preferred. The exception is .war files where absolute
  62. names are preferred for consistency with the Servlet API.
  63. </xsd:documentation>
  64. </xsd:annotation>
  65. <xsd:include schemaLocation="j2ee_1_4.xsd"/>
  66. <!-- **************************************************** -->
  67. <xsd:complexType name="jsp-configType">
  68. <xsd:annotation>
  69. <xsd:documentation>
  70. The jsp-configType is used to provide global configuration
  71. information for the JSP files in a web application. It has
  72. two subelements, taglib and jsp-property-group.
  73. </xsd:documentation>
  74. </xsd:annotation>
  75. <xsd:sequence>
  76. <xsd:element name="taglib"
  77. type="j2ee:taglibType"
  78. minOccurs="0"
  79. maxOccurs="unbounded"/>
  80. <xsd:element name="jsp-property-group"
  81. type="j2ee:jsp-property-groupType"
  82. minOccurs="0"
  83. maxOccurs="unbounded"/>
  84. </xsd:sequence>
  85. <xsd:attribute name="id" type="xsd:ID"/>
  86. </xsd:complexType>
  87. <!-- **************************************************** -->
  88. <xsd:complexType name="jsp-fileType">
  89. <xsd:annotation>
  90. <xsd:documentation>
  91. The jsp-file element contains the full path to a JSP file
  92. within the web application beginning with a `/'.
  93. </xsd:documentation>
  94. </xsd:annotation>
  95. <xsd:simpleContent>
  96. <xsd:restriction base="j2ee:pathType"/>
  97. </xsd:simpleContent>
  98. </xsd:complexType>
  99. <!-- **************************************************** -->
  100. <xsd:complexType name="jsp-property-groupType">
  101. <xsd:annotation>
  102. <xsd:documentation>
  103. The jsp-property-groupType is used to group a number of
  104. files so they can be given global property information.
  105. All files so described are deemed to be JSP files. The
  106. following additional properties can be described:
  107. - Control whether EL is ignored
  108. - Control whether scripting elements are invalid
  109. - Indicate pageEncoding information.
  110. - Indicate that a resource is a JSP document (XML)
  111. - Prelude and Coda automatic includes.
  112. </xsd:documentation>
  113. </xsd:annotation>
  114. <xsd:sequence>
  115. <xsd:group ref="j2ee:descriptionGroup"/>
  116. <xsd:element name="url-pattern"
  117. type="j2ee:url-patternType"
  118. maxOccurs="unbounded"/>
  119. <xsd:element name="el-ignored"
  120. type="j2ee:true-falseType"
  121. minOccurs="0">
  122. <xsd:annotation>
  123. <xsd:documentation>
  124. Can be used to easily set the isELIgnored
  125. property of a group of JSP pages. By default, the
  126. EL evaluation is enabled for Web Applications using
  127. a Servlet 2.4 or greater web.xml, and disabled
  128. otherwise.
  129. </xsd:documentation>
  130. </xsd:annotation>
  131. </xsd:element>
  132. <xsd:element name="page-encoding"
  133. type="j2ee:string"
  134. minOccurs="0">
  135. <xsd:annotation>
  136. <xsd:documentation>
  137. The valid values of page-encoding are those of the
  138. pageEncoding page directive. It is a
  139. translation-time error to name different encodings
  140. in the pageEncoding attribute of the page directive
  141. of a JSP page and in a JSP configuration element
  142. matching the page. It is also a translation-time
  143. error to name different encodings in the prolog
  144. or text declaration of a document in XML syntax and
  145. in a JSP configuration element matching the document.
  146. It is legal to name the same encoding through
  147. mulitple mechanisms.
  148. </xsd:documentation>
  149. </xsd:annotation>
  150. </xsd:element>
  151. <xsd:element name="scripting-invalid"
  152. type="j2ee:true-falseType"
  153. minOccurs="0">
  154. <xsd:annotation>
  155. <xsd:documentation>
  156. Can be used to easily disable scripting in a
  157. group of JSP pages. By default, scripting is
  158. enabled.
  159. </xsd:documentation>
  160. </xsd:annotation>
  161. </xsd:element>
  162. <xsd:element name="is-xml"
  163. type="j2ee:true-falseType"
  164. minOccurs="0">
  165. <xsd:annotation>
  166. <xsd:documentation>
  167. If true, denotes that the group of resources
  168. that match the URL pattern are JSP documents,
  169. and thus must be interpreted as XML documents.
  170. If false, the resources are assumed to not
  171. be JSP documents, unless there is another
  172. property group that indicates otherwise.
  173. </xsd:documentation>
  174. </xsd:annotation>
  175. </xsd:element>
  176. <xsd:element name="include-prelude"
  177. type="j2ee:pathType"
  178. minOccurs="0"
  179. maxOccurs="unbounded">
  180. <xsd:annotation>
  181. <xsd:documentation>
  182. The include-prelude element is a context-relative
  183. path that must correspond to an element in the
  184. Web Application. When the element is present,
  185. the given path will be automatically included (as
  186. in an include directive) at the beginning of each
  187. JSP page in this jsp-property-group.
  188. </xsd:documentation>
  189. </xsd:annotation>
  190. </xsd:element>
  191. <xsd:element name="include-coda"
  192. type="j2ee:pathType"
  193. minOccurs="0"
  194. maxOccurs="unbounded">
  195. <xsd:annotation>
  196. <xsd:documentation>
  197. The include-coda element is a context-relative
  198. path that must correspond to an element in the
  199. Web Application. When the element is present,
  200. the given path will be automatically included (as
  201. in an include directive) at the end of each
  202. JSP page in this jsp-property-group.
  203. </xsd:documentation>
  204. </xsd:annotation>
  205. </xsd:element>
  206. </xsd:sequence>
  207. <xsd:attribute name="id" type="xsd:ID"/>
  208. </xsd:complexType>
  209. <!-- **************************************************** -->
  210. <xsd:complexType name="taglibType">
  211. <xsd:annotation>
  212. <xsd:documentation>
  213. The taglibType defines the syntax for declaring in
  214. the deployment descriptor that a tag library is
  215. available to the application. This can be done
  216. to override implicit map entries from TLD files and
  217. from the container.
  218. </xsd:documentation>
  219. </xsd:annotation>
  220. <xsd:sequence>
  221. <xsd:element name="taglib-uri"
  222. type="j2ee:string">
  223. <xsd:annotation>
  224. <xsd:documentation>
  225. A taglib-uri element describes a URI identifying a
  226. tag library used in the web application. The body
  227. of the taglib-uri element may be either an
  228. absolute URI specification, or a relative URI.
  229. There should be no entries in web.xml with the
  230. same taglib-uri value.
  231. </xsd:documentation>
  232. </xsd:annotation>
  233. </xsd:element>
  234. <xsd:element name="taglib-location"
  235. type="j2ee:pathType">
  236. <xsd:annotation>
  237. <xsd:documentation>
  238. the taglib-location element contains the location
  239. (as a resource relative to the root of the web
  240. application) where to find the Tag Library
  241. Description file for the tag library.
  242. </xsd:documentation>
  243. </xsd:annotation>
  244. </xsd:element>
  245. </xsd:sequence>
  246. <xsd:attribute name="id" type="xsd:ID"/>
  247. </xsd:complexType>
  248. </xsd:schema>