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