1. /*
  2. * The Apache Software License, Version 1.1
  3. *
  4. *
  5. * Copyright (c) 1999 The Apache Software Foundation. All rights
  6. * reserved.
  7. *
  8. * Redistribution and use in source and binary forms, with or without
  9. * modification, are permitted provided that the following conditions
  10. * are met:
  11. *
  12. * 1. Redistributions of source code must retain the above copyright
  13. * notice, this list of conditions and the following disclaimer.
  14. *
  15. * 2. Redistributions in binary form must reproduce the above copyright
  16. * notice, this list of conditions and the following disclaimer in
  17. * the documentation and/or other materials provided with the
  18. * distribution.
  19. *
  20. * 3. The end-user documentation included with the redistribution,
  21. * if any, must include the following acknowledgment:
  22. * "This product includes software developed by the
  23. * Apache Software Foundation (http://www.apache.org/)."
  24. * Alternately, this acknowledgment may appear in the software itself,
  25. * if and wherever such third-party acknowledgments normally appear.
  26. *
  27. * 4. The names "Xalan" and "Apache Software Foundation" must
  28. * not be used to endorse or promote products derived from this
  29. * software without prior written permission. For written
  30. * permission, please contact apache@apache.org.
  31. *
  32. * 5. Products derived from this software may not be called "Apache",
  33. * nor may "Apache" appear in their name, without prior written
  34. * permission of the Apache Software Foundation.
  35. *
  36. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  37. * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  38. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  39. * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  40. * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  41. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  42. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  43. * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  44. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  45. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  46. * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  47. * SUCH DAMAGE.
  48. * ====================================================================
  49. *
  50. * This software consists of voluntary contributions made by many
  51. * individuals on behalf of the Apache Software Foundation and was
  52. * originally based on software copyright (c) 1999, Lotus
  53. * Development Corporation., http://www.lotus.com. For more
  54. * information on the Apache Software Foundation, please see
  55. * <http://www.apache.org/>.
  56. */
  57. package org.apache.xalan.res;
  58. import java.util.MissingResourceException;
  59. import java.util.Locale;
  60. import java.util.ResourceBundle;
  61. import java.util.ListResourceBundle;
  62. import java.text.DecimalFormat;
  63. import org.apache.xalan.templates.Constants;
  64. /**
  65. * Set up error messages.
  66. * We build a two dimensional array of message keys and
  67. * message strings. In order to add a new message here,
  68. * you need to first add a String constant. And
  69. * you need to enter key , value pair as part of contents
  70. * Array. You also need to update MAX_CODE for error strings
  71. * and MAX_WARNING for warnings ( Needed for only information
  72. * purpose )
  73. */
  74. public class XSLTErrorResources extends ListResourceBundle
  75. {
  76. /*
  77. * This file contains error and warning messages related to Xalan Error
  78. * Handling.
  79. *
  80. * General notes to translators:
  81. *
  82. * 1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of
  83. * components.
  84. * XSLT is an acronym for "XML Stylesheet Language: Transformations".
  85. * XSLTC is an acronym for XSLT Compiler.
  86. *
  87. * 2) A stylesheet is a description of how to transform an input XML document
  88. * into a resultant XML document (or HTML document or text). The
  89. * stylesheet itself is described in the form of an XML document.
  90. *
  91. * 3) A template is a component of a stylesheet that is used to match a
  92. * particular portion of an input document and specifies the form of the
  93. * corresponding portion of the output document.
  94. *
  95. * 4) An element is a mark-up tag in an XML document; an attribute is a
  96. * modifier on the tag. For example, in <elem attr='val' attr2='val2'>
  97. * "elem" is an element name, "attr" and "attr2" are attribute names with
  98. * the values "val" and "val2", respectively.
  99. *
  100. * 5) A namespace declaration is a special attribute that is used to associate
  101. * a prefix with a URI (the namespace). The meanings of element names and
  102. * attribute names that use that prefix are defined with respect to that
  103. * namespace.
  104. *
  105. * 6) "Translet" is an invented term that describes the class file that
  106. * results from compiling an XML stylesheet into a Java class.
  107. *
  108. * 7) XPath is a specification that describes a notation for identifying
  109. * nodes in a tree-structured representation of an XML document. An
  110. * instance of that notation is referred to as an XPath expression.
  111. *
  112. */
  113. /** Maximum error messages, this is needed to keep track of the number of messages. */
  114. public static final int MAX_CODE = 253;
  115. /** Maximum warnings, this is needed to keep track of the number of warnings. */
  116. public static final int MAX_WARNING = 29;
  117. /** Maximum misc strings. */
  118. public static final int MAX_OTHERS = 55;
  119. /** Maximum total warnings and error messages. */
  120. public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;
  121. /*
  122. * Static variables
  123. */
  124. public static final String ER_NO_CURLYBRACE = "ER_NO_CURLYBRACE";;
  125. public static final String ER_ILLEGAL_ATTRIBUTE = "ER_ILLEGAL_ATTRIBUTE";
  126. public static final String ER_NULL_SOURCENODE_APPLYIMPORTS = "ER_NULL_SOURCENODE_APPLYIMPORTS";
  127. public static final String ER_CANNOT_ADD = "ER_CANNOT_ADD";
  128. public static final String ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES="ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES";
  129. public static final String ER_NO_NAME_ATTRIB = "ER_NO_NAME_ATTRIB";
  130. public static final String ER_TEMPLATE_NOT_FOUND = "ER_TEMPLATE_NOT_FOUND";
  131. public static final String ER_CANT_RESOLVE_NAME_AVT = "ER_CANT_RESOLVE_NAME_AVT";
  132. public static final String ER_REQUIRES_ATTRIB = "ER_REQUIRES_ATTRIB";
  133. public static final String ER_MUST_HAVE_TEST_ATTRIB = "ER_MUST_HAVE_TEST_ATTRIB";
  134. public static final String ER_BAD_VAL_ON_LEVEL_ATTRIB =
  135. "ER_BAD_VAL_ON_LEVEL_ATTRIB";
  136. public static final String ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML =
  137. "ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML";
  138. public static final String ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME =
  139. "ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME";
  140. public static final String ER_NEED_MATCH_ATTRIB = "ER_NEED_MATCH_ATTRIB";
  141. public static final String ER_NEED_NAME_OR_MATCH_ATTRIB =
  142. "ER_NEED_NAME_OR_MATCH_ATTRIB";
  143. public static final String ER_CANT_RESOLVE_NSPREFIX =
  144. "ER_CANT_RESOLVE_NSPREFIX";
  145. public static final String ER_ILLEGAL_VALUE = "ER_ILLEGAL_VALUE";
  146. public static final String ER_NO_OWNERDOC = "ER_NO_OWNERDOC";
  147. public static final String ER_ELEMTEMPLATEELEM_ERR ="ER_ELEMTEMPLATEELEM_ERR";
  148. public static final String ER_NULL_CHILD = "ER_NULL_CHILD";
  149. public static final String ER_NEED_SELECT_ATTRIB = "ER_NEED_SELECT_ATTRIB";
  150. public static final String ER_NEED_TEST_ATTRIB = "ER_NEED_TEST_ATTRIB";
  151. public static final String ER_NEED_NAME_ATTRIB = "ER_NEED_NAME_ATTRIB";
  152. public static final String ER_NO_CONTEXT_OWNERDOC = "ER_NO_CONTEXT_OWNERDOC";
  153. public static final String ER_COULD_NOT_CREATE_XML_PROC_LIAISON =
  154. "ER_COULD_NOT_CREATE_XML_PROC_LIAISON";
  155. public static final String ER_PROCESS_NOT_SUCCESSFUL =
  156. "ER_PROCESS_NOT_SUCCESSFUL";
  157. public static final String ER_NOT_SUCCESSFUL = "ER_NOT_SUCCESSFUL";
  158. public static final String ER_ENCODING_NOT_SUPPORTED =
  159. "ER_ENCODING_NOT_SUPPORTED";
  160. public static final String ER_COULD_NOT_CREATE_TRACELISTENER =
  161. "ER_COULD_NOT_CREATE_TRACELISTENER";
  162. public static final String ER_KEY_REQUIRES_NAME_ATTRIB =
  163. "ER_KEY_REQUIRES_NAME_ATTRIB";
  164. public static final String ER_KEY_REQUIRES_MATCH_ATTRIB =
  165. "ER_KEY_REQUIRES_MATCH_ATTRIB";
  166. public static final String ER_KEY_REQUIRES_USE_ATTRIB =
  167. "ER_KEY_REQUIRES_USE_ATTRIB";
  168. public static final String ER_REQUIRES_ELEMENTS_ATTRIB =
  169. "ER_REQUIRES_ELEMENTS_ATTRIB";
  170. public static final String ER_MISSING_PREFIX_ATTRIB =
  171. "ER_MISSING_PREFIX_ATTRIB";
  172. public static final String ER_BAD_STYLESHEET_URL = "ER_BAD_STYLESHEET_URL";
  173. public static final String ER_FILE_NOT_FOUND = "ER_FILE_NOT_FOUND";
  174. public static final String ER_IOEXCEPTION = "ER_IOEXCEPTION";
  175. public static final String ER_NO_HREF_ATTRIB = "ER_NO_HREF_ATTRIB";
  176. public static final String ER_STYLESHEET_INCLUDES_ITSELF =
  177. "ER_STYLESHEET_INCLUDES_ITSELF";
  178. public static final String ER_PROCESSINCLUDE_ERROR ="ER_PROCESSINCLUDE_ERROR";
  179. public static final String ER_MISSING_LANG_ATTRIB = "ER_MISSING_LANG_ATTRIB";
  180. public static final String ER_MISSING_CONTAINER_ELEMENT_COMPONENT =
  181. "ER_MISSING_CONTAINER_ELEMENT_COMPONENT";
  182. public static final String ER_CAN_ONLY_OUTPUT_TO_ELEMENT =
  183. "ER_CAN_ONLY_OUTPUT_TO_ELEMENT";
  184. public static final String ER_PROCESS_ERROR = "ER_PROCESS_ERROR";
  185. public static final String ER_UNIMPLNODE_ERROR = "ER_UNIMPLNODE_ERROR";
  186. public static final String ER_NO_SELECT_EXPRESSION ="ER_NO_SELECT_EXPRESSION";
  187. public static final String ER_CANNOT_SERIALIZE_XSLPROCESSOR =
  188. "ER_CANNOT_SERIALIZE_XSLPROCESSOR";
  189. public static final String ER_NO_INPUT_STYLESHEET = "ER_NO_INPUT_STYLESHEET";
  190. public static final String ER_FAILED_PROCESS_STYLESHEET =
  191. "ER_FAILED_PROCESS_STYLESHEET";
  192. public static final String ER_COULDNT_PARSE_DOC = "ER_COULDNT_PARSE_DOC";
  193. public static final String ER_COULDNT_FIND_FRAGMENT =
  194. "ER_COULDNT_FIND_FRAGMENT";
  195. public static final String ER_NODE_NOT_ELEMENT = "ER_NODE_NOT_ELEMENT";
  196. public static final String ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB =
  197. "ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB";
  198. public static final String ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB =
  199. "ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB";
  200. public static final String ER_NO_CLONE_OF_DOCUMENT_FRAG =
  201. "ER_NO_CLONE_OF_DOCUMENT_FRAG";
  202. public static final String ER_CANT_CREATE_ITEM = "ER_CANT_CREATE_ITEM";
  203. public static final String ER_XMLSPACE_ILLEGAL_VALUE =
  204. "ER_XMLSPACE_ILLEGAL_VALUE";
  205. public static final String ER_NO_XSLKEY_DECLARATION =
  206. "ER_NO_XSLKEY_DECLARATION";
  207. public static final String ER_CANT_CREATE_URL = "ER_CANT_CREATE_URL";
  208. public static final String ER_XSLFUNCTIONS_UNSUPPORTED =
  209. "ER_XSLFUNCTIONS_UNSUPPORTED";
  210. public static final String ER_PROCESSOR_ERROR = "ER_PROCESSOR_ERROR";
  211. public static final String ER_NOT_ALLOWED_INSIDE_STYLESHEET =
  212. "ER_NOT_ALLOWED_INSIDE_STYLESHEET";
  213. public static final String ER_RESULTNS_NOT_SUPPORTED =
  214. "ER_RESULTNS_NOT_SUPPORTED";
  215. public static final String ER_DEFAULTSPACE_NOT_SUPPORTED =
  216. "ER_DEFAULTSPACE_NOT_SUPPORTED";
  217. public static final String ER_INDENTRESULT_NOT_SUPPORTED =
  218. "ER_INDENTRESULT_NOT_SUPPORTED";
  219. public static final String ER_ILLEGAL_ATTRIB = "ER_ILLEGAL_ATTRIB";
  220. public static final String ER_UNKNOWN_XSL_ELEM = "ER_UNKNOWN_XSL_ELEM";
  221. public static final String ER_BAD_XSLSORT_USE = "ER_BAD_XSLSORT_USE";
  222. public static final String ER_MISPLACED_XSLWHEN = "ER_MISPLACED_XSLWHEN";
  223. public static final String ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE =
  224. "ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE";
  225. public static final String ER_MISPLACED_XSLOTHERWISE =
  226. "ER_MISPLACED_XSLOTHERWISE";
  227. public static final String ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE =
  228. "ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE";
  229. public static final String ER_NOT_ALLOWED_INSIDE_TEMPLATE =
  230. "ER_NOT_ALLOWED_INSIDE_TEMPLATE";
  231. public static final String ER_UNKNOWN_EXT_NS_PREFIX =
  232. "ER_UNKNOWN_EXT_NS_PREFIX";
  233. public static final String ER_IMPORTS_AS_FIRST_ELEM =
  234. "ER_IMPORTS_AS_FIRST_ELEM";
  235. public static final String ER_IMPORTING_ITSELF = "ER_IMPORTING_ITSELF";
  236. public static final String ER_XMLSPACE_ILLEGAL_VAL ="ER_XMLSPACE_ILLEGAL_VAL";
  237. public static final String ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL =
  238. "ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL";
  239. public static final String ER_SAX_EXCEPTION = "ER_SAX_EXCEPTION";
  240. public static final String ER_FUNCTION_NOT_SUPPORTED =
  241. "ER_FUNCTION_NOT_SUPPORTED";
  242. public static final String ER_XSLT_ERROR = "ER_XSLT_ERROR";
  243. public static final String ER_CURRENCY_SIGN_ILLEGAL=
  244. "ER_CURRENCY_SIGN_ILLEGAL";
  245. public static final String ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM =
  246. "ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM";
  247. public static final String ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER =
  248. "ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER";
  249. public static final String ER_REDIRECT_COULDNT_GET_FILENAME =
  250. "ER_REDIRECT_COULDNT_GET_FILENAME";
  251. public static final String ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT =
  252. "ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT";
  253. public static final String ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX =
  254. "ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX";
  255. public static final String ER_MISSING_NS_URI = "ER_MISSING_NS_URI";
  256. public static final String ER_MISSING_ARG_FOR_OPTION =
  257. "ER_MISSING_ARG_FOR_OPTION";
  258. public static final String ER_INVALID_OPTION = "ER_INVALID_OPTION";
  259. public static final String ER_MALFORMED_FORMAT_STRING =
  260. "ER_MALFORMED_FORMAT_STRING";
  261. public static final String ER_STYLESHEET_REQUIRES_VERSION_ATTRIB =
  262. "ER_STYLESHEET_REQUIRES_VERSION_ATTRIB";
  263. public static final String ER_ILLEGAL_ATTRIBUTE_VALUE =
  264. "ER_ILLEGAL_ATTRIBUTE_VALUE";
  265. public static final String ER_CHOOSE_REQUIRES_WHEN ="ER_CHOOSE_REQUIRES_WHEN";
  266. public static final String ER_NO_APPLY_IMPORT_IN_FOR_EACH =
  267. "ER_NO_APPLY_IMPORT_IN_FOR_EACH";
  268. public static final String ER_CANT_USE_DTM_FOR_OUTPUT =
  269. "ER_CANT_USE_DTM_FOR_OUTPUT";
  270. public static final String ER_CANT_USE_DTM_FOR_INPUT =
  271. "ER_CANT_USE_DTM_FOR_INPUT";
  272. public static final String ER_CALL_TO_EXT_FAILED = "ER_CALL_TO_EXT_FAILED";
  273. public static final String ER_PREFIX_MUST_RESOLVE = "ER_PREFIX_MUST_RESOLVE";
  274. public static final String ER_INVALID_UTF16_SURROGATE =
  275. "ER_INVALID_UTF16_SURROGATE";
  276. public static final String ER_XSLATTRSET_USED_ITSELF =
  277. "ER_XSLATTRSET_USED_ITSELF";
  278. public static final String ER_CANNOT_MIX_XERCESDOM ="ER_CANNOT_MIX_XERCESDOM";
  279. public static final String ER_TOO_MANY_LISTENERS = "ER_TOO_MANY_LISTENERS";
  280. public static final String ER_IN_ELEMTEMPLATEELEM_READOBJECT =
  281. "ER_IN_ELEMTEMPLATEELEM_READOBJECT";
  282. public static final String ER_DUPLICATE_NAMED_TEMPLATE =
  283. "ER_DUPLICATE_NAMED_TEMPLATE";
  284. public static final String ER_INVALID_KEY_CALL = "ER_INVALID_KEY_CALL";
  285. public static final String ER_REFERENCING_ITSELF = "ER_REFERENCING_ITSELF";
  286. public static final String ER_ILLEGAL_DOMSOURCE_INPUT =
  287. "ER_ILLEGAL_DOMSOURCE_INPUT";
  288. public static final String ER_CLASS_NOT_FOUND_FOR_OPTION =
  289. "ER_CLASS_NOT_FOUND_FOR_OPTION";
  290. public static final String ER_REQUIRED_ELEM_NOT_FOUND =
  291. "ER_REQUIRED_ELEM_NOT_FOUND";
  292. public static final String ER_INPUT_CANNOT_BE_NULL ="ER_INPUT_CANNOT_BE_NULL";
  293. public static final String ER_URI_CANNOT_BE_NULL = "ER_URI_CANNOT_BE_NULL";
  294. public static final String ER_FILE_CANNOT_BE_NULL = "ER_FILE_CANNOT_BE_NULL";
  295. public static final String ER_SOURCE_CANNOT_BE_NULL =
  296. "ER_SOURCE_CANNOT_BE_NULL";
  297. public static final String ER_CANNOT_OVERWRITE_CAUSE =
  298. "ER_CANNOT_OVERWRITE_CAUSE";
  299. public static final String ER_CANNOT_INIT_BSFMGR = "ER_CANNOT_INIT_BSFMGR";
  300. public static final String ER_CANNOT_CMPL_EXTENSN = "ER_CANNOT_CMPL_EXTENSN";
  301. public static final String ER_CANNOT_CREATE_EXTENSN =
  302. "ER_CANNOT_CREATE_EXTENSN";
  303. public static final String ER_INSTANCE_MTHD_CALL_REQUIRES =
  304. "ER_INSTANCE_MTHD_CALL_REQUIRES";
  305. public static final String ER_INVALID_ELEMENT_NAME ="ER_INVALID_ELEMENT_NAME";
  306. public static final String ER_ELEMENT_NAME_METHOD_STATIC =
  307. "ER_ELEMENT_NAME_METHOD_STATIC";
  308. public static final String ER_EXTENSION_FUNC_UNKNOWN =
  309. "ER_EXTENSION_FUNC_UNKNOWN";
  310. public static final String ER_MORE_MATCH_CONSTRUCTOR =
  311. "ER_MORE_MATCH_CONSTRUCTOR";
  312. public static final String ER_MORE_MATCH_METHOD = "ER_MORE_MATCH_METHOD";
  313. public static final String ER_MORE_MATCH_ELEMENT = "ER_MORE_MATCH_ELEMENT";
  314. public static final String ER_INVALID_CONTEXT_PASSED =
  315. "ER_INVALID_CONTEXT_PASSED";
  316. public static final String ER_POOL_EXISTS = "ER_POOL_EXISTS";
  317. public static final String ER_NO_DRIVER_NAME = "ER_NO_DRIVER_NAME";
  318. public static final String ER_NO_URL = "ER_NO_URL";
  319. public static final String ER_POOL_SIZE_LESSTHAN_ONE =
  320. "ER_POOL_SIZE_LESSTHAN_ONE";
  321. public static final String ER_INVALID_DRIVER = "ER_INVALID_DRIVER";
  322. public static final String ER_NO_STYLESHEETROOT = "ER_NO_STYLESHEETROOT";
  323. public static final String ER_ILLEGAL_XMLSPACE_VALUE =
  324. "ER_ILLEGAL_XMLSPACE_VALUE";
  325. public static final String ER_PROCESSFROMNODE_FAILED =
  326. "ER_PROCESSFROMNODE_FAILED";
  327. public static final String ER_RESOURCE_COULD_NOT_LOAD =
  328. "ER_RESOURCE_COULD_NOT_LOAD";
  329. public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO =
  330. "ER_BUFFER_SIZE_LESSTHAN_ZERO";
  331. public static final String ER_UNKNOWN_ERROR_CALLING_EXTENSION =
  332. "ER_UNKNOWN_ERROR_CALLING_EXTENSION";
  333. public static final String ER_NO_NAMESPACE_DECL = "ER_NO_NAMESPACE_DECL";
  334. public static final String ER_ELEM_CONTENT_NOT_ALLOWED =
  335. "ER_ELEM_CONTENT_NOT_ALLOWED";
  336. public static final String ER_STYLESHEET_DIRECTED_TERMINATION =
  337. "ER_STYLESHEET_DIRECTED_TERMINATION";
  338. public static final String ER_ONE_OR_TWO = "ER_ONE_OR_TWO";
  339. public static final String ER_TWO_OR_THREE = "ER_TWO_OR_THREE";
  340. public static final String ER_COULD_NOT_LOAD_RESOURCE =
  341. "ER_COULD_NOT_LOAD_RESOURCE";
  342. public static final String ER_CANNOT_INIT_DEFAULT_TEMPLATES =
  343. "ER_CANNOT_INIT_DEFAULT_TEMPLATES";
  344. public static final String ER_RESULT_NULL = "ER_RESULT_NULL";
  345. public static final String ER_RESULT_COULD_NOT_BE_SET =
  346. "ER_RESULT_COULD_NOT_BE_SET";
  347. public static final String ER_NO_OUTPUT_SPECIFIED = "ER_NO_OUTPUT_SPECIFIED";
  348. public static final String ER_CANNOT_TRANSFORM_TO_RESULT_TYPE =
  349. "ER_CANNOT_TRANSFORM_TO_RESULT_TYPE";
  350. public static final String ER_CANNOT_TRANSFORM_SOURCE_TYPE =
  351. "ER_CANNOT_TRANSFORM_SOURCE_TYPE";
  352. public static final String ER_NULL_CONTENT_HANDLER ="ER_NULL_CONTENT_HANDLER";
  353. public static final String ER_NULL_ERROR_HANDLER = "ER_NULL_ERROR_HANDLER";
  354. public static final String ER_CANNOT_CALL_PARSE = "ER_CANNOT_CALL_PARSE";
  355. public static final String ER_NO_PARENT_FOR_FILTER ="ER_NO_PARENT_FOR_FILTER";
  356. public static final String ER_NO_STYLESHEET_IN_MEDIA =
  357. "ER_NO_STYLESHEET_IN_MEDIA";
  358. public static final String ER_NO_STYLESHEET_PI = "ER_NO_STYLESHEET_PI";
  359. public static final String ER_NO_DEFAULT_IMPL = "ER_NO_DEFAULT_IMPL";
  360. public static final String ER_CHUNKEDINTARRAY_NOT_SUPPORTED =
  361. "ER_CHUNKEDINTARRAY_NOT_SUPPORTED";
  362. public static final String ER_OFFSET_BIGGER_THAN_SLOT =
  363. "ER_OFFSET_BIGGER_THAN_SLOT";
  364. public static final String ER_COROUTINE_NOT_AVAIL = "ER_COROUTINE_NOT_AVAIL";
  365. public static final String ER_COROUTINE_CO_EXIT = "ER_COROUTINE_CO_EXIT";
  366. public static final String ER_COJOINROUTINESET_FAILED =
  367. "ER_COJOINROUTINESET_FAILED";
  368. public static final String ER_COROUTINE_PARAM = "ER_COROUTINE_PARAM";
  369. public static final String ER_PARSER_DOTERMINATE_ANSWERS =
  370. "ER_PARSER_DOTERMINATE_ANSWERS";
  371. public static final String ER_NO_PARSE_CALL_WHILE_PARSING =
  372. "ER_NO_PARSE_CALL_WHILE_PARSING";
  373. public static final String ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED =
  374. "ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED";
  375. public static final String ER_ITERATOR_AXIS_NOT_IMPLEMENTED =
  376. "ER_ITERATOR_AXIS_NOT_IMPLEMENTED";
  377. public static final String ER_ITERATOR_CLONE_NOT_SUPPORTED =
  378. "ER_ITERATOR_CLONE_NOT_SUPPORTED";
  379. public static final String ER_UNKNOWN_AXIS_TYPE = "ER_UNKNOWN_AXIS_TYPE";
  380. public static final String ER_AXIS_NOT_SUPPORTED = "ER_AXIS_NOT_SUPPORTED";
  381. public static final String ER_NO_DTMIDS_AVAIL = "ER_NO_DTMIDS_AVAIL";
  382. public static final String ER_NOT_SUPPORTED = "ER_NOT_SUPPORTED";
  383. public static final String ER_NODE_NON_NULL = "ER_NODE_NON_NULL";
  384. public static final String ER_COULD_NOT_RESOLVE_NODE =
  385. "ER_COULD_NOT_RESOLVE_NODE";
  386. public static final String ER_STARTPARSE_WHILE_PARSING =
  387. "ER_STARTPARSE_WHILE_PARSING";
  388. public static final String ER_STARTPARSE_NEEDS_SAXPARSER =
  389. "ER_STARTPARSE_NEEDS_SAXPARSER";
  390. public static final String ER_COULD_NOT_INIT_PARSER =
  391. "ER_COULD_NOT_INIT_PARSER";
  392. public static final String ER_PROPERTY_VALUE_BOOLEAN =
  393. "ER_PROPERTY_VALUE_BOOLEAN";
  394. public static final String ER_EXCEPTION_CREATING_POOL =
  395. "ER_EXCEPTION_CREATING_POOL";
  396. public static final String ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE =
  397. "ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE";
  398. public static final String ER_SCHEME_REQUIRED = "ER_SCHEME_REQUIRED";
  399. public static final String ER_NO_SCHEME_IN_URI = "ER_NO_SCHEME_IN_URI";
  400. public static final String ER_NO_SCHEME_INURI = "ER_NO_SCHEME_INURI";
  401. public static final String ER_PATH_INVALID_CHAR = "ER_PATH_INVALID_CHAR";
  402. public static final String ER_SCHEME_FROM_NULL_STRING =
  403. "ER_SCHEME_FROM_NULL_STRING";
  404. public static final String ER_SCHEME_NOT_CONFORMANT =
  405. "ER_SCHEME_NOT_CONFORMANT";
  406. public static final String ER_HOST_ADDRESS_NOT_WELLFORMED =
  407. "ER_HOST_ADDRESS_NOT_WELLFORMED";
  408. public static final String ER_PORT_WHEN_HOST_NULL = "ER_PORT_WHEN_HOST_NULL";
  409. public static final String ER_INVALID_PORT = "ER_INVALID_PORT";
  410. public static final String ER_FRAG_FOR_GENERIC_URI ="ER_FRAG_FOR_GENERIC_URI";
  411. public static final String ER_FRAG_WHEN_PATH_NULL = "ER_FRAG_WHEN_PATH_NULL";
  412. public static final String ER_FRAG_INVALID_CHAR = "ER_FRAG_INVALID_CHAR";
  413. public static final String ER_PARSER_IN_USE = "ER_PARSER_IN_USE";
  414. public static final String ER_CANNOT_CHANGE_WHILE_PARSING =
  415. "ER_CANNOT_CHANGE_WHILE_PARSING";
  416. public static final String ER_SELF_CAUSATION_NOT_PERMITTED =
  417. "ER_SELF_CAUSATION_NOT_PERMITTED";
  418. public static final String ER_COULD_NOT_FIND_EXTERN_SCRIPT =
  419. "ER_COULD_NOT_FIND_EXTERN_SCRIPT";
  420. public static final String ER_RESOURCE_COULD_NOT_FIND =
  421. "ER_RESOURCE_COULD_NOT_FIND";
  422. public static final String ER_OUTPUT_PROPERTY_NOT_RECOGNIZED =
  423. "ER_OUTPUT_PROPERTY_NOT_RECOGNIZED";
  424. public static final String ER_NO_USERINFO_IF_NO_HOST =
  425. "ER_NO_USERINFO_IF_NO_HOST";
  426. public static final String ER_NO_PORT_IF_NO_HOST = "ER_NO_PORT_IF_NO_HOST";
  427. public static final String ER_NO_QUERY_STRING_IN_PATH =
  428. "ER_NO_QUERY_STRING_IN_PATH";
  429. public static final String ER_NO_FRAGMENT_STRING_IN_PATH =
  430. "ER_NO_FRAGMENT_STRING_IN_PATH";
  431. public static final String ER_CANNOT_INIT_URI_EMPTY_PARMS =
  432. "ER_CANNOT_INIT_URI_EMPTY_PARMS";
  433. public static final String ER_FAILED_CREATING_ELEMLITRSLT =
  434. "ER_FAILED_CREATING_ELEMLITRSLT";
  435. public static final String ER_VALUE_SHOULD_BE_NUMBER =
  436. "ER_VALUE_SHOULD_BE_NUMBER";
  437. public static final String ER_VALUE_SHOULD_EQUAL = "ER_VALUE_SHOULD_EQUAL";
  438. public static final String ER_FAILED_CALLING_METHOD =
  439. "ER_FAILED_CALLING_METHOD";
  440. public static final String ER_FAILED_CREATING_ELEMTMPL =
  441. "ER_FAILED_CREATING_ELEMTMPL";
  442. public static final String ER_CHARS_NOT_ALLOWED = "ER_CHARS_NOT_ALLOWED";
  443. public static final String ER_ATTR_NOT_ALLOWED = "ER_ATTR_NOT_ALLOWED";
  444. public static final String ER_METHOD_NOT_SUPPORTED ="ER_METHOD_NOT_SUPPORTED";
  445. public static final String ER_BAD_VALUE = "ER_BAD_VALUE";
  446. public static final String ER_ATTRIB_VALUE_NOT_FOUND =
  447. "ER_ATTRIB_VALUE_NOT_FOUND";
  448. public static final String ER_ATTRIB_VALUE_NOT_RECOGNIZED =
  449. "ER_ATTRIB_VALUE_NOT_RECOGNIZED";
  450. public static final String ER_INCRSAXSRCFILTER_NOT_RESTARTABLE =
  451. "ER_INCRSAXSRCFILTER_NOT_RESTARTABLE";
  452. public static final String ER_XMLRDR_NOT_BEFORE_STARTPARSE =
  453. "ER_XMLRDR_NOT_BEFORE_STARTPARSE";
  454. public static final String ER_NULL_URI_NAMESPACE = "ER_NULL_URI_NAMESPACE";
  455. public static final String ER_NUMBER_TOO_BIG = "ER_NUMBER_TOO_BIG";
  456. public static final String ER_CANNOT_FIND_SAX1_DRIVER =
  457. "ER_CANNOT_FIND_SAX1_DRIVER";
  458. public static final String ER_SAX1_DRIVER_NOT_LOADED =
  459. "ER_SAX1_DRIVER_NOT_LOADED";
  460. public static final String ER_SAX1_DRIVER_NOT_INSTANTIATED =
  461. "ER_SAX1_DRIVER_NOT_INSTANTIATED" ;
  462. public static final String ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER =
  463. "ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER";
  464. public static final String ER_PARSER_PROPERTY_NOT_SPECIFIED =
  465. "ER_PARSER_PROPERTY_NOT_SPECIFIED";
  466. public static final String ER_PARSER_ARG_CANNOT_BE_NULL =
  467. "ER_PARSER_ARG_CANNOT_BE_NULL" ;
  468. public static final String ER_FEATURE = "ER_FEATURE";
  469. public static final String ER_PROPERTY = "ER_PROPERTY" ;
  470. public static final String ER_NULL_ENTITY_RESOLVER ="ER_NULL_ENTITY_RESOLVER";
  471. public static final String ER_NULL_DTD_HANDLER = "ER_NULL_DTD_HANDLER" ;
  472. public static final String ER_NO_DRIVER_NAME_SPECIFIED =
  473. "ER_NO_DRIVER_NAME_SPECIFIED";
  474. public static final String ER_NO_URL_SPECIFIED = "ER_NO_URL_SPECIFIED";
  475. public static final String ER_POOLSIZE_LESS_THAN_ONE =
  476. "ER_POOLSIZE_LESS_THAN_ONE";
  477. public static final String ER_INVALID_DRIVER_NAME = "ER_INVALID_DRIVER_NAME";
  478. public static final String ER_ERRORLISTENER = "ER_ERRORLISTENER";
  479. public static final String ER_ASSERT_NO_TEMPLATE_PARENT =
  480. "ER_ASSERT_NO_TEMPLATE_PARENT";
  481. public static final String ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR =
  482. "ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR";
  483. public static final String ER_AXIS_TRAVERSER_NOT_SUPPORTED =
  484. "ER_AXIS_TRAVERSER_NOT_SUPPORTED";
  485. public static final String ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER =
  486. "ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER";
  487. public static final String ER_NOT_ALLOWED_IN_POSITION =
  488. "ER_NOT_ALLOWED_IN_POSITION";
  489. public static final String ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION =
  490. "ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION";
  491. public static final String INVALID_TCHAR = "INVALID_TCHAR";
  492. public static final String ER_SYSTEMID_UNKNOWN = "ER_SYSTEMID_UNKNOWN";
  493. public static final String ER_LOCATION_UNKNOWN = "ER_LOCATION_UNKNOWN";
  494. public static final String INVALID_QNAME = "INVALID_QNAME";
  495. public static final String INVALID_ENUM = "INVALID_ENUM";
  496. public static final String INVALID_NMTOKEN = "INVALID_NMTOKEN";
  497. public static final String INVALID_NCNAME = "INVALID_NCNAME";
  498. public static final String INVALID_BOOLEAN = "INVALID_BOOLEAN";
  499. public static final String INVALID_NUMBER = "INVALID_NUMBER";
  500. public static final String ER_ARG_LITERAL = "ER_ARG_LITERAL";
  501. public static final String ER_DUPLICATE_GLOBAL_VAR ="ER_DUPLICATE_GLOBAL_VAR";
  502. public static final String ER_DUPLICATE_VAR = "ER_DUPLICATE_VAR";
  503. public static final String ER_TEMPLATE_NAME_MATCH = "ER_TEMPLATE_NAME_MATCH";
  504. public static final String ER_INVALID_PREFIX = "ER_INVALID_PREFIX";
  505. public static final String ER_NO_ATTRIB_SET = "ER_NO_ATTRIB_SET";
  506. public static final String WG_FOUND_CURLYBRACE = "WG_FOUND_CURLYBRACE";
  507. public static final String WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR =
  508. "WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR";
  509. public static final String WG_EXPR_ATTRIB_CHANGED_TO_SELECT =
  510. "WG_EXPR_ATTRIB_CHANGED_TO_SELECT";
  511. public static final String WG_NO_LOCALE_IN_FORMATNUMBER =
  512. "WG_NO_LOCALE_IN_FORMATNUMBER";
  513. public static final String WG_LOCALE_NOT_FOUND = "WG_LOCALE_NOT_FOUND";
  514. public static final String WG_CANNOT_MAKE_URL_FROM ="WG_CANNOT_MAKE_URL_FROM";
  515. public static final String WG_CANNOT_LOAD_REQUESTED_DOC =
  516. "WG_CANNOT_LOAD_REQUESTED_DOC";
  517. public static final String WG_CANNOT_FIND_COLLATOR ="WG_CANNOT_FIND_COLLATOR";
  518. public static final String WG_FUNCTIONS_SHOULD_USE_URL =
  519. "WG_FUNCTIONS_SHOULD_USE_URL";
  520. public static final String WG_ENCODING_NOT_SUPPORTED_USING_UTF8 =
  521. "WG_ENCODING_NOT_SUPPORTED_USING_UTF8";
  522. public static final String WG_ENCODING_NOT_SUPPORTED_USING_JAVA =
  523. "WG_ENCODING_NOT_SUPPORTED_USING_JAVA";
  524. public static final String WG_SPECIFICITY_CONFLICTS =
  525. "WG_SPECIFICITY_CONFLICTS";
  526. public static final String WG_PARSING_AND_PREPARING =
  527. "WG_PARSING_AND_PREPARING";
  528. public static final String WG_ATTR_TEMPLATE = "WG_ATTR_TEMPLATE";
  529. public static final String WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE = "WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESP";
  530. public static final String WG_ATTRIB_NOT_HANDLED = "WG_ATTRIB_NOT_HANDLED";
  531. public static final String WG_NO_DECIMALFORMAT_DECLARATION =
  532. "WG_NO_DECIMALFORMAT_DECLARATION";
  533. public static final String WG_OLD_XSLT_NS = "WG_OLD_XSLT_NS";
  534. public static final String WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED =
  535. "WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED";
  536. public static final String WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE =
  537. "WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE";
  538. public static final String WG_ILLEGAL_ATTRIBUTE = "WG_ILLEGAL_ATTRIBUTE";
  539. public static final String WG_COULD_NOT_RESOLVE_PREFIX =
  540. "WG_COULD_NOT_RESOLVE_PREFIX";
  541. public static final String WG_STYLESHEET_REQUIRES_VERSION_ATTRIB =
  542. "WG_STYLESHEET_REQUIRES_VERSION_ATTRIB";
  543. public static final String WG_ILLEGAL_ATTRIBUTE_NAME =
  544. "WG_ILLEGAL_ATTRIBUTE_NAME";
  545. public static final String WG_ILLEGAL_ATTRIBUTE_VALUE =
  546. "WG_ILLEGAL_ATTRIBUTE_VALUE";
  547. public static final String WG_EMPTY_SECOND_ARG = "WG_EMPTY_SECOND_ARG";
  548. public static final String WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML =
  549. "WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML";
  550. public static final String WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME =
  551. "WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME";
  552. public static final String WG_ILLEGAL_ATTRIBUTE_POSITION =
  553. "WG_ILLEGAL_ATTRIBUTE_POSITION";
  554. // public static final int ER_NO_CURLYBRACE = 1;
  555. /*
  556. * Now fill in the message text.
  557. * Then fill in the message text for that message code in the
  558. * array. Use the new error code as the index into the array.
  559. */
  560. // Error messages...
  561. /** The lookup table for error messages. */
  562. public static final Object[][] contents = {
  563. /** Error message ID that has a null message, but takes in a single object. */
  564. {"ER0000" , "{0}" },
  565. /** ER_NO_CURLYBRACE */
  566. // public static final int ER_NO_CURLYBRACE = 1;
  567. { ER_NO_CURLYBRACE,
  568. "Error: Can not have '{' within expression"},
  569. /** ER_ILLEGAL_ATTRIBUTE */
  570. // public static final int ER_ILLEGAL_ATTRIBUTE = 2;
  571. { ER_ILLEGAL_ATTRIBUTE ,
  572. "{0} has an illegal attribute: {1}"},
  573. /** ER_NULL_SOURCENODE_APPLYIMPORTS */
  574. // public static final int ER_NULL_SOURCENODE_APPLYIMPORTS = 3;
  575. {ER_NULL_SOURCENODE_APPLYIMPORTS ,
  576. "sourceNode is null in xsl:apply-imports!"},
  577. /** ER_CANNOT_ADD */
  578. // public static final int ER_CANNOT_ADD = 4;
  579. {ER_CANNOT_ADD,
  580. "Can not add {0} to {1}"},
  581. /** ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES */
  582. // public static final int ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES = 5;
  583. { ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES,
  584. "sourceNode is null in handleApplyTemplatesInstruction!"},
  585. /** ER_NO_NAME_ATTRIB */
  586. // public static final int ER_NO_NAME_ATTRIB = 6;
  587. { ER_NO_NAME_ATTRIB,
  588. "{0} must have a name attribute."},
  589. /** ER_TEMPLATE_NOT_FOUND */
  590. //public static final int ER_TEMPLATE_NOT_FOUND = 7;
  591. {ER_TEMPLATE_NOT_FOUND,
  592. "Could not find template named: {0}"},
  593. /** ER_CANT_RESOLVE_NAME_AVT */
  594. // public static final int ER_CANT_RESOLVE_NAME_AVT = 8;
  595. {ER_CANT_RESOLVE_NAME_AVT,
  596. "Could not resolve name AVT in xsl:call-template."},
  597. /** ER_REQUIRES_ATTRIB */
  598. //public static final int ER_REQUIRES_ATTRIB = 9;
  599. {ER_REQUIRES_ATTRIB,
  600. "{0} requires attribute: {1}"},
  601. /** ER_MUST_HAVE_TEST_ATTRIB */
  602. // public static final int ER_MUST_HAVE_TEST_ATTRIB = 10;
  603. { ER_MUST_HAVE_TEST_ATTRIB,
  604. "{0} must have a ''test'' attribute."},
  605. /** ER_BAD_VAL_ON_LEVEL_ATTRIB */
  606. // public static final int ER_BAD_VAL_ON_LEVEL_ATTRIB = 11;
  607. {ER_BAD_VAL_ON_LEVEL_ATTRIB,
  608. "Bad value on level attribute: {0}"},
  609. /** ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML */
  610. // public static final int ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML = 12;
  611. {ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML,
  612. "processing-instruction name can not be 'xml'"},
  613. /** ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME */
  614. // public static final int ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME = 13;
  615. { ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,
  616. "processing-instruction name must be a valid NCName: {0}"},
  617. /** ER_NEED_MATCH_ATTRIB */
  618. // public static final int ER_NEED_MATCH_ATTRIB = 14;
  619. { ER_NEED_MATCH_ATTRIB,
  620. "{0} must have a match attribute if it has a mode."},
  621. /** ER_NEED_NAME_OR_MATCH_ATTRIB */
  622. // public static final int ER_NEED_NAME_OR_MATCH_ATTRIB = 15;
  623. { ER_NEED_NAME_OR_MATCH_ATTRIB,
  624. "{0} requires either a name or a match attribute."},
  625. /** ER_CANT_RESOLVE_NSPREFIX */
  626. // public static final int ER_CANT_RESOLVE_NSPREFIX = 16;
  627. {ER_CANT_RESOLVE_NSPREFIX,
  628. "Can not resolve namespace prefix: {0}"},
  629. /** ER_ILLEGAL_VALUE */
  630. // public static final int ER_ILLEGAL_VALUE = 17;
  631. { ER_ILLEGAL_VALUE,
  632. "xml:space has an illegal value: {0}"},
  633. /** ER_NO_OWNERDOC */
  634. // public static final int ER_NO_OWNERDOC = 18;
  635. { ER_NO_OWNERDOC,
  636. "Child node does not have an owner document!"},
  637. /** ER_ELEMTEMPLATEELEM_ERR */
  638. // public static final int ER_ELEMTEMPLATEELEM_ERR = 19;
  639. { ER_ELEMTEMPLATEELEM_ERR,
  640. "ElemTemplateElement error: {0}"},
  641. /** ER_NULL_CHILD */
  642. // public static final int ER_NULL_CHILD = 20;
  643. { ER_NULL_CHILD,
  644. "Trying to add a null child!"},
  645. /** ER_NEED_SELECT_ATTRIB */
  646. // public static final int ER_NEED_SELECT_ATTRIB = 21;
  647. { ER_NEED_SELECT_ATTRIB,
  648. "{0} requires a select attribute."},
  649. /** ER_NEED_TEST_ATTRIB */
  650. // public static final int ER_NEED_TEST_ATTRIB = 22;
  651. { ER_NEED_TEST_ATTRIB ,
  652. "xsl:when must have a 'test' attribute."},
  653. /** ER_NEED_NAME_ATTRIB */
  654. // public static final int ER_NEED_NAME_ATTRIB = 23;
  655. { ER_NEED_NAME_ATTRIB,
  656. "xsl:with-param must have a 'name' attribute."},
  657. /** ER_NO_CONTEXT_OWNERDOC */
  658. // public static final int ER_NO_CONTEXT_OWNERDOC = 24;
  659. { ER_NO_CONTEXT_OWNERDOC,
  660. "context does not have an owner document!"},
  661. /** ER_COULD_NOT_CREATE_XML_PROC_LIAISON */
  662. // public static final int ER_COULD_NOT_CREATE_XML_PROC_LIAISON = 25;
  663. {ER_COULD_NOT_CREATE_XML_PROC_LIAISON,
  664. "Could not create XML TransformerFactory Liaison: {0}"},
  665. /** ER_PROCESS_NOT_SUCCESSFUL */
  666. // public static final int ER_PROCESS_NOT_SUCCESSFUL = 26;
  667. {ER_PROCESS_NOT_SUCCESSFUL,
  668. "Xalan: Process was not successful."},
  669. /** ER_NOT_SUCCESSFUL */
  670. // public static final int ER_NOT_SUCCESSFUL = 27;
  671. { ER_NOT_SUCCESSFUL,
  672. "Xalan: was not successful."},
  673. /** ER_ENCODING_NOT_SUPPORTED */
  674. // public static final int ER_ENCODING_NOT_SUPPORTED = 28;
  675. { ER_ENCODING_NOT_SUPPORTED,
  676. "Encoding not supported: {0}"},
  677. /** ER_COULD_NOT_CREATE_TRACELISTENER */
  678. // public static final int ER_COULD_NOT_CREATE_TRACELISTENER = 29;
  679. {ER_COULD_NOT_CREATE_TRACELISTENER,
  680. "Could not create TraceListener: {0}"},
  681. /** ER_KEY_REQUIRES_NAME_ATTRIB */
  682. // public static final int ER_KEY_REQUIRES_NAME_ATTRIB = 30;
  683. {ER_KEY_REQUIRES_NAME_ATTRIB,
  684. "xsl:key requires a 'name' attribute!"},
  685. /** ER_KEY_REQUIRES_MATCH_ATTRIB */
  686. // public static final int ER_KEY_REQUIRES_MATCH_ATTRIB = 31;
  687. { ER_KEY_REQUIRES_MATCH_ATTRIB,
  688. "xsl:key requires a 'match' attribute!"},
  689. /** ER_KEY_REQUIRES_USE_ATTRIB */
  690. // public static final int ER_KEY_REQUIRES_USE_ATTRIB = 32;
  691. { ER_KEY_REQUIRES_USE_ATTRIB,
  692. "xsl:key requires a 'use' attribute!"},
  693. /** ER_REQUIRES_ELEMENTS_ATTRIB */
  694. // public static final int ER_REQUIRES_ELEMENTS_ATTRIB = 33;
  695. { ER_REQUIRES_ELEMENTS_ATTRIB,
  696. "(StylesheetHandler) {0} requires an ''elements'' attribute!"},
  697. /** ER_MISSING_PREFIX_ATTRIB */
  698. // public static final int ER_MISSING_PREFIX_ATTRIB = 34;
  699. { ER_MISSING_PREFIX_ATTRIB,
  700. "(StylesheetHandler) {0} attribute ''prefix'' is missing"},
  701. /** ER_BAD_STYLESHEET_URL */
  702. // public static final int ER_BAD_STYLESHEET_URL = 35;
  703. { ER_BAD_STYLESHEET_URL,
  704. "Stylesheet URL is bad: {0}"},
  705. /** ER_FILE_NOT_FOUND */
  706. // public static final int ER_FILE_NOT_FOUND = 36;
  707. { ER_FILE_NOT_FOUND,
  708. "Stylesheet file was not found: {0}"},
  709. /** ER_IOEXCEPTION */
  710. // public static final int ER_IOEXCEPTION = 37;
  711. { ER_IOEXCEPTION,
  712. "Had IO Exception with stylesheet file: {0}"},
  713. /** ER_NO_HREF_ATTRIB */
  714. // public static final int ER_NO_HREF_ATTRIB = 38;
  715. { ER_NO_HREF_ATTRIB,
  716. "(StylesheetHandler) Could not find href attribute for {0}"},
  717. /** ER_STYLESHEET_INCLUDES_ITSELF */
  718. // public static final int ER_STYLESHEET_INCLUDES_ITSELF = 39;
  719. { ER_STYLESHEET_INCLUDES_ITSELF,
  720. "(StylesheetHandler) {0} is directly or indirectly including itself!"},
  721. /** ER_PROCESSINCLUDE_ERROR */
  722. // public static final int ER_PROCESSINCLUDE_ERROR = 40;
  723. { ER_PROCESSINCLUDE_ERROR,
  724. "StylesheetHandler.processInclude error, {0}"},
  725. /** ER_MISSING_LANG_ATTRIB */
  726. // public static final int ER_MISSING_LANG_ATTRIB = 41;
  727. { ER_MISSING_LANG_ATTRIB,
  728. "(StylesheetHandler) {0} attribute ''lang'' is missing"},
  729. /** ER_MISSING_CONTAINER_ELEMENT_COMPONENT */
  730. // public static final int ER_MISSING_CONTAINER_ELEMENT_COMPONENT = 42;
  731. { ER_MISSING_CONTAINER_ELEMENT_COMPONENT,
  732. "(StylesheetHandler) misplaced {0} element?? Missing container element ''component''"},
  733. /** ER_CAN_ONLY_OUTPUT_TO_ELEMENT */
  734. // public static final int ER_CAN_ONLY_OUTPUT_TO_ELEMENT = 43;
  735. { ER_CAN_ONLY_OUTPUT_TO_ELEMENT,
  736. "Can only output to an Element, DocumentFragment, Document, or PrintWriter."},
  737. /** ER_PROCESS_ERROR */
  738. // public static final int ER_PROCESS_ERROR = 44;
  739. { ER_PROCESS_ERROR,
  740. "StylesheetRoot.process error"},
  741. /** ER_UNIMPLNODE_ERROR */
  742. // public static final int ER_UNIMPLNODE_ERROR = 45;
  743. { ER_UNIMPLNODE_ERROR,
  744. "UnImplNode error: {0}"},
  745. /** ER_NO_SELECT_EXPRESSION */
  746. // public static final int ER_NO_SELECT_EXPRESSION = 46;
  747. { ER_NO_SELECT_EXPRESSION,
  748. "Error! Did not find xpath select expression (-select)."},
  749. /** ER_CANNOT_SERIALIZE_XSLPROCESSOR */
  750. // public static final int ER_CANNOT_SERIALIZE_XSLPROCESSOR = 47;
  751. { ER_CANNOT_SERIALIZE_XSLPROCESSOR,
  752. "Can not serialize an XSLProcessor!"},
  753. /** ER_NO_INPUT_STYLESHEET */
  754. // public static final int ER_NO_INPUT_STYLESHEET = 48;
  755. { ER_NO_INPUT_STYLESHEET,
  756. "Stylesheet input was not specified!"},
  757. /** ER_FAILED_PROCESS_STYLESHEET */
  758. // public static final int ER_FAILED_PROCESS_STYLESHEET = 49;
  759. { ER_FAILED_PROCESS_STYLESHEET,
  760. "Failed to process stylesheet!"},
  761. /** ER_COULDNT_PARSE_DOC */
  762. // public static final int ER_COULDNT_PARSE_DOC = 50;
  763. { ER_COULDNT_PARSE_DOC,
  764. "Could not parse {0} document!"},
  765. /** ER_COULDNT_FIND_FRAGMENT */
  766. // public static final int ER_COULDNT_FIND_FRAGMENT = 51;
  767. { ER_COULDNT_FIND_FRAGMENT,
  768. "Could not find fragment: {0}"},
  769. /** ER_NODE_NOT_ELEMENT */
  770. // public static final int ER_NODE_NOT_ELEMENT = 52;
  771. { ER_NODE_NOT_ELEMENT,
  772. "Node pointed to by fragment identifier was not an element: {0}"},
  773. /** ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB */
  774. // public static final int ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB = 53;
  775. { ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB,
  776. "for-each must have either a match or name attribute"},
  777. /** ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB */
  778. // public static final int ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB = 54;
  779. { ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB,
  780. "templates must have either a match or name attribute"},
  781. /** ER_NO_CLONE_OF_DOCUMENT_FRAG */
  782. // public static final int ER_NO_CLONE_OF_DOCUMENT_FRAG = 55;
  783. { ER_NO_CLONE_OF_DOCUMENT_FRAG,
  784. "No clone of a document fragment!"},
  785. /** ER_CANT_CREATE_ITEM */
  786. // public static final int ER_CANT_CREATE_ITEM = 56;
  787. { ER_CANT_CREATE_ITEM,
  788. "Can not create item in result tree: {0}"},
  789. /** ER_XMLSPACE_ILLEGAL_VALUE */
  790. // public static final int ER_XMLSPACE_ILLEGAL_VALUE = 57;
  791. { ER_XMLSPACE_ILLEGAL_VALUE,
  792. "xml:space in the source XML has an illegal value: {0}"},
  793. /** ER_NO_XSLKEY_DECLARATION */
  794. // public static final int ER_NO_XSLKEY_DECLARATION = 58;
  795. { ER_NO_XSLKEY_DECLARATION,
  796. "There is no xsl:key declaration for {0}!"},
  797. /** ER_CANT_CREATE_URL */
  798. // public static final int ER_CANT_CREATE_URL = 59;
  799. { ER_CANT_CREATE_URL,
  800. "Error! Cannot create url for: {0}"},
  801. /** ER_XSLFUNCTIONS_UNSUPPORTED */
  802. // public static final int ER_XSLFUNCTIONS_UNSUPPORTED = 60;
  803. { ER_XSLFUNCTIONS_UNSUPPORTED,
  804. "xsl:functions is unsupported"},
  805. /** ER_PROCESSOR_ERROR */
  806. // public static final int ER_PROCESSOR_ERROR = 61;
  807. { ER_PROCESSOR_ERROR,
  808. "XSLT TransformerFactory Error"},
  809. /** ER_NOT_ALLOWED_INSIDE_STYLESHEET */
  810. // public static final int ER_NOT_ALLOWED_INSIDE_STYLESHEET = 62;
  811. { ER_NOT_ALLOWED_INSIDE_STYLESHEET,
  812. "(StylesheetHandler) {0} not allowed inside a stylesheet!"},
  813. /** ER_RESULTNS_NOT_SUPPORTED */
  814. // public static final int ER_RESULTNS_NOT_SUPPORTED = 63;
  815. { ER_RESULTNS_NOT_SUPPORTED,
  816. "result-ns no longer supported! Use xsl:output instead."},
  817. /** ER_DEFAULTSPACE_NOT_SUPPORTED */
  818. // public static final int ER_DEFAULTSPACE_NOT_SUPPORTED = 64;
  819. { ER_DEFAULTSPACE_NOT_SUPPORTED,
  820. "default-space no longer supported! Use xsl:strip-space or xsl:preserve-space instead."},
  821. /** ER_INDENTRESULT_NOT_SUPPORTED */
  822. // public static final int ER_INDENTRESULT_NOT_SUPPORTED = 65;
  823. { ER_INDENTRESULT_NOT_SUPPORTED,
  824. "indent-result no longer supported! Use xsl:output instead."},
  825. /** ER_ILLEGAL_ATTRIB */
  826. // public static final int ER_ILLEGAL_ATTRIB = 66;
  827. { ER_ILLEGAL_ATTRIB,
  828. "(StylesheetHandler) {0} has an illegal attribute: {1}"},
  829. /** ER_UNKNOWN_XSL_ELEM */
  830. // public static final int ER_UNKNOWN_XSL_ELEM = 67;
  831. { ER_UNKNOWN_XSL_ELEM,
  832. "Unknown XSL element: {0}"},
  833. /** ER_BAD_XSLSORT_USE */
  834. // public static final int ER_BAD_XSLSORT_USE = 68;
  835. { ER_BAD_XSLSORT_USE,
  836. "(StylesheetHandler) xsl:sort can only be used with xsl:apply-templates or xsl:for-each."},
  837. /** ER_MISPLACED_XSLWHEN */
  838. // public static final int ER_MISPLACED_XSLWHEN = 69;
  839. { ER_MISPLACED_XSLWHEN,
  840. "(StylesheetHandler) misplaced xsl:when!"},
  841. /** ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE */
  842. // public static final int ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE = 70;
  843. { ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE,
  844. "(StylesheetHandler) xsl:when not parented by xsl:choose!"},
  845. /** ER_MISPLACED_XSLOTHERWISE */
  846. // public static final int ER_MISPLACED_XSLOTHERWISE = 71;
  847. { ER_MISPLACED_XSLOTHERWISE,
  848. "(StylesheetHandler) misplaced xsl:otherwise!"},
  849. /** ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE */
  850. // public static final int ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE = 72;
  851. { ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE,
  852. "(StylesheetHandler) xsl:otherwise not parented by xsl:choose!"},
  853. /** ER_NOT_ALLOWED_INSIDE_TEMPLATE */
  854. // public static final int ER_NOT_ALLOWED_INSIDE_TEMPLATE = 73;
  855. { ER_NOT_ALLOWED_INSIDE_TEMPLATE,
  856. "(StylesheetHandler) {0} is not allowed inside a template!"},
  857. /** ER_UNKNOWN_EXT_NS_PREFIX */
  858. // public static final int ER_UNKNOWN_EXT_NS_PREFIX = 74;
  859. { ER_UNKNOWN_EXT_NS_PREFIX,
  860. "(StylesheetHandler) {0} extension namespace prefix {1} unknown"},
  861. /** ER_IMPORTS_AS_FIRST_ELEM */
  862. // public static final int ER_IMPORTS_AS_FIRST_ELEM = 75;
  863. { ER_IMPORTS_AS_FIRST_ELEM,
  864. "(StylesheetHandler) Imports can only occur as the first elements in the stylesheet!"},
  865. /** ER_IMPORTING_ITSELF */
  866. // public static final int ER_IMPORTING_ITSELF = 76;
  867. { ER_IMPORTING_ITSELF,
  868. "(StylesheetHandler) {0} is directly or indirectly importing itself!"},
  869. /** ER_XMLSPACE_ILLEGAL_VAL */
  870. // public static final int ER_XMLSPACE_ILLEGAL_VAL = 77;
  871. { ER_XMLSPACE_ILLEGAL_VAL,
  872. "(StylesheetHandler) " + "xml:space has an illegal value: {0}"},
  873. /** ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL */
  874. // public static final int ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL = 78;
  875. { ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL,
  876. "processStylesheet not succesfull!"},
  877. /** ER_SAX_EXCEPTION */
  878. // public static final int ER_SAX_EXCEPTION = 79;
  879. { ER_SAX_EXCEPTION,
  880. "SAX Exception"},
  881. /** ER_FUNCTION_NOT_SUPPORTED */
  882. // public static final int ER_FUNCTION_NOT_SUPPORTED = 80;
  883. { ER_FUNCTION_NOT_SUPPORTED,
  884. "Function not supported!"},
  885. /** ER_XSLT_ERROR */
  886. // public static final int ER_XSLT_ERROR = 81;
  887. { ER_XSLT_ERROR,
  888. "XSLT Error"},
  889. /** ER_CURRENCY_SIGN_ILLEGAL */
  890. // public static final int ER_CURRENCY_SIGN_ILLEGAL = 82;
  891. { ER_CURRENCY_SIGN_ILLEGAL,
  892. "currency sign is not allowed in format pattern string"},
  893. /** ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM */
  894. // public static final int ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM = 83;
  895. { ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM,
  896. "Document function not supported in Stylesheet DOM!"},
  897. /** ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER */
  898. // public static final int ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER = 84;
  899. { ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER,
  900. "Can't resolve prefix of non-Prefix resolver!"},
  901. /** ER_REDIRECT_COULDNT_GET_FILENAME */
  902. // public static final int ER_REDIRECT_COULDNT_GET_FILENAME = 85;
  903. { ER_REDIRECT_COULDNT_GET_FILENAME,
  904. "Redirect extension: Could not get filename - file or select attribute must return vald string."},
  905. /** ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT */
  906. // public static final int ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT = 86;
  907. { ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT,
  908. "Can not build FormatterListener in Redirect extension!"},
  909. /** ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX */
  910. // public static final int ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX = 87;
  911. { ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX,
  912. "Prefix in exclude-result-prefixes is not valid: {0}"},
  913. /** ER_MISSING_NS_URI */
  914. // public static final int ER_MISSING_NS_URI = 88;
  915. { ER_MISSING_NS_URI,
  916. "Missing namespace URI for specified prefix"},
  917. /** ER_MISSING_ARG_FOR_OPTION */
  918. // public static final int ER_MISSING_ARG_FOR_OPTION = 89;
  919. { ER_MISSING_ARG_FOR_OPTION,
  920. "Missing argument for option: {0}"},
  921. /** ER_INVALID_OPTION */
  922. // public static final int ER_INVALID_OPTION = 90;
  923. { ER_INVALID_OPTION,
  924. "Invalid option: {0}"},
  925. /** ER_MALFORMED_FORMAT_STRING */
  926. // public static final int ER_MALFORMED_FORMAT_STRING = 91;
  927. { ER_MALFORMED_FORMAT_STRING,
  928. "Malformed format string: {0}"},
  929. /** ER_STYLESHEET_REQUIRES_VERSION_ATTRIB */
  930. // public static final int ER_STYLESHEET_REQUIRES_VERSION_ATTRIB = 92;
  931. { ER_STYLESHEET_REQUIRES_VERSION_ATTRIB,
  932. "xsl:stylesheet requires a 'version' attribute!"},
  933. /** ER_ILLEGAL_ATTRIBUTE_VALUE */
  934. // public static final int ER_ILLEGAL_ATTRIBUTE_VALUE = 93;
  935. { ER_ILLEGAL_ATTRIBUTE_VALUE,
  936. "Attribute: {0} has an illegal value: {1}"},
  937. /** ER_CHOOSE_REQUIRES_WHEN */
  938. // public static final int ER_CHOOSE_REQUIRES_WHEN = 94;
  939. { ER_CHOOSE_REQUIRES_WHEN,
  940. "xsl:choose requires an xsl:when"},
  941. /** ER_NO_APPLY_IMPORT_IN_FOR_EACH */
  942. // public static final int ER_NO_APPLY_IMPORT_IN_FOR_EACH = 95;
  943. { ER_NO_APPLY_IMPORT_IN_FOR_EACH,
  944. "xsl:apply-imports not allowed in a xsl:for-each"},
  945. /** ER_CANT_USE_DTM_FOR_OUTPUT */
  946. // public static final int ER_CANT_USE_DTM_FOR_OUTPUT = 96;
  947. { ER_CANT_USE_DTM_FOR_OUTPUT,
  948. "Cannot use a DTMLiaison for an output DOM node... pass a org.apache.xpath.DOM2Helper instead!"},
  949. /** ER_CANT_USE_DTM_FOR_INPUT */
  950. // public static final int ER_CANT_USE_DTM_FOR_INPUT = 97;
  951. { ER_CANT_USE_DTM_FOR_INPUT,
  952. "Cannot use a DTMLiaison for a input DOM node... pass a org.apache.xpath.DOM2Helper instead!"},
  953. /** ER_CALL_TO_EXT_FAILED */
  954. // public static final int ER_CALL_TO_EXT_FAILED = 98;
  955. { ER_CALL_TO_EXT_FAILED,
  956. "Call to extension element failed: {0}"},
  957. /** ER_PREFIX_MUST_RESOLVE */
  958. // public static final int ER_PREFIX_MUST_RESOLVE = 99;
  959. { ER_PREFIX_MUST_RESOLVE,
  960. "Prefix must resolve to a namespace: {0}"},
  961. /** ER_INVALID_UTF16_SURROGATE */
  962. // public static final int ER_INVALID_UTF16_SURROGATE = 100;
  963. { ER_INVALID_UTF16_SURROGATE,
  964. "Invalid UTF-16 surrogate detected: {0} ?"},
  965. /** ER_XSLATTRSET_USED_ITSELF */
  966. // public static final int ER_XSLATTRSET_USED_ITSELF = 101;
  967. { ER_XSLATTRSET_USED_ITSELF,
  968. "xsl:attribute-set {0} used itself, which will cause an infinite loop."},
  969. /** ER_CANNOT_MIX_XERCESDOM */
  970. // public static final int ER_CANNOT_MIX_XERCESDOM = 102;
  971. { ER_CANNOT_MIX_XERCESDOM,
  972. "Can not mix non Xerces-DOM input with Xerces-DOM output!"},
  973. /** ER_TOO_MANY_LISTENERS */
  974. // public static final int ER_TOO_MANY_LISTENERS = 103;
  975. { ER_TOO_MANY_LISTENERS,
  976. "addTraceListenersToStylesheet - TooManyListenersException"},
  977. /** ER_IN_ELEMTEMPLATEELEM_READOBJECT */
  978. // public static final int ER_IN_ELEMTEMPLATEELEM_READOBJECT = 104;
  979. { ER_IN_ELEMTEMPLATEELEM_READOBJECT,
  980. "In ElemTemplateElement.readObject: {0}"},
  981. /** ER_DUPLICATE_NAMED_TEMPLATE */
  982. // public static final int ER_DUPLICATE_NAMED_TEMPLATE = 105;
  983. { ER_DUPLICATE_NAMED_TEMPLATE,
  984. "Found more than one template named: {0}"},
  985. /** ER_INVALID_KEY_CALL */
  986. // public static final int ER_INVALID_KEY_CALL = 106;
  987. { ER_INVALID_KEY_CALL,
  988. "Invalid function call: recursive key() calls are not allowed"},
  989. /** Variable is referencing itself */
  990. // public static final int ER_REFERENCING_ITSELF = 107;
  991. { ER_REFERENCING_ITSELF,
  992. "Variable {0} is directly or indirectly referencing itself!"},
  993. /** Illegal DOMSource input */
  994. // public static final int ER_ILLEGAL_DOMSOURCE_INPUT = 108;
  995. { ER_ILLEGAL_DOMSOURCE_INPUT,
  996. "The input node can not be null for a DOMSource for newTemplates!"},
  997. /** Class not found for option */
  998. // public static final int ER_CLASS_NOT_FOUND_FOR_OPTION = 109;
  999. { ER_CLASS_NOT_FOUND_FOR_OPTION,
  1000. "Class file not found for option {0}"},
  1001. /** Required Element not found */
  1002. // public static final int ER_REQUIRED_ELEM_NOT_FOUND = 110;
  1003. { ER_REQUIRED_ELEM_NOT_FOUND,
  1004. "Required Element not found: {0}"},
  1005. /** InputStream cannot be null */
  1006. // public static final int ER_INPUT_CANNOT_BE_NULL = 111;
  1007. { ER_INPUT_CANNOT_BE_NULL,
  1008. "InputStream cannot be null"},
  1009. /** URI cannot be null */
  1010. // public static final int ER_URI_CANNOT_BE_NULL = 112;
  1011. { ER_URI_CANNOT_BE_NULL,
  1012. "URI cannot be null"},
  1013. /** File cannot be null */
  1014. // public static final int ER_FILE_CANNOT_BE_NULL = 113;
  1015. { ER_FILE_CANNOT_BE_NULL,
  1016. "File cannot be null"},
  1017. /** InputSource cannot be null */
  1018. // public static final int ER_SOURCE_CANNOT_BE_NULL = 114;
  1019. { ER_SOURCE_CANNOT_BE_NULL,
  1020. "InputSource cannot be null"},
  1021. /** Can't overwrite cause */
  1022. // public static final int ER_CANNOT_OVERWRITE_CAUSE = 115;
  1023. { ER_CANNOT_OVERWRITE_CAUSE,
  1024. "Cannot overwrite cause"},
  1025. /** Could not initialize BSF Manager */
  1026. // public static final int ER_CANNOT_INIT_BSFMGR = 116;
  1027. { ER_CANNOT_INIT_BSFMGR,
  1028. "Could not initialize BSF Manager"},
  1029. /** Could not compile extension */
  1030. // public static final int ER_CANNOT_CMPL_EXTENSN = 117;
  1031. { ER_CANNOT_CMPL_EXTENSN,
  1032. "Could not compile extension"},
  1033. /** Could not create extension */
  1034. // public static final int ER_CANNOT_CREATE_EXTENSN = 118;
  1035. { ER_CANNOT_CREATE_EXTENSN,
  1036. "Could not create extension: {0} because of: {1}"},
  1037. /** Instance method call to method {0} requires an Object instance as first argument */
  1038. // public static final int ER_INSTANCE_MTHD_CALL_REQUIRES = 119;
  1039. { ER_INSTANCE_MTHD_CALL_REQUIRES,
  1040. "Instance method call to method {0} requires an Object instance as first argument"},
  1041. /** Invalid element name specified */
  1042. // public static final int ER_INVALID_ELEMENT_NAME = 120;
  1043. { ER_INVALID_ELEMENT_NAME,
  1044. "Invalid element name specified {0}"},
  1045. /** Element name method must be static */
  1046. // public static final int ER_ELEMENT_NAME_METHOD_STATIC = 121;
  1047. { ER_ELEMENT_NAME_METHOD_STATIC,
  1048. "Element name method must be static {0}"},
  1049. /** Extension function {0} : {1} is unknown */
  1050. // public static final int ER_EXTENSION_FUNC_UNKNOWN = 122;
  1051. { ER_EXTENSION_FUNC_UNKNOWN,
  1052. "Extension function {0} : {1} is unknown"},
  1053. /** More than one best match for constructor for */
  1054. // public static final int ER_MORE_MATCH_CONSTRUCTOR = 123;
  1055. { ER_MORE_MATCH_CONSTRUCTOR,
  1056. "More than one best match for constructor for {0}"},
  1057. /** More than one best match for method */
  1058. // public static final int ER_MORE_MATCH_METHOD = 124;
  1059. { ER_MORE_MATCH_METHOD,
  1060. "More than one best match for method {0}"},
  1061. /** More than one best match for element method */
  1062. // public static final int ER_MORE_MATCH_ELEMENT = 125;
  1063. { ER_MORE_MATCH_ELEMENT,
  1064. "More than one best match for element method {0}"},
  1065. /** Invalid context passed to evaluate */
  1066. // public static final int ER_INVALID_CONTEXT_PASSED = 126;
  1067. { ER_INVALID_CONTEXT_PASSED,
  1068. "Invalid context passed to evaluate {0}"},
  1069. /** Pool already exists */
  1070. // public static final int ER_POOL_EXISTS = 127;
  1071. { ER_POOL_EXISTS,
  1072. "Pool already exists"},
  1073. /** No driver Name specified */
  1074. // public static final int ER_NO_DRIVER_NAME = 128;
  1075. { ER_NO_DRIVER_NAME,
  1076. "No driver Name specified"},
  1077. /** No URL specified */
  1078. // public static final int ER_NO_URL = 129;
  1079. { ER_NO_URL,
  1080. "No URL specified"},
  1081. /** Pool size is less than one */
  1082. // public static final int ER_POOL_SIZE_LESSTHAN_ONE = 130;
  1083. { ER_POOL_SIZE_LESSTHAN_ONE,
  1084. "Pool size is less than one!"},
  1085. /** Invalid driver name specified */
  1086. // public static final int ER_INVALID_DRIVER = 131;
  1087. { ER_INVALID_DRIVER,
  1088. "Invalid driver name specified!"},
  1089. /** Did not find the stylesheet root */
  1090. // public static final int ER_NO_STYLESHEETROOT = 132;
  1091. { ER_NO_STYLESHEETROOT,
  1092. "Did not find the stylesheet root!"},
  1093. /** Illegal value for xml:space */
  1094. // public static final int ER_ILLEGAL_XMLSPACE_VALUE = 133;
  1095. { ER_ILLEGAL_XMLSPACE_VALUE,
  1096. "Illegal value for xml:space"},
  1097. /** processFromNode failed */
  1098. // public static final int ER_PROCESSFROMNODE_FAILED = 134;
  1099. { ER_PROCESSFROMNODE_FAILED,
  1100. "processFromNode failed"},
  1101. /** The resource [] could not load: */
  1102. // public static final int ER_RESOURCE_COULD_NOT_LOAD = 135;
  1103. { ER_RESOURCE_COULD_NOT_LOAD,
  1104. "The resource [ {0} ] could not load: {1} \n {2} \t {3}"},
  1105. /** Buffer size <=0 */
  1106. // public static final int ER_BUFFER_SIZE_LESSTHAN_ZERO = 136;
  1107. { ER_BUFFER_SIZE_LESSTHAN_ZERO,
  1108. "Buffer size <=0"},
  1109. /** Unknown error when calling extension */
  1110. // public static final int ER_UNKNOWN_ERROR_CALLING_EXTENSION = 137;
  1111. { ER_UNKNOWN_ERROR_CALLING_EXTENSION,
  1112. "Unknown error when calling extension"},
  1113. /** Prefix {0} does not have a corresponding namespace declaration */
  1114. // public static final int ER_NO_NAMESPACE_DECL = 138;
  1115. { ER_NO_NAMESPACE_DECL,
  1116. "Prefix {0} does not have a corresponding namespace declaration"},
  1117. /** Element content not allowed for lang=javaclass */
  1118. // public static final int ER_ELEM_CONTENT_NOT_ALLOWED = 139;
  1119. { ER_ELEM_CONTENT_NOT_ALLOWED,
  1120. "Element content not allowed for lang=javaclass {0}"},
  1121. /** Stylesheet directed termination */
  1122. // public static final int ER_STYLESHEET_DIRECTED_TERMINATION = 140;
  1123. { ER_STYLESHEET_DIRECTED_TERMINATION,
  1124. "Stylesheet directed termination"},
  1125. /** 1 or 2 */
  1126. // public static final int ER_ONE_OR_TWO = 141;
  1127. { ER_ONE_OR_TWO,
  1128. "1 or 2"},
  1129. /** 2 or 3 */
  1130. // public static final int ER_TWO_OR_THREE = 142;
  1131. { ER_TWO_OR_THREE,
  1132. "2 or 3"},
  1133. /** Could not load {0} (check CLASSPATH), now using just the defaults */
  1134. // public static final int ER_COULD_NOT_LOAD_RESOURCE = 143;
  1135. { ER_COULD_NOT_LOAD_RESOURCE,
  1136. "Could not load {0} (check CLASSPATH), now using just the defaults"},
  1137. /** Cannot initialize default templates */
  1138. // public static final int ER_CANNOT_INIT_DEFAULT_TEMPLATES = 144;
  1139. { ER_CANNOT_INIT_DEFAULT_TEMPLATES,
  1140. "Cannot initialize default templates"},
  1141. /** Result should not be null */
  1142. // public static final int ER_RESULT_NULL = 145;
  1143. { ER_RESULT_NULL,
  1144. "Result should not be null"},
  1145. /** Result could not be set */
  1146. // public static final int ER_RESULT_COULD_NOT_BE_SET = 146;
  1147. { ER_RESULT_COULD_NOT_BE_SET,
  1148. "Result could not be set"},
  1149. /** No output specified */
  1150. // public static final int ER_NO_OUTPUT_SPECIFIED = 147;
  1151. { ER_NO_OUTPUT_SPECIFIED,
  1152. "No output specified"},
  1153. /** Can't transform to a Result of type */
  1154. // public static final int ER_CANNOT_TRANSFORM_TO_RESULT_TYPE = 148;
  1155. { ER_CANNOT_TRANSFORM_TO_RESULT_TYPE,
  1156. "Can''t transform to a Result of type {0}"},
  1157. /** Can't transform to a Source of type */
  1158. // public static final int ER_CANNOT_TRANSFORM_SOURCE_TYPE = 149;
  1159. { ER_CANNOT_TRANSFORM_SOURCE_TYPE,
  1160. "Can''t transform a Source of type {0}"},
  1161. /** Null content handler */
  1162. // public static final int ER_NULL_CONTENT_HANDLER = 150;
  1163. { ER_NULL_CONTENT_HANDLER,
  1164. "Null content handler"},
  1165. /** Null error handler */
  1166. // public static final int ER_NULL_ERROR_HANDLER = 151;
  1167. { ER_NULL_ERROR_HANDLER,
  1168. "Null error handler"},
  1169. /** parse can not be called if the ContentHandler has not been set */
  1170. // public static final int ER_CANNOT_CALL_PARSE = 152;
  1171. { ER_CANNOT_CALL_PARSE,
  1172. "parse can not be called if the ContentHandler has not been set"},
  1173. /** No parent for filter */
  1174. // public static final int ER_NO_PARENT_FOR_FILTER = 153;
  1175. { ER_NO_PARENT_FOR_FILTER,
  1176. "No parent for filter"},
  1177. /** No stylesheet found in: {0}, media */
  1178. // public static final int ER_NO_STYLESHEET_IN_MEDIA = 154;
  1179. { ER_NO_STYLESHEET_IN_MEDIA,
  1180. "No stylesheet found in: {0}, media= {1}"},
  1181. /** No xml-stylesheet PI found in */
  1182. // public static final int ER_NO_STYLESHEET_PI = 155;
  1183. { ER_NO_STYLESHEET_PI,
  1184. "No xml-stylesheet PI found in: {0}"},
  1185. /** No default implementation found */
  1186. // public static final int ER_NO_DEFAULT_IMPL = 156;
  1187. { ER_NO_DEFAULT_IMPL,
  1188. "No default implementation found "},
  1189. /** ChunkedIntArray({0}) not currently supported */
  1190. // public static final int ER_CHUNKEDINTARRAY_NOT_SUPPORTED = 157;
  1191. { ER_CHUNKEDINTARRAY_NOT_SUPPORTED,
  1192. "ChunkedIntArray({0}) not currently supported"},
  1193. /** Offset bigger than slot */
  1194. // public static final int ER_OFFSET_BIGGER_THAN_SLOT = 158;
  1195. { ER_OFFSET_BIGGER_THAN_SLOT,
  1196. "Offset bigger than slot"},
  1197. /** Coroutine not available, id= */
  1198. // public static final int ER_COROUTINE_NOT_AVAIL = 159;
  1199. { ER_COROUTINE_NOT_AVAIL,
  1200. "Coroutine not available, id={0}"},
  1201. /** CoroutineManager recieved co_exit() request */
  1202. // public static final int ER_COROUTINE_CO_EXIT = 160;
  1203. { ER_COROUTINE_CO_EXIT,
  1204. "CoroutineManager received co_exit() request"},
  1205. /** co_joinCoroutineSet() failed */
  1206. // public static final int ER_COJOINROUTINESET_FAILED = 161;
  1207. { ER_COJOINROUTINESET_FAILED,
  1208. "co_joinCoroutineSet() failed"},
  1209. /** Coroutine parameter error () */
  1210. // public static final int ER_COROUTINE_PARAM = 162;
  1211. { ER_COROUTINE_PARAM,
  1212. "Coroutine parameter error ({0})"},
  1213. /** UNEXPECTED: Parser doTerminate answers */
  1214. // public static final int ER_PARSER_DOTERMINATE_ANSWERS = 163;
  1215. { ER_PARSER_DOTERMINATE_ANSWERS,
  1216. "\nUNEXPECTED: Parser doTerminate answers {0}"},
  1217. /** parse may not be called while parsing */
  1218. // public static final int ER_NO_PARSE_CALL_WHILE_PARSING = 164;
  1219. { ER_NO_PARSE_CALL_WHILE_PARSING,
  1220. "parse may not be called while parsing"},
  1221. /** Error: typed iterator for axis {0} not implemented */
  1222. // public static final int ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED = 165;
  1223. { ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED,
  1224. "Error: typed iterator for axis {0} not implemented"},
  1225. /** Error: iterator for axis {0} not implemented */
  1226. // public static final int ER_ITERATOR_AXIS_NOT_IMPLEMENTED = 166;
  1227. { ER_ITERATOR_AXIS_NOT_IMPLEMENTED,
  1228. "Error: iterator for axis {0} not implemented "},
  1229. /** Iterator clone not supported */
  1230. // public static final int ER_ITERATOR_CLONE_NOT_SUPPORTED = 167;
  1231. { ER_ITERATOR_CLONE_NOT_SUPPORTED,
  1232. "Iterator clone not supported"},
  1233. /** Unknown axis traversal type */
  1234. // public static final int ER_UNKNOWN_AXIS_TYPE = 168;
  1235. { ER_UNKNOWN_AXIS_TYPE,
  1236. "Unknown axis traversal type: {0}"},
  1237. /** Axis traverser not supported */
  1238. // public static final int ER_AXIS_NOT_SUPPORTED = 169;
  1239. { ER_AXIS_NOT_SUPPORTED,
  1240. "Axis traverser not supported: {0}"},
  1241. /** No more DTM IDs are available */
  1242. // public static final int ER_NO_DTMIDS_AVAIL = 170;
  1243. { ER_NO_DTMIDS_AVAIL,
  1244. "No more DTM IDs are available"},
  1245. /** Not supported */
  1246. // public static final int ER_NOT_SUPPORTED = 171;
  1247. { ER_NOT_SUPPORTED,
  1248. "Not supported: {0}"},
  1249. /** node must be non-null for getDTMHandleFromNode */
  1250. // public static final int ER_NODE_NON_NULL = 172;
  1251. { ER_NODE_NON_NULL,
  1252. "Node must be non-null for getDTMHandleFromNode"},
  1253. /** Could not resolve the node to a handle */
  1254. // public static final int ER_COULD_NOT_RESOLVE_NODE = 173;
  1255. { ER_COULD_NOT_RESOLVE_NODE,
  1256. "Could not resolve the node to a handle"},
  1257. /** startParse may not be called while parsing */
  1258. // public static final int ER_STARTPARSE_WHILE_PARSING = 174;
  1259. { ER_STARTPARSE_WHILE_PARSING,
  1260. "startParse may not be called while parsing"},
  1261. /** startParse needs a non-null SAXParser */
  1262. // public static final int ER_STARTPARSE_NEEDS_SAXPARSER = 175;
  1263. { ER_STARTPARSE_NEEDS_SAXPARSER,
  1264. "startParse needs a non-null SAXParser"},
  1265. /** could not initialize parser with */
  1266. // public static final int ER_COULD_NOT_INIT_PARSER = 176;
  1267. { ER_COULD_NOT_INIT_PARSER,
  1268. "could not initialize parser with"},
  1269. /** Value for property {0} should be a Boolean instance */
  1270. // public static final int ER_PROPERTY_VALUE_BOOLEAN = 177;
  1271. { ER_PROPERTY_VALUE_BOOLEAN,
  1272. "Value for property {0} should be a Boolean instance"},
  1273. /** exception creating new instance for pool */
  1274. // public static final int ER_EXCEPTION_CREATING_POOL = 178;
  1275. { ER_EXCEPTION_CREATING_POOL,
  1276. "exception creating new instance for pool"},
  1277. /** Path contains invalid escape sequence */
  1278. // public static final int ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = 179;
  1279. { ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,
  1280. "Path contains invalid escape sequence"},
  1281. /** Scheme is required! */
  1282. // public static final int ER_SCHEME_REQUIRED = 180;
  1283. { ER_SCHEME_REQUIRED,
  1284. "Scheme is required!"},
  1285. /** No scheme found in URI */
  1286. // public static final int ER_NO_SCHEME_IN_URI = 181;
  1287. { ER_NO_SCHEME_IN_URI,
  1288. "No scheme found in URI: {0}"},
  1289. /** No scheme found in URI */
  1290. // public static final int ER_NO_SCHEME_INURI = 182;
  1291. { ER_NO_SCHEME_INURI,
  1292. "No scheme found in URI"},
  1293. /** Path contains invalid character: */
  1294. // public static final int ER_PATH_INVALID_CHAR = 183;
  1295. { ER_PATH_INVALID_CHAR,
  1296. "Path contains invalid character: {0}"},
  1297. /** Cannot set scheme from null string */
  1298. // public static final int ER_SCHEME_FROM_NULL_STRING = 184;
  1299. { ER_SCHEME_FROM_NULL_STRING,
  1300. "Cannot set scheme from null string"},
  1301. /** The scheme is not conformant. */
  1302. // public static final int ER_SCHEME_NOT_CONFORMANT = 185;
  1303. { ER_SCHEME_NOT_CONFORMANT,
  1304. "The scheme is not conformant."},
  1305. /** Host is not a well formed address */
  1306. // public static final int ER_HOST_ADDRESS_NOT_WELLFORMED = 186;
  1307. { ER_HOST_ADDRESS_NOT_WELLFORMED,
  1308. "Host is not a well formed address"},
  1309. /** Port cannot be set when host is null */
  1310. // public static final int ER_PORT_WHEN_HOST_NULL = 187;
  1311. { ER_PORT_WHEN_HOST_NULL,
  1312. "Port cannot be set when host is null"},
  1313. /** Invalid port number */
  1314. // public static final int ER_INVALID_PORT = 188;
  1315. { ER_INVALID_PORT,
  1316. "Invalid port number"},
  1317. /** Fragment can only be set for a generic URI */
  1318. // public static final int ER_FRAG_FOR_GENERIC_URI = 189;
  1319. { ER_FRAG_FOR_GENERIC_URI,
  1320. "Fragment can only be set for a generic URI"},
  1321. /** Fragment cannot be set when path is null */
  1322. // public static final int ER_FRAG_WHEN_PATH_NULL = 190;
  1323. { ER_FRAG_WHEN_PATH_NULL,
  1324. "Fragment cannot be set when path is null"},
  1325. /** Fragment contains invalid character */
  1326. // public static final int ER_FRAG_INVALID_CHAR = 191;
  1327. { ER_FRAG_INVALID_CHAR,
  1328. "Fragment contains invalid character"},
  1329. /** Parser is already in use */
  1330. // public static final int ER_PARSER_IN_USE = 192;
  1331. { ER_PARSER_IN_USE,
  1332. "Parser is already in use"},
  1333. /** Parser is already in use */
  1334. // public static final int ER_CANNOT_CHANGE_WHILE_PARSING = 193;
  1335. { ER_CANNOT_CHANGE_WHILE_PARSING,
  1336. "Cannot change {0} {1} while parsing"},
  1337. /** Self-causation not permitted */
  1338. // public static final int ER_SELF_CAUSATION_NOT_PERMITTED = 194;
  1339. { ER_SELF_CAUSATION_NOT_PERMITTED,
  1340. "Self-causation not permitted"},
  1341. /** src attribute not yet supported for */
  1342. // public static final int ER_COULD_NOT_FIND_EXTERN_SCRIPT = 195;
  1343. { ER_COULD_NOT_FIND_EXTERN_SCRIPT,
  1344. "Could not get to external script at {0}"},
  1345. /** The resource [] could not be found */
  1346. // public static final int ER_RESOURCE_COULD_NOT_FIND = 196;
  1347. { ER_RESOURCE_COULD_NOT_FIND,
  1348. "The resource [ {0} ] could not be found.\n {1}"},
  1349. /** output property not recognized: */
  1350. // public static final int ER_OUTPUT_PROPERTY_NOT_RECOGNIZED = 197;
  1351. { ER_OUTPUT_PROPERTY_NOT_RECOGNIZED,
  1352. "Output property not recognized: {0}"},
  1353. /** Userinfo may not be specified if host is not specified */
  1354. // public static final int ER_NO_USERINFO_IF_NO_HOST = 198;
  1355. { ER_NO_USERINFO_IF_NO_HOST,
  1356. "Userinfo may not be specified if host is not specified"},
  1357. /** Port may not be specified if host is not specified */
  1358. // public static final int ER_NO_PORT_IF_NO_HOST = 199;
  1359. { ER_NO_PORT_IF_NO_HOST,
  1360. "Port may not be specified if host is not specified"},
  1361. /** Query string cannot be specified in path and query string */
  1362. // public static final int ER_NO_QUERY_STRING_IN_PATH = 200;
  1363. { ER_NO_QUERY_STRING_IN_PATH,
  1364. "Query string cannot be specified in path and query string"},
  1365. /** Fragment cannot be specified in both the path and fragment */
  1366. // public static final int ER_NO_FRAGMENT_STRING_IN_PATH = 201;
  1367. { ER_NO_FRAGMENT_STRING_IN_PATH,
  1368. "Fragment cannot be specified in both the path and fragment"},
  1369. /** Cannot initialize URI with empty parameters */
  1370. // public static final int ER_CANNOT_INIT_URI_EMPTY_PARMS = 202;
  1371. { ER_CANNOT_INIT_URI_EMPTY_PARMS,
  1372. "Cannot initialize URI with empty parameters"},
  1373. /** Failed creating ElemLiteralResult instance */
  1374. // public static final int ER_FAILED_CREATING_ELEMLITRSLT = 203;
  1375. { ER_FAILED_CREATING_ELEMLITRSLT,
  1376. "Failed creating ElemLiteralResult instance"},
  1377. //Earlier (JDK 1.4 XALAN 2.2-D11) at key code '204' the key name was ER_PRIORITY_NOT_PARSABLE
  1378. // In latest Xalan code base key name is ER_VALUE_SHOULD_BE_NUMBER. This should also be taken care
  1379. //in locale specific files like XSLTErrorResources_de.java, XSLTErrorResources_fr.java etc.
  1380. //NOTE: Not only the key name but message has also been changed.
  1381. /** Priority value does not contain a parsable number */
  1382. // public static final int ER_VALUE_SHOULD_BE_NUMBER = 204;
  1383. { ER_VALUE_SHOULD_BE_NUMBER,
  1384. "Value for {0} should contain a parsable number"},
  1385. /** Value for {0} should equal 'yes' or 'no' */
  1386. // public static final int ER_VALUE_SHOULD_EQUAL = 205;
  1387. { ER_VALUE_SHOULD_EQUAL,
  1388. "Value for {0} should equal yes or no"},
  1389. /** Failed calling {0} method */
  1390. // public static final int ER_FAILED_CALLING_METHOD = 206;
  1391. { ER_FAILED_CALLING_METHOD,
  1392. "Failed calling {0} method"},
  1393. /** Failed creating ElemLiteralResult instance */
  1394. // public static final int ER_FAILED_CREATING_ELEMTMPL = 207;
  1395. { ER_FAILED_CREATING_ELEMTMPL,
  1396. "Failed creating ElemTemplateElement instance"},
  1397. /** Characters are not allowed at this point in the document */
  1398. // public static final int ER_CHARS_NOT_ALLOWED = 208;
  1399. { ER_CHARS_NOT_ALLOWED,
  1400. "Characters are not allowed at this point in the document"},
  1401. /** attribute is not allowed on the element */
  1402. // public static final int ER_ATTR_NOT_ALLOWED = 209;
  1403. { ER_ATTR_NOT_ALLOWED,
  1404. "\"{0}\" attribute is not allowed on the {1} element!"},
  1405. /** Method not yet supported */
  1406. // public static final int ER_METHOD_NOT_SUPPORTED = 210;
  1407. { ER_METHOD_NOT_SUPPORTED,
  1408. "Method not yet supported "},
  1409. /** Bad value */
  1410. // public static final int ER_BAD_VALUE = 211;
  1411. { ER_BAD_VALUE,
  1412. "{0} bad value {1} "},
  1413. /** attribute value not found */
  1414. // public static final int ER_ATTRIB_VALUE_NOT_FOUND = 212;
  1415. { ER_ATTRIB_VALUE_NOT_FOUND,
  1416. "{0} attribute value not found "},
  1417. /** attribute value not recognized */
  1418. // public static final int ER_ATTRIB_VALUE_NOT_RECOGNIZED = 213;
  1419. { ER_ATTRIB_VALUE_NOT_RECOGNIZED,
  1420. "{0} attribute value not recognized "},
  1421. /** IncrementalSAXSource_Filter not currently restartable */
  1422. // public static final int ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = 214;
  1423. { ER_INCRSAXSRCFILTER_NOT_RESTARTABLE,
  1424. "IncrementalSAXSource_Filter not currently restartable"},
  1425. /** IncrementalSAXSource_Filter not currently restartable */
  1426. // public static final int ER_XMLRDR_NOT_BEFORE_STARTPARSE = 215;
  1427. { ER_XMLRDR_NOT_BEFORE_STARTPARSE,
  1428. "XMLReader not before startParse request"},
  1429. /** Attempting to generate a namespace prefix with a null URI */
  1430. // public static final int ER_NULL_URI_NAMESPACE = 216;
  1431. { ER_NULL_URI_NAMESPACE,
  1432. "Attempting to generate a namespace prefix with a null URI"},
  1433. //New ERROR keys added in XALAN code base after Jdk 1.4 (Xalan 2.2-D11)
  1434. /** Attempting to generate a namespace prefix with a null URI */
  1435. // public static final int ER_NUMBER_TOO_BIG = 217;
  1436. { ER_NUMBER_TOO_BIG,
  1437. "Attempting to format a number bigger than the largest Long integer"},
  1438. //ER_CANNOT_FIND_SAX1_DRIVER
  1439. // public static final int ER_CANNOT_FIND_SAX1_DRIVER = 218;
  1440. { ER_CANNOT_FIND_SAX1_DRIVER,
  1441. "Cannot find SAX1 driver class {0}"},
  1442. //ER_SAX1_DRIVER_NOT_LOADED
  1443. // public static final int ER_SAX1_DRIVER_NOT_LOADED = 219;
  1444. { ER_SAX1_DRIVER_NOT_LOADED,
  1445. "SAX1 driver class {0} found but cannot be loaded"},
  1446. //ER_SAX1_DRIVER_NOT_INSTANTIATED
  1447. // public static final int ER_SAX1_DRIVER_NOT_INSTANTIATED = 220 ;
  1448. { ER_SAX1_DRIVER_NOT_INSTANTIATED,
  1449. "SAX1 driver class {0} loaded but cannot be instantiated"},
  1450. // ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER
  1451. // public static final int ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER = 221;
  1452. { ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER,
  1453. "SAX1 driver class {0} does not implement org.xml.sax.Parser"},
  1454. // ER_PARSER_PROPERTY_NOT_SPECIFIED
  1455. // public static final int ER_PARSER_PROPERTY_NOT_SPECIFIED = 222;
  1456. { ER_PARSER_PROPERTY_NOT_SPECIFIED,
  1457. "System property org.xml.sax.parser not specified"},
  1458. //ER_PARSER_ARG_CANNOT_BE_NULL
  1459. // public static final int ER_PARSER_ARG_CANNOT_BE_NULL = 223 ;
  1460. { ER_PARSER_ARG_CANNOT_BE_NULL,
  1461. "Parser argument must not be null"},
  1462. // ER_FEATURE
  1463. // public static final int ER_FEATURE = 224;
  1464. { ER_FEATURE,
  1465. "Feature: {0}"},
  1466. // ER_PROPERTY
  1467. // public static final int ER_PROPERTY = 225 ;
  1468. { ER_PROPERTY,
  1469. "Property: {0}"},
  1470. // ER_NULL_ENTITY_RESOLVER
  1471. // public static final int ER_NULL_ENTITY_RESOLVER = 226;
  1472. { ER_NULL_ENTITY_RESOLVER,
  1473. "Null entity resolver"},
  1474. // ER_NULL_DTD_HANDLER
  1475. // public static final int ER_NULL_DTD_HANDLER = 227 ;
  1476. { ER_NULL_DTD_HANDLER,
  1477. "Null DTD handler"},
  1478. // No Driver Name Specified!
  1479. // public static final int ER_NO_DRIVER_NAME_SPECIFIED = 228;
  1480. { ER_NO_DRIVER_NAME_SPECIFIED,
  1481. "No Driver Name Specified!"},
  1482. // No URL Specified!
  1483. // public static final int ER_NO_URL_SPECIFIED = 229;
  1484. { ER_NO_URL_SPECIFIED,
  1485. "No URL Specified!"},
  1486. // Pool size is less than 1!
  1487. // public static final int ER_POOLSIZE_LESS_THAN_ONE = 230;
  1488. { ER_POOLSIZE_LESS_THAN_ONE,
  1489. "Pool size is less than 1!"},
  1490. // Invalid Driver Name Specified!
  1491. // public static final int ER_INVALID_DRIVER_NAME = 231;
  1492. { ER_INVALID_DRIVER_NAME,
  1493. "Invalid Driver Name Specified!"},
  1494. // ErrorListener
  1495. // public static final int ER_ERRORLISTENER = 232;
  1496. { ER_ERRORLISTENER,
  1497. "ErrorListener"},
  1498. // Programmer's error! expr has no ElemTemplateElement parent!
  1499. // public static final int ER_ASSERT_NO_TEMPLATE_PARENT = 233;
  1500. { ER_ASSERT_NO_TEMPLATE_PARENT,
  1501. "Programmer's error! expr has no ElemTemplateElement parent!"},
  1502. // Programmer''s assertion in RundundentExprEliminator: {0}
  1503. // public static final int ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR = 234;
  1504. { ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR,
  1505. "Programmer''s assertion in RundundentExprEliminator: {0}"},
  1506. // Axis traverser not supported: {0}
  1507. // public static final int ER_AXIS_TRAVERSER_NOT_SUPPORTED = 235;
  1508. { ER_AXIS_TRAVERSER_NOT_SUPPORTED,
  1509. "Axis traverser not supported: {0}"},
  1510. // ListingErrorHandler created with null PrintWriter!
  1511. // public static final int ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER = 236;
  1512. { ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER,
  1513. "ListingErrorHandler created with null PrintWriter!"},
  1514. // {0}is not allowed in this position in the stylesheet!
  1515. // public static final int ER_NOT_ALLOWED_IN_POSITION = 237;
  1516. { ER_NOT_ALLOWED_IN_POSITION,
  1517. "{0} is not allowed in this position in the stylesheet!"},
  1518. // Non-whitespace text is not allowed in this position in the stylesheet!
  1519. // public static final int ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION = 238;
  1520. { ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION,
  1521. "Non-whitespace text is not allowed in this position in the stylesheet!"},
  1522. // This code is shared with warning codes.
  1523. // Illegal value: {1} used for CHAR attribute: {0}. An attribute of type CHAR must be only 1 character!
  1524. // public static final int INVALID_TCHAR = 239;
  1525. // SystemId Unknown
  1526. { INVALID_TCHAR,
  1527. "Illegal value: {1} used for CHAR attribute: {0}. An attribute of type CHAR must be only 1 character!"},
  1528. // public static final int ER_SYSTEMID_UNKNOWN = 240;
  1529. { ER_SYSTEMID_UNKNOWN,
  1530. "SystemId Unknown"},
  1531. // Location of error unknown
  1532. // public static final int ER_LOCATION_UNKNOWN = 241;
  1533. { ER_LOCATION_UNKNOWN,
  1534. "Location of error unknown"},
  1535. // Note to translators: The following message is used if the value of
  1536. // an attribute in a stylesheet is invalid. "QNAME" is the XML data-type of
  1537. // the attribute, and should not be translated. The substitution text {1} is
  1538. // the attribute value and {0} is the attribute name.
  1539. // INVALID_QNAME
  1540. //The following codes are shared with the warning codes...
  1541. // Illegal value: {1} used for QNAME attribute: {0}
  1542. // public static final int INVALID_QNAME = 242;
  1543. { INVALID_QNAME,
  1544. "Illegal value: {1} used for QNAME attribute: {0}"},
  1545. // Note to translators: The following message is used if the value of
  1546. // an attribute in a stylesheet is invalid. "ENUM" is the XML data-type of
  1547. // the attribute, and should not be translated. The substitution text {1} is
  1548. // the attribute value, {0} is the attribute name, and {2} is a list of valid
  1549. // values.
  1550. // INVALID_ENUM
  1551. // Illegal value: {1} used for ENUM attribute: {0}. Valid values are: {2}.
  1552. // public static final int INVALID_ENUM = 243;
  1553. { INVALID_ENUM,
  1554. "Illegal value: {1} used for ENUM attribute: {0}. Valid values are: {2}."},
  1555. // Note to translators: The following message is used if the value of
  1556. // an attribute in a stylesheet is invalid. "NMTOKEN" is the XML data-type
  1557. // of the attribute, and should not be translated. The substitution text {1} is
  1558. // the attribute value and {0} is the attribute name.
  1559. // INVALID_NMTOKEN
  1560. // Illegal value: {1} used for NMTOKEN attribute: {0}.
  1561. // public static final int INVALID_NMTOKEN = 244;
  1562. { INVALID_NMTOKEN,
  1563. "Illegal value: {1} used for NMTOKEN attribute: {0} "},
  1564. // Note to translators: The following message is used if the value of
  1565. // an attribute in a stylesheet is invalid. "NCNAME" is the XML data-type
  1566. // of the attribute, and should not be translated. The substitution text {1} is
  1567. // the attribute value and {0} is the attribute name.
  1568. // INVALID_NCNAME
  1569. // Illegal value: {1} used for NCNAME attribute: {0}.
  1570. // public static final int INVALID_NCNAME = 245;
  1571. { INVALID_NCNAME,
  1572. "Illegal value: {1} used for NCNAME attribute: {0} "},
  1573. // Note to translators: The following message is used if the value of
  1574. // an attribute in a stylesheet is invalid. "boolean" is the XSLT data-type
  1575. // of the attribute, and should not be translated. The substitution text {1} is
  1576. // the attribute value and {0} is the attribute name.
  1577. // INVALID_BOOLEAN
  1578. // Illegal value: {1} used for boolean attribute: {0}.
  1579. // public static final int INVALID_BOOLEAN = 246;
  1580. { INVALID_BOOLEAN,
  1581. "Illegal value: {1} used for boolean attribute: {0} "},
  1582. // Note to translators: The following message is used if the value of
  1583. // an attribute in a stylesheet is invalid. "number" is the XSLT data-type
  1584. // of the attribute, and should not be translated. The substitution text {1} is
  1585. // the attribute value and {0} is the attribute name.
  1586. // INVALID_NUMBER
  1587. // Illegal value: {1} used for number attribute: {0}.
  1588. // public static final int INVALID_NUMBER = 247;
  1589. { INVALID_NUMBER,
  1590. "Illegal value: {1} used for number attribute: {0} "},
  1591. // End of shared codes...
  1592. // Note to translators: A "match pattern" is a special form of XPath expression
  1593. // that is used for matching patterns. The substitution text is the name of
  1594. // a function. The message indicates that when this function is referenced in
  1595. // a match pattern, its argument must be a string literal (or constant.)
  1596. // ER_ARG_LITERAL - new error message for bugzilla //5202
  1597. // Argument to {0} in match pattern must be a literal.
  1598. // public static final int ER_ARG_LITERAL = 248;
  1599. { ER_ARG_LITERAL,
  1600. "Argument to {0} in match pattern must be a literal."},
  1601. // Note to translators: The following message indicates that two definitions of
  1602. // a variable. A "global variable" is a variable that is accessible everywher
  1603. // in the stylesheet.
  1604. // ER_DUPLICATE_GLOBAL_VAR - new error message for bugzilla #790
  1605. // Duplicate global variable declaration.
  1606. // public static final int ER_DUPLICATE_GLOBAL_VAR = 249;
  1607. { ER_DUPLICATE_GLOBAL_VAR,
  1608. "Duplicate global variable declaration."},
  1609. // Note to translators: The following message indicates that two definitions of
  1610. // a variable were encountered.
  1611. // ER_DUPLICATE_VAR - new error message for bugzilla #790
  1612. // Duplicate variable declaration.
  1613. // public static final int ER_DUPLICATE_VAR = 250;
  1614. { ER_DUPLICATE_VAR,
  1615. "Duplicate variable declaration."},
  1616. // Note to translators: "xsl:template, "name" and "match" are XSLT keywords
  1617. // which must not be translated.
  1618. // ER_TEMPLATE_NAME_MATCH - new error message for bugzilla #789
  1619. // xsl:template must have a name or match attribute (or both)
  1620. // public static final int ER_TEMPLATE_NAME_MATCH = 251;
  1621. { ER_TEMPLATE_NAME_MATCH,
  1622. "xsl:template must have a name or match attribute (or both)"},
  1623. // Note to translators: "exclude-result-prefixes" is an XSLT keyword which
  1624. // should not be translated. The message indicates that a namespace prefix
  1625. // encountered as part of the value of the exclude-result-prefixes attribute
  1626. // was in error.
  1627. // ER_INVALID_PREFIX - new error message for bugzilla #788
  1628. // Prefix in exclude-result-prefixes is not valid: {0}
  1629. // public static final int ER_INVALID_PREFIX = 252;
  1630. { ER_INVALID_PREFIX,
  1631. "Prefix in exclude-result-prefixes is not valid: {0}"},
  1632. // Note to translators: An "attribute set" is a set of attributes that can be
  1633. // added to an element in the output document as a group. The message indicates
  1634. // that there was a reference to an attribute set named {0} that was never
  1635. // defined.
  1636. // ER_NO_ATTRIB_SET - new error message for bugzilla #782
  1637. // attribute-set named {0} does not exist
  1638. // public static final int ER_NO_ATTRIB_SET = 253;
  1639. { ER_NO_ATTRIB_SET,
  1640. "attribute-set named {0} does not exist"},
  1641. // Warnings...
  1642. /** WG_FOUND_CURLYBRACE */
  1643. // public static final int WG_FOUND_CURLYBRACE = 1;
  1644. { WG_FOUND_CURLYBRACE,
  1645. "Found '}' but no attribute template open!"},
  1646. /** WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR */
  1647. // public static final int WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR = 2;
  1648. { WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR,
  1649. "Warning: count attribute does not match an ancestor in xsl:number! Target = {0}"},
  1650. /** WG_EXPR_ATTRIB_CHANGED_TO_SELECT */
  1651. // public static final int WG_EXPR_ATTRIB_CHANGED_TO_SELECT = 3;
  1652. { WG_EXPR_ATTRIB_CHANGED_TO_SELECT,
  1653. "Old syntax: The name of the 'expr' attribute has been changed to 'select'."},
  1654. /** WG_NO_LOCALE_IN_FORMATNUMBER */
  1655. // public static final int WG_NO_LOCALE_IN_FORMATNUMBER = 4;
  1656. { WG_NO_LOCALE_IN_FORMATNUMBER,
  1657. "Xalan doesn't yet handle the locale name in the format-number function."},
  1658. /** WG_LOCALE_NOT_FOUND */
  1659. // public static final int WG_LOCALE_NOT_FOUND = 5;
  1660. { WG_LOCALE_NOT_FOUND,
  1661. "Warning: Could not find locale for xml:lang={0}"},
  1662. /** WG_CANNOT_MAKE_URL_FROM */
  1663. // public static final int WG_CANNOT_MAKE_URL_FROM = 6;
  1664. { WG_CANNOT_MAKE_URL_FROM,
  1665. "Can not make URL from: {0}"},
  1666. /** WG_CANNOT_LOAD_REQUESTED_DOC */
  1667. // public static final int WG_CANNOT_LOAD_REQUESTED_DOC = 7;
  1668. { WG_CANNOT_LOAD_REQUESTED_DOC,
  1669. "Can not load requested doc: {0}"},
  1670. /** WG_CANNOT_FIND_COLLATOR */
  1671. // public static final int WG_CANNOT_FIND_COLLATOR = 8;
  1672. { WG_CANNOT_FIND_COLLATOR,
  1673. "Could not find Collator for <sort xml:lang={0}"},
  1674. /** WG_FUNCTIONS_SHOULD_USE_URL */
  1675. // public static final int WG_FUNCTIONS_SHOULD_USE_URL = 9;
  1676. { WG_FUNCTIONS_SHOULD_USE_URL,
  1677. "Old syntax: the functions instruction should use a url of {0}"},
  1678. /** WG_ENCODING_NOT_SUPPORTED_USING_UTF8 */
  1679. // public static final int WG_ENCODING_NOT_SUPPORTED_USING_UTF8 = 10;
  1680. { WG_ENCODING_NOT_SUPPORTED_USING_UTF8,
  1681. "encoding not supported: {0}, using UTF-8"},
  1682. /** WG_ENCODING_NOT_SUPPORTED_USING_JAVA */
  1683. // public static final int WG_ENCODING_NOT_SUPPORTED_USING_JAVA = 11;
  1684. { WG_ENCODING_NOT_SUPPORTED_USING_JAVA,
  1685. "encoding not supported: {0}, using Java {1}"},
  1686. /** WG_SPECIFICITY_CONFLICTS */
  1687. // public static final int WG_SPECIFICITY_CONFLICTS = 12;
  1688. { WG_SPECIFICITY_CONFLICTS,
  1689. "Specificity conflicts found: {0} Last found in stylesheet will be used."},
  1690. /** WG_PARSING_AND_PREPARING */
  1691. // public static final int WG_PARSING_AND_PREPARING = 13;
  1692. { WG_PARSING_AND_PREPARING,
  1693. "========= Parsing and preparing {0} =========="},
  1694. /** WG_ATTR_TEMPLATE */
  1695. // public static final int WG_ATTR_TEMPLATE = 14;
  1696. { WG_ATTR_TEMPLATE,
  1697. "Attr Template, {0}"},
  1698. /** WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE */
  1699. // public static final int WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE = 15;
  1700. { WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE,
  1701. "Match conflict between xsl:strip-space and xsl:preserve-space"},
  1702. /** WG_ATTRIB_NOT_HANDLED */
  1703. // public static final int WG_ATTRIB_NOT_HANDLED = 16;
  1704. { WG_ATTRIB_NOT_HANDLED,
  1705. "Xalan does not yet handle the {0} attribute!"},
  1706. /** WG_NO_DECIMALFORMAT_DECLARATION */
  1707. // public static final int WG_NO_DECIMALFORMAT_DECLARATION = 17;
  1708. { WG_NO_DECIMALFORMAT_DECLARATION,
  1709. "No declaration found for decimal format: {0}"},
  1710. /** WG_OLD_XSLT_NS */
  1711. // public static final int WG_OLD_XSLT_NS = 18;
  1712. { WG_OLD_XSLT_NS,
  1713. "Missing or incorrect XSLT Namespace. "},
  1714. /** WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED */
  1715. // public static final int WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED = 19;
  1716. { WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED,
  1717. "Only one default xsl:decimal-format declaration is allowed."},
  1718. /** WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE */
  1719. // public static final int WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE = 20;
  1720. { WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE,
  1721. "xsl:decimal-format names must be unique. Name \"{0}\" has been duplicated."},
  1722. /** WG_ILLEGAL_ATTRIBUTE */
  1723. //public static final int WG_ILLEGAL_ATTRIBUTE = 21;
  1724. { WG_ILLEGAL_ATTRIBUTE,
  1725. "{0} has an illegal attribute: {1}"},
  1726. /** WG_COULD_NOT_RESOLVE_PREFIX */
  1727. // public static final int WG_COULD_NOT_RESOLVE_PREFIX = 22;
  1728. { WG_COULD_NOT_RESOLVE_PREFIX,
  1729. "Could not resolve namespace prefix: {0}. The node will be ignored."},
  1730. /** WG_STYLESHEET_REQUIRES_VERSION_ATTRIB */
  1731. // public static final int WG_STYLESHEET_REQUIRES_VERSION_ATTRIB = 23;
  1732. { WG_STYLESHEET_REQUIRES_VERSION_ATTRIB,
  1733. "xsl:stylesheet requires a 'version' attribute!"},
  1734. /** WG_ILLEGAL_ATTRIBUTE_NAME */
  1735. // public static final int WG_ILLEGAL_ATTRIBUTE_NAME = 24;
  1736. { WG_ILLEGAL_ATTRIBUTE_NAME,
  1737. "Illegal attribute name: {0}"},
  1738. /** WG_ILLEGAL_ATTRIBUTE_VALUE */
  1739. // public static final int WG_ILLEGAL_ATTRIBUTE_VALUE = 25;
  1740. { WG_ILLEGAL_ATTRIBUTE_VALUE,
  1741. "Illegal value used for attribute {0}: {1}"},
  1742. /** WG_EMPTY_SECOND_ARG */
  1743. // public static final int WG_EMPTY_SECOND_ARG = 26;
  1744. { WG_EMPTY_SECOND_ARG,
  1745. "Resulting nodeset from second argument of document function is empty. The first agument will be used."},
  1746. //Following are the new WARNING keys added in XALAN code base after Jdk 1.4 (Xalan 2.2-D11)
  1747. // Note to translators: "name" and "xsl:processing-instruction" are keywords
  1748. // and must not be translated.
  1749. // WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML
  1750. /** WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML */
  1751. // public static final int WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML = 27;
  1752. { WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML,
  1753. "The value of the 'name' attribute of xsl:processing-instruction name must not be 'xml'"},
  1754. // Note to translators: "name" and "xsl:processing-instruction" are keywords
  1755. // and must not be translated. "NCName" is an XML data-type and must not be
  1756. // translated.
  1757. // WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME
  1758. /** WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME */
  1759. // public static final int WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME = 28;
  1760. { WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,
  1761. "The value of the 'name' attribute of xsl:processing-instruction must be a valid NCName: {0}"},
  1762. // Note to translators: This message is reported if the stylesheet that is
  1763. // being processed attempted to construct an XML document with an attribute in a
  1764. // place other than on an element. The substitution text specifies the name of
  1765. // the attribute.
  1766. // WG_ILLEGAL_ATTRIBUTE_POSITION
  1767. /** WG_ILLEGAL_ATTRIBUTE_POSITION */
  1768. // public static final int WG_ILLEGAL_ATTRIBUTE_POSITION = 29;
  1769. { WG_ILLEGAL_ATTRIBUTE_POSITION,
  1770. "Cannot add attribute {0} after child nodes or before an element is produced. Attribute will be ignored."},
  1771. //Check: WHY THERE IS A GAP B/W NUMBERS in the XSLTErrorResources properties file?
  1772. // Other miscellaneous text used inside the code...
  1773. { "ui_language", "en"},
  1774. { "help_language", "en" },
  1775. { "language", "en" },
  1776. { "BAD_CODE", "Parameter to createMessage was out of bounds"},
  1777. { "FORMAT_FAILED", "Exception thrown during messageFormat call"},
  1778. { "version", ">>>>>>> Xalan Version "},
  1779. { "version2", "<<<<<<<"},
  1780. { "yes", "yes"},
  1781. { "line", "Line #"},
  1782. { "column","Column #"},
  1783. { "xsldone", "XSLProcessor: done"},
  1784. // Note to translators: The following messages provide usage information
  1785. // for the Xalan Process command line. "Process" is the name of a Java class,
  1786. // and should not be translated.
  1787. { "xslProc_option", "Xalan-J command line Process class options:"},
  1788. { "xslProc_option", "Xalan-J command line Process class options\u003a"},
  1789. { "xslProc_invalid_xsltc_option", "The option {0} is not supported in XSLTC mode."},
  1790. { "xslProc_invalid_xalan_option", "The option {0} can only be used with -XSLTC."},
  1791. { "xslProc_no_input", "Error: No stylesheet or input xml is specified. Run this command without any option for usage instructions."},
  1792. { "xslProc_common_options", "-Common Options-"},
  1793. { "xslProc_xalan_options", "-Options for Xalan-"},
  1794. { "xslProc_xsltc_options", "-Options for XSLTC-"},
  1795. { "xslProc_return_to_continue", "(press <return> to continue)"},
  1796. // Note to translators: The option name and the parameter name do not need to
  1797. // be translated. Only translate the messages in parentheses. Note also that
  1798. // leading whitespace in the messages is used to indent the usage information
  1799. // for each option in the English messages.
  1800. // Do not translate the keywords: XSLTC, SAX, DOM and DTM.
  1801. { "optionXSLTC", " [-XSLTC (use XSLTC for transformation)]"},
  1802. { "optionIN", " [-IN inputXMLURL]"},
  1803. { "optionXSL", " [-XSL XSLTransformationURL]"},
  1804. { "optionOUT", " [-OUT outputFileName]"},
  1805. { "optionLXCIN", " [-LXCIN compiledStylesheetFileNameIn]"},
  1806. { "optionLXCOUT", " [-LXCOUT compiledStylesheetFileNameOutOut]"},
  1807. { "optionPARSER", " [-PARSER fully qualified class name of parser liaison]"},
  1808. { "optionE", " [-E (Do not expand entity refs)]"},
  1809. { "optionV", " [-E (Do not expand entity refs)]"},
  1810. { "optionQC", " [-QC (Quiet Pattern Conflicts Warnings)]"},
  1811. { "optionQ", " [-Q (Quiet Mode)]"},
  1812. { "optionLF", " [-LF (Use linefeeds only on output {default is CR/LF})]"},
  1813. { "optionCR", " [-CR (Use carriage returns only on output {default is CR/LF})]"},
  1814. { "optionESCAPE", " [-ESCAPE (Which characters to escape {default is <>&\"\'\\r\\n}]"},
  1815. { "optionINDENT", " [-INDENT (Control how many spaces to indent {default is 0})]"},
  1816. { "optionTT", " [-TT (Trace the templates as they are being called.)]"},
  1817. { "optionTG", " [-TG (Trace each generation event.)]"},
  1818. { "optionTS", " [-TS (Trace each selection event.)]"},
  1819. { "optionTTC", " [-TTC (Trace the template children as they are being processed.)]"},
  1820. { "optionTCLASS", " [-TCLASS (TraceListener class for trace extensions.)]"},
  1821. { "optionVALIDATE", " [-VALIDATE (Set whether validation occurs. Validation is off by default.)]"},
  1822. { "optionEDUMP", " [-EDUMP {optional filename} (Do stackdump on error.)]"},
  1823. { "optionXML", " [-XML (Use XML formatter and add XML header.)]"},
  1824. { "optionTEXT", " [-TEXT (Use simple Text formatter.)]"},
  1825. { "optionHTML", " [-HTML (Use HTML formatter.)]"},
  1826. { "optionPARAM", " [-PARAM name expression (Set a stylesheet parameter)]"},
  1827. { "noParsermsg1", "XSL Process was not successful."},
  1828. { "noParsermsg2", "** Could not find parser **"},
  1829. { "noParsermsg3", "Please check your classpath."},
  1830. { "noParsermsg4", "If you don't have IBM's XML Parser for Java, you can download it from"},
  1831. { "noParsermsg5", "IBM's AlphaWorks: http://www.alphaworks.ibm.com/formula/xml"},
  1832. { "optionURIRESOLVER", " [-URIRESOLVER full class name (URIResolver to be used to resolve URIs)]"},
  1833. { "optionENTITYRESOLVER", " [-ENTITYRESOLVER full class name (EntityResolver to be used to resolve entities)]"},
  1834. { "optionCONTENTHANDLER", " [-CONTENTHANDLER full class name (ContentHandler to be used to serialize output)]"},
  1835. { "optionLINENUMBERS", " [-L use line numbers for source document]"},
  1836. // Following are the new options added in XSLTErrorResources.properties files after Jdk 1.4 (Xalan 2.2-D11)
  1837. { "optionMEDIA", " [-MEDIA mediaType (use media attribute to find stylesheet associated with a document.)]"},
  1838. { "optionFLAVOR", " [-FLAVOR flavorName (Explicitly use s2s=SAX or d2d=DOM to do transform.)] "}, // Added by sboag/scurcuru; experimental
  1839. { "optionDIAG", " [-DIAG (Print overall milliseconds transform took.)]"},
  1840. { "optionINCREMENTAL", " [-INCREMENTAL (request incremental DTM construction by setting http://xml.apache.org/xalan/features/incremental true.)]"},
  1841. { "optionNOOPTIMIMIZE", " [-NOOPTIMIMIZE (request no stylesheet optimization proccessing by setting http://xml.apache.org/xalan/features/optimize false.)]"},
  1842. { "optionRL", " [-RL recursionlimit (assert numeric limit on stylesheet recursion depth.)]"},
  1843. { "optionXO", " [-XO [transletName] (assign the name to the generated translet)]"},
  1844. { "optionXD", " [-XD destinationDirectory (specify a destination directory for translet)]"},
  1845. { "optionXJ", " [-XJ jarfile (packages translet classes into a jar file of name <jarfile>)]"},
  1846. { "optionXP", " [-XP package (specifies a package name prefix for all generated translet classes)]"},
  1847. //AddITIONAL STRINGS that need L10n
  1848. // Note to translators: The following message describes usage of a particular
  1849. // command-line option that is used to enable the "template inlining"
  1850. // optimization. The optimization involves making a copy of the code
  1851. // generated for a template in another template that refers to it.
  1852. { "optionXN", " [-XN (enables template inlining)]" },
  1853. { "optionXX", " [-XX (turns on additional debugging message output)]"},
  1854. { "optionXT" , " [-XT (use translet to transform if possible)]"},
  1855. { "diagTiming"," --------- Transform of {0} via {1} took {2} ms" },
  1856. { "recursionTooDeep","Template nesting too deep. nesting = {0}, template {1} {2}" },
  1857. { "nameIs", "name is" },
  1858. { "matchPatternIs", "match pattern is" }
  1859. };
  1860. // ================= INFRASTRUCTURE ======================
  1861. /** String for use when a bad error code was encountered. */
  1862. public static final String BAD_CODE = "BAD_CODE";
  1863. /** String for use when formatting of the error string failed. */
  1864. public static final String FORMAT_FAILED = "FORMAT_FAILED";
  1865. /** General error string. */
  1866. public static final String ERROR_STRING = "#error";
  1867. /** String to prepend to error messages. */
  1868. public static final String ERROR_HEADER = "Error: ";
  1869. /** String to prepend to warning messages. */
  1870. public static final String WARNING_HEADER = "Warning: ";
  1871. /** String to specify the XSLT module. */
  1872. public static final String XSL_HEADER = "XSLT ";
  1873. /** String to specify the XML parser module. */
  1874. public static final String XML_HEADER = "XML ";
  1875. /** I don't think this is used any more.
  1876. * @deprecated */
  1877. public static final String QUERY_HEADER = "PATTERN ";
  1878. /**
  1879. * Get the lookup table.
  1880. *
  1881. * @return The int to message lookup table.
  1882. */
  1883. public Object[][] getContents()
  1884. {
  1885. return contents;
  1886. }
  1887. /**
  1888. * Return a named ResourceBundle for a particular locale. This method mimics the behavior
  1889. * of ResourceBundle.getBundle().
  1890. *
  1891. * @param className the name of the class that implements the resource bundle.
  1892. * @return the ResourceBundle
  1893. * @throws MissingResourceException
  1894. */
  1895. public static final XSLTErrorResources loadResourceBundle(String className)
  1896. throws MissingResourceException
  1897. {
  1898. Locale locale = Locale.getDefault();
  1899. String suffix = getResourceSuffix(locale);
  1900. try
  1901. {
  1902. // first try with the given locale
  1903. return (XSLTErrorResources) ResourceBundle.getBundle(className
  1904. + suffix, locale);
  1905. }
  1906. catch (MissingResourceException e)
  1907. {
  1908. try // try to fall back to en_US if we can't load
  1909. {
  1910. // Since we can't find the localized property file,
  1911. // fall back to en_US.
  1912. return (XSLTErrorResources) ResourceBundle.getBundle(className,
  1913. new Locale("en", "US"));
  1914. }
  1915. catch (MissingResourceException e2)
  1916. {
  1917. // Now we are really in trouble.
  1918. // very bad, definitely very bad...not going to get very far
  1919. throw new MissingResourceException(
  1920. "Could not load any resource bundles.", className, "");
  1921. }
  1922. }
  1923. }
  1924. /**
  1925. * Return the resource file suffic for the indicated locale
  1926. * For most locales, this will be based the language code. However
  1927. * for Chinese, we do distinguish between Taiwan and PRC
  1928. *
  1929. * @param locale the locale
  1930. * @return an String suffix which canbe appended to a resource name
  1931. */
  1932. private static final String getResourceSuffix(Locale locale)
  1933. {
  1934. String suffix = "_" + locale.getLanguage();
  1935. String country = locale.getCountry();
  1936. if (country.equals("TW"))
  1937. suffix += "_" + country;
  1938. return suffix;
  1939. }
  1940. }