jsp_2_1.xsd 11 KB

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