jsp_2_2.xsd 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  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/javaee"
  4. xmlns:javaee="http://java.sun.com/xml/ns/javaee"
  5. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  6. elementFormDefault="qualified"
  7. attributeFormDefault="unqualified"
  8. version="2.2">
  9. <xsd:annotation>
  10. <xsd:documentation>
  11. $Id$
  12. </xsd:documentation>
  13. </xsd:annotation>
  14. <xsd:annotation>
  15. <xsd:documentation>
  16. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  17. Copyright 2003-2009 Sun Microsystems, Inc. All rights reserved.
  18. The contents of this file are subject to the terms of either the
  19. GNU General Public License Version 2 only ("GPL") or the Common
  20. Development and Distribution License("CDDL") (collectively, the
  21. "License"). You may not use this file except in compliance with
  22. the License. You can obtain a copy of the License at
  23. https://glassfish.dev.java.net/public/CDDL+GPL.html or
  24. glassfish/bootstrap/legal/LICENSE.txt. See the License for the
  25. specific language governing permissions and limitations under the
  26. License.
  27. When distributing the software, include this License Header
  28. Notice in each file and include the License file at
  29. glassfish/bootstrap/legal/LICENSE.txt. Sun designates this
  30. particular file as subject to the "Classpath" exception as
  31. provided by Sun in the GPL Version 2 section of the License file
  32. that accompanied this code. If applicable, add the following
  33. below the License Header, with the fields enclosed by brackets []
  34. replaced by your own identifying information:
  35. "Portions Copyrighted [year] [name of copyright owner]"
  36. Contributor(s):
  37. If you wish your version of this file to be governed by only the
  38. CDDL or only the GPL Version 2, indicate your decision by adding
  39. "[Contributor] elects to include this software in this
  40. distribution under the [CDDL or GPL Version 2] license." If you
  41. don't indicate a single choice of license, a recipient has the
  42. option to distribute your version of this file under either the
  43. CDDL, the GPL Version 2 or to extend the choice of license to its
  44. licensees as provided above. However, if you add GPL Version 2
  45. code and therefore, elected the GPL Version 2 license, then the
  46. option applies only if the new code is made subject to such
  47. option by the copyright holder.
  48. </xsd:documentation>
  49. </xsd:annotation>
  50. <xsd:annotation>
  51. <xsd:documentation>
  52. This is the XML Schema for the JSP 2.2 deployment descriptor
  53. types. The JSP 2.2 schema contains all the special
  54. structures and datatypes that are necessary to use JSP files
  55. from a web application.
  56. The contents of this schema is used by the web-common_3_0.xsd
  57. file to define JSP specific content.
  58. </xsd:documentation>
  59. </xsd:annotation>
  60. <xsd:annotation>
  61. <xsd:documentation>
  62. The following conventions apply to all Java EE
  63. deployment descriptor elements unless indicated otherwise.
  64. - In elements that specify a pathname to a file within the
  65. same JAR file, relative filenames (i.e., those not
  66. starting with "/") are considered relative to the root of
  67. the JAR file's namespace. Absolute filenames (i.e., those
  68. starting with "/") also specify names in the root of the
  69. JAR file's namespace. In general, relative names are
  70. preferred. The exception is .war files where absolute
  71. names are preferred for consistency with the Servlet API.
  72. </xsd:documentation>
  73. </xsd:annotation>
  74. <xsd:include schemaLocation="javaee_6.xsd"/>
  75. <!-- **************************************************** -->
  76. <xsd:complexType name="jsp-configType">
  77. <xsd:annotation>
  78. <xsd:documentation>
  79. The jsp-configType is used to provide global configuration
  80. information for the JSP files in a web application. It has
  81. two subelements, taglib and jsp-property-group.
  82. </xsd:documentation>
  83. </xsd:annotation>
  84. <xsd:sequence>
  85. <xsd:element name="taglib"
  86. type="javaee:taglibType"
  87. minOccurs="0"
  88. maxOccurs="unbounded"/>
  89. <xsd:element name="jsp-property-group"
  90. type="javaee:jsp-property-groupType"
  91. minOccurs="0"
  92. maxOccurs="unbounded"/>
  93. </xsd:sequence>
  94. <xsd:attribute name="id"
  95. type="xsd:ID"/>
  96. </xsd:complexType>
  97. <!-- **************************************************** -->
  98. <xsd:complexType name="jsp-fileType">
  99. <xsd:annotation>
  100. <xsd:documentation>
  101. The jsp-file element contains the full path to a JSP file
  102. within the web application beginning with a `/'.
  103. </xsd:documentation>
  104. </xsd:annotation>
  105. <xsd:simpleContent>
  106. <xsd:restriction base="javaee:pathType"/>
  107. </xsd:simpleContent>
  108. </xsd:complexType>
  109. <!-- **************************************************** -->
  110. <xsd:complexType name="jsp-property-groupType">
  111. <xsd:annotation>
  112. <xsd:documentation>
  113. The jsp-property-groupType is used to group a number of
  114. files so they can be given global property information.
  115. All files so described are deemed to be JSP files. The
  116. following additional properties can be described:
  117. - Control whether EL is ignored.
  118. - Control whether scripting elements are invalid.
  119. - Indicate pageEncoding information.
  120. - Indicate that a resource is a JSP document (XML).
  121. - Prelude and Coda automatic includes.
  122. - Control whether the character sequence #{ is allowed
  123. when used as a String literal.
  124. - Control whether template text containing only
  125. whitespaces must be removed from the response output.
  126. - Indicate the default contentType information.
  127. - Indicate the default buffering model for JspWriter
  128. - Control whether error should be raised for the use of
  129. undeclared namespaces in a JSP page.
  130. </xsd:documentation>
  131. </xsd:annotation>
  132. <xsd:sequence>
  133. <xsd:group ref="javaee:descriptionGroup"/>
  134. <xsd:element name="url-pattern"
  135. type="javaee:url-patternType"
  136. maxOccurs="unbounded"/>
  137. <xsd:element name="el-ignored"
  138. type="javaee:true-falseType"
  139. minOccurs="0">
  140. <xsd:annotation>
  141. <xsd:documentation>
  142. Can be used to easily set the isELIgnored
  143. property of a group of JSP pages. By default, the
  144. EL evaluation is enabled for Web Applications using
  145. a Servlet 2.4 or greater web.xml, and disabled
  146. otherwise.
  147. </xsd:documentation>
  148. </xsd:annotation>
  149. </xsd:element>
  150. <xsd:element name="page-encoding"
  151. type="javaee:string"
  152. minOccurs="0">
  153. <xsd:annotation>
  154. <xsd:documentation>
  155. The valid values of page-encoding are those of the
  156. pageEncoding page directive. It is a
  157. translation-time error to name different encodings
  158. in the pageEncoding attribute of the page directive
  159. of a JSP page and in a JSP configuration element
  160. matching the page. It is also a translation-time
  161. error to name different encodings in the prolog
  162. or text declaration of a document in XML syntax and
  163. in a JSP configuration element matching the document.
  164. It is legal to name the same encoding through
  165. mulitple mechanisms.
  166. </xsd:documentation>
  167. </xsd:annotation>
  168. </xsd:element>
  169. <xsd:element name="scripting-invalid"
  170. type="javaee:true-falseType"
  171. minOccurs="0">
  172. <xsd:annotation>
  173. <xsd:documentation>
  174. Can be used to easily disable scripting in a
  175. group of JSP pages. By default, scripting is
  176. enabled.
  177. </xsd:documentation>
  178. </xsd:annotation>
  179. </xsd:element>
  180. <xsd:element name="is-xml"
  181. type="javaee:true-falseType"
  182. minOccurs="0">
  183. <xsd:annotation>
  184. <xsd:documentation>
  185. If true, denotes that the group of resources
  186. that match the URL pattern are JSP documents,
  187. and thus must be interpreted as XML documents.
  188. If false, the resources are assumed to not
  189. be JSP documents, unless there is another
  190. property group that indicates otherwise.
  191. </xsd:documentation>
  192. </xsd:annotation>
  193. </xsd:element>
  194. <xsd:element name="include-prelude"
  195. type="javaee:pathType"
  196. minOccurs="0"
  197. maxOccurs="unbounded">
  198. <xsd:annotation>
  199. <xsd:documentation>
  200. The include-prelude element is a context-relative
  201. path that must correspond to an element in the
  202. Web Application. When the element is present,
  203. the given path will be automatically included (as
  204. in an include directive) at the beginning of each
  205. JSP page in this jsp-property-group.
  206. </xsd:documentation>
  207. </xsd:annotation>
  208. </xsd:element>
  209. <xsd:element name="include-coda"
  210. type="javaee:pathType"
  211. minOccurs="0"
  212. maxOccurs="unbounded">
  213. <xsd:annotation>
  214. <xsd:documentation>
  215. The include-coda element is a context-relative
  216. path that must correspond to an element in the
  217. Web Application. When the element is present,
  218. the given path will be automatically included (as
  219. in an include directive) at the end of each
  220. JSP page in this jsp-property-group.
  221. </xsd:documentation>
  222. </xsd:annotation>
  223. </xsd:element>
  224. <xsd:element name="deferred-syntax-allowed-as-literal"
  225. type="javaee:true-falseType"
  226. minOccurs="0">
  227. <xsd:annotation>
  228. <xsd:documentation>
  229. The character sequence #{ is reserved for EL expressions.
  230. Consequently, a translation error occurs if the #{
  231. character sequence is used as a String literal, unless
  232. this element is enabled (true). Disabled (false) by
  233. default.
  234. </xsd:documentation>
  235. </xsd:annotation>
  236. </xsd:element>
  237. <xsd:element name="trim-directive-whitespaces"
  238. type="javaee:true-falseType"
  239. minOccurs="0">
  240. <xsd:annotation>
  241. <xsd:documentation>
  242. Indicates that template text containing only whitespaces
  243. must be removed from the response output. It has no
  244. effect on JSP documents (XML syntax). Disabled (false)
  245. by default.
  246. </xsd:documentation>
  247. </xsd:annotation>
  248. </xsd:element>
  249. <xsd:element name="default-content-type"
  250. type="javaee:string"
  251. minOccurs="0">
  252. <xsd:annotation>
  253. <xsd:documentation>
  254. The valid values of default-content-type are those of the
  255. contentType page directive. It specifies the default
  256. response contentType if the page directive does not include
  257. a contentType attribute.
  258. </xsd:documentation>
  259. </xsd:annotation>
  260. </xsd:element>
  261. <xsd:element name="buffer"
  262. type="javaee:string"
  263. minOccurs="0">
  264. <xsd:annotation>
  265. <xsd:documentation>
  266. The valid values of buffer are those of the
  267. buffer page directive. It specifies if buffering should be
  268. used for the output to response, and if so, the size of the
  269. buffer to use.
  270. </xsd:documentation>
  271. </xsd:annotation>
  272. </xsd:element>
  273. <xsd:element name="error-on-undeclared-namespace"
  274. type="javaee:true-falseType"
  275. minOccurs="0">
  276. <xsd:annotation>
  277. <xsd:documentation>
  278. The default behavior when a tag with unknown namespace is used
  279. in a JSP page (regular syntax) is to silently ignore it. If
  280. set to true, then an error must be raised during the translation
  281. time when an undeclared tag is used in a JSP page. Disabled
  282. (false) by default.
  283. </xsd:documentation>
  284. </xsd:annotation>
  285. </xsd:element>
  286. </xsd:sequence>
  287. <xsd:attribute name="id"
  288. type="xsd:ID"/>
  289. </xsd:complexType>
  290. <!-- **************************************************** -->
  291. <xsd:complexType name="taglibType">
  292. <xsd:annotation>
  293. <xsd:documentation>
  294. The taglibType defines the syntax for declaring in
  295. the deployment descriptor that a tag library is
  296. available to the application. This can be done
  297. to override implicit map entries from TLD files and
  298. from the container.
  299. </xsd:documentation>
  300. </xsd:annotation>
  301. <xsd:sequence>
  302. <xsd:element name="taglib-uri"
  303. type="javaee:string">
  304. <xsd:annotation>
  305. <xsd:documentation>
  306. A taglib-uri element describes a URI identifying a
  307. tag library used in the web application. The body
  308. of the taglib-uri element may be either an
  309. absolute URI specification, or a relative URI.
  310. There should be no entries in web.xml with the
  311. same taglib-uri value.
  312. </xsd:documentation>
  313. </xsd:annotation>
  314. </xsd:element>
  315. <xsd:element name="taglib-location"
  316. type="javaee:pathType">
  317. <xsd:annotation>
  318. <xsd:documentation>
  319. the taglib-location element contains the location
  320. (as a resource relative to the root of the web
  321. application) where to find the Tag Library
  322. Description file for the tag library.
  323. </xsd:documentation>
  324. </xsd:annotation>
  325. </xsd:element>
  326. </xsd:sequence>
  327. <xsd:attribute name="id"
  328. type="xsd:ID"/>
  329. </xsd:complexType>
  330. </xsd:schema>