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_zh_CN.java,v 1.8 2004/02/16 19:14:07 minchau 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_zh_CN 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_ILLEGAL_ATTRIBUTE = "ER_ILLEGAL_ATTRIBUTE";
  86. public static final String ER_NULL_SOURCENODE_APPLYIMPORTS = "ER_NULL_SOURCENODE_APPLYIMPORTS";
  87. public static final String ER_CANNOT_ADD = "ER_CANNOT_ADD";
  88. public static final String ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES="ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES";
  89. public static final String ER_NO_NAME_ATTRIB = "ER_NO_NAME_ATTRIB";
  90. public static final String ER_TEMPLATE_NOT_FOUND = "ER_TEMPLATE_NOT_FOUND";
  91. public static final String ER_CANT_RESOLVE_NAME_AVT = "ER_CANT_RESOLVE_NAME_AVT";
  92. public static final String ER_REQUIRES_ATTRIB = "ER_REQUIRES_ATTRIB";
  93. public static final String ER_MUST_HAVE_TEST_ATTRIB = "ER_MUST_HAVE_TEST_ATTRIB";
  94. public static final String ER_BAD_VAL_ON_LEVEL_ATTRIB =
  95. "ER_BAD_VAL_ON_LEVEL_ATTRIB";
  96. public static final String ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML =
  97. "ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML";
  98. public static final String ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME =
  99. "ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME";
  100. public static final String ER_NEED_MATCH_ATTRIB = "ER_NEED_MATCH_ATTRIB";
  101. public static final String ER_NEED_NAME_OR_MATCH_ATTRIB =
  102. "ER_NEED_NAME_OR_MATCH_ATTRIB";
  103. public static final String ER_CANT_RESOLVE_NSPREFIX =
  104. "ER_CANT_RESOLVE_NSPREFIX";
  105. public static final String ER_ILLEGAL_VALUE = "ER_ILLEGAL_VALUE";
  106. public static final String ER_NO_OWNERDOC = "ER_NO_OWNERDOC";
  107. public static final String ER_ELEMTEMPLATEELEM_ERR ="ER_ELEMTEMPLATEELEM_ERR";
  108. public static final String ER_NULL_CHILD = "ER_NULL_CHILD";
  109. public static final String ER_NEED_SELECT_ATTRIB = "ER_NEED_SELECT_ATTRIB";
  110. public static final String ER_NEED_TEST_ATTRIB = "ER_NEED_TEST_ATTRIB";
  111. public static final String ER_NEED_NAME_ATTRIB = "ER_NEED_NAME_ATTRIB";
  112. public static final String ER_NO_CONTEXT_OWNERDOC = "ER_NO_CONTEXT_OWNERDOC";
  113. public static final String ER_COULD_NOT_CREATE_XML_PROC_LIAISON =
  114. "ER_COULD_NOT_CREATE_XML_PROC_LIAISON";
  115. public static final String ER_PROCESS_NOT_SUCCESSFUL =
  116. "ER_PROCESS_NOT_SUCCESSFUL";
  117. public static final String ER_NOT_SUCCESSFUL = "ER_NOT_SUCCESSFUL";
  118. public static final String ER_ENCODING_NOT_SUPPORTED =
  119. "ER_ENCODING_NOT_SUPPORTED";
  120. public static final String ER_COULD_NOT_CREATE_TRACELISTENER =
  121. "ER_COULD_NOT_CREATE_TRACELISTENER";
  122. public static final String ER_KEY_REQUIRES_NAME_ATTRIB =
  123. "ER_KEY_REQUIRES_NAME_ATTRIB";
  124. public static final String ER_KEY_REQUIRES_MATCH_ATTRIB =
  125. "ER_KEY_REQUIRES_MATCH_ATTRIB";
  126. public static final String ER_KEY_REQUIRES_USE_ATTRIB =
  127. "ER_KEY_REQUIRES_USE_ATTRIB";
  128. public static final String ER_REQUIRES_ELEMENTS_ATTRIB =
  129. "ER_REQUIRES_ELEMENTS_ATTRIB";
  130. public static final String ER_MISSING_PREFIX_ATTRIB =
  131. "ER_MISSING_PREFIX_ATTRIB";
  132. public static final String ER_BAD_STYLESHEET_URL = "ER_BAD_STYLESHEET_URL";
  133. public static final String ER_FILE_NOT_FOUND = "ER_FILE_NOT_FOUND";
  134. public static final String ER_IOEXCEPTION = "ER_IOEXCEPTION";
  135. public static final String ER_NO_HREF_ATTRIB = "ER_NO_HREF_ATTRIB";
  136. public static final String ER_STYLESHEET_INCLUDES_ITSELF =
  137. "ER_STYLESHEET_INCLUDES_ITSELF";
  138. public static final String ER_PROCESSINCLUDE_ERROR ="ER_PROCESSINCLUDE_ERROR";
  139. public static final String ER_MISSING_LANG_ATTRIB = "ER_MISSING_LANG_ATTRIB";
  140. public static final String ER_MISSING_CONTAINER_ELEMENT_COMPONENT =
  141. "ER_MISSING_CONTAINER_ELEMENT_COMPONENT";
  142. public static final String ER_CAN_ONLY_OUTPUT_TO_ELEMENT =
  143. "ER_CAN_ONLY_OUTPUT_TO_ELEMENT";
  144. public static final String ER_PROCESS_ERROR = "ER_PROCESS_ERROR";
  145. public static final String ER_UNIMPLNODE_ERROR = "ER_UNIMPLNODE_ERROR";
  146. public static final String ER_NO_SELECT_EXPRESSION ="ER_NO_SELECT_EXPRESSION";
  147. public static final String ER_CANNOT_SERIALIZE_XSLPROCESSOR =
  148. "ER_CANNOT_SERIALIZE_XSLPROCESSOR";
  149. public static final String ER_NO_INPUT_STYLESHEET = "ER_NO_INPUT_STYLESHEET";
  150. public static final String ER_FAILED_PROCESS_STYLESHEET =
  151. "ER_FAILED_PROCESS_STYLESHEET";
  152. public static final String ER_COULDNT_PARSE_DOC = "ER_COULDNT_PARSE_DOC";
  153. public static final String ER_COULDNT_FIND_FRAGMENT =
  154. "ER_COULDNT_FIND_FRAGMENT";
  155. public static final String ER_NODE_NOT_ELEMENT = "ER_NODE_NOT_ELEMENT";
  156. public static final String ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB =
  157. "ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB";
  158. public static final String ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB =
  159. "ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB";
  160. public static final String ER_NO_CLONE_OF_DOCUMENT_FRAG =
  161. "ER_NO_CLONE_OF_DOCUMENT_FRAG";
  162. public static final String ER_CANT_CREATE_ITEM = "ER_CANT_CREATE_ITEM";
  163. public static final String ER_XMLSPACE_ILLEGAL_VALUE =
  164. "ER_XMLSPACE_ILLEGAL_VALUE";
  165. public static final String ER_NO_XSLKEY_DECLARATION =
  166. "ER_NO_XSLKEY_DECLARATION";
  167. public static final String ER_CANT_CREATE_URL = "ER_CANT_CREATE_URL";
  168. public static final String ER_XSLFUNCTIONS_UNSUPPORTED =
  169. "ER_XSLFUNCTIONS_UNSUPPORTED";
  170. public static final String ER_PROCESSOR_ERROR = "ER_PROCESSOR_ERROR";
  171. public static final String ER_NOT_ALLOWED_INSIDE_STYLESHEET =
  172. "ER_NOT_ALLOWED_INSIDE_STYLESHEET";
  173. public static final String ER_RESULTNS_NOT_SUPPORTED =
  174. "ER_RESULTNS_NOT_SUPPORTED";
  175. public static final String ER_DEFAULTSPACE_NOT_SUPPORTED =
  176. "ER_DEFAULTSPACE_NOT_SUPPORTED";
  177. public static final String ER_INDENTRESULT_NOT_SUPPORTED =
  178. "ER_INDENTRESULT_NOT_SUPPORTED";
  179. public static final String ER_ILLEGAL_ATTRIB = "ER_ILLEGAL_ATTRIB";
  180. public static final String ER_UNKNOWN_XSL_ELEM = "ER_UNKNOWN_XSL_ELEM";
  181. public static final String ER_BAD_XSLSORT_USE = "ER_BAD_XSLSORT_USE";
  182. public static final String ER_MISPLACED_XSLWHEN = "ER_MISPLACED_XSLWHEN";
  183. public static final String ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE =
  184. "ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE";
  185. public static final String ER_MISPLACED_XSLOTHERWISE =
  186. "ER_MISPLACED_XSLOTHERWISE";
  187. public static final String ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE =
  188. "ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE";
  189. public static final String ER_NOT_ALLOWED_INSIDE_TEMPLATE =
  190. "ER_NOT_ALLOWED_INSIDE_TEMPLATE";
  191. public static final String ER_UNKNOWN_EXT_NS_PREFIX =
  192. "ER_UNKNOWN_EXT_NS_PREFIX";
  193. public static final String ER_IMPORTS_AS_FIRST_ELEM =
  194. "ER_IMPORTS_AS_FIRST_ELEM";
  195. public static final String ER_IMPORTING_ITSELF = "ER_IMPORTING_ITSELF";
  196. public static final String ER_XMLSPACE_ILLEGAL_VAL ="ER_XMLSPACE_ILLEGAL_VAL";
  197. public static final String ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL =
  198. "ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL";
  199. public static final String ER_SAX_EXCEPTION = "ER_SAX_EXCEPTION";
  200. public static final String ER_XSLT_ERROR = "ER_XSLT_ERROR";
  201. public static final String ER_CURRENCY_SIGN_ILLEGAL=
  202. "ER_CURRENCY_SIGN_ILLEGAL";
  203. public static final String ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM =
  204. "ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM";
  205. public static final String ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER =
  206. "ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER";
  207. public static final String ER_REDIRECT_COULDNT_GET_FILENAME =
  208. "ER_REDIRECT_COULDNT_GET_FILENAME";
  209. public static final String ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT =
  210. "ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT";
  211. public static final String ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX =
  212. "ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX";
  213. public static final String ER_MISSING_NS_URI = "ER_MISSING_NS_URI";
  214. public static final String ER_MISSING_ARG_FOR_OPTION =
  215. "ER_MISSING_ARG_FOR_OPTION";
  216. public static final String ER_INVALID_OPTION = "ER_INVALID_OPTION";
  217. public static final String ER_MALFORMED_FORMAT_STRING =
  218. "ER_MALFORMED_FORMAT_STRING";
  219. public static final String ER_STYLESHEET_REQUIRES_VERSION_ATTRIB =
  220. "ER_STYLESHEET_REQUIRES_VERSION_ATTRIB";
  221. public static final String ER_ILLEGAL_ATTRIBUTE_VALUE =
  222. "ER_ILLEGAL_ATTRIBUTE_VALUE";
  223. public static final String ER_CHOOSE_REQUIRES_WHEN ="ER_CHOOSE_REQUIRES_WHEN";
  224. public static final String ER_NO_APPLY_IMPORT_IN_FOR_EACH =
  225. "ER_NO_APPLY_IMPORT_IN_FOR_EACH";
  226. public static final String ER_CANT_USE_DTM_FOR_OUTPUT =
  227. "ER_CANT_USE_DTM_FOR_OUTPUT";
  228. public static final String ER_CANT_USE_DTM_FOR_INPUT =
  229. "ER_CANT_USE_DTM_FOR_INPUT";
  230. public static final String ER_CALL_TO_EXT_FAILED = "ER_CALL_TO_EXT_FAILED";
  231. public static final String ER_PREFIX_MUST_RESOLVE = "ER_PREFIX_MUST_RESOLVE";
  232. public static final String ER_INVALID_UTF16_SURROGATE =
  233. "ER_INVALID_UTF16_SURROGATE";
  234. public static final String ER_XSLATTRSET_USED_ITSELF =
  235. "ER_XSLATTRSET_USED_ITSELF";
  236. public static final String ER_CANNOT_MIX_XERCESDOM ="ER_CANNOT_MIX_XERCESDOM";
  237. public static final String ER_TOO_MANY_LISTENERS = "ER_TOO_MANY_LISTENERS";
  238. public static final String ER_IN_ELEMTEMPLATEELEM_READOBJECT =
  239. "ER_IN_ELEMTEMPLATEELEM_READOBJECT";
  240. public static final String ER_DUPLICATE_NAMED_TEMPLATE =
  241. "ER_DUPLICATE_NAMED_TEMPLATE";
  242. public static final String ER_INVALID_KEY_CALL = "ER_INVALID_KEY_CALL";
  243. public static final String ER_REFERENCING_ITSELF = "ER_REFERENCING_ITSELF";
  244. public static final String ER_ILLEGAL_DOMSOURCE_INPUT =
  245. "ER_ILLEGAL_DOMSOURCE_INPUT";
  246. public static final String ER_CLASS_NOT_FOUND_FOR_OPTION =
  247. "ER_CLASS_NOT_FOUND_FOR_OPTION";
  248. public static final String ER_REQUIRED_ELEM_NOT_FOUND =
  249. "ER_REQUIRED_ELEM_NOT_FOUND";
  250. public static final String ER_INPUT_CANNOT_BE_NULL ="ER_INPUT_CANNOT_BE_NULL";
  251. public static final String ER_URI_CANNOT_BE_NULL = "ER_URI_CANNOT_BE_NULL";
  252. public static final String ER_FILE_CANNOT_BE_NULL = "ER_FILE_CANNOT_BE_NULL";
  253. public static final String ER_SOURCE_CANNOT_BE_NULL =
  254. "ER_SOURCE_CANNOT_BE_NULL";
  255. public static final String ER_CANNOT_INIT_BSFMGR = "ER_CANNOT_INIT_BSFMGR";
  256. public static final String ER_CANNOT_CMPL_EXTENSN = "ER_CANNOT_CMPL_EXTENSN";
  257. public static final String ER_CANNOT_CREATE_EXTENSN =
  258. "ER_CANNOT_CREATE_EXTENSN";
  259. public static final String ER_INSTANCE_MTHD_CALL_REQUIRES =
  260. "ER_INSTANCE_MTHD_CALL_REQUIRES";
  261. public static final String ER_INVALID_ELEMENT_NAME ="ER_INVALID_ELEMENT_NAME";
  262. public static final String ER_ELEMENT_NAME_METHOD_STATIC =
  263. "ER_ELEMENT_NAME_METHOD_STATIC";
  264. public static final String ER_EXTENSION_FUNC_UNKNOWN =
  265. "ER_EXTENSION_FUNC_UNKNOWN";
  266. public static final String ER_MORE_MATCH_CONSTRUCTOR =
  267. "ER_MORE_MATCH_CONSTRUCTOR";
  268. public static final String ER_MORE_MATCH_METHOD = "ER_MORE_MATCH_METHOD";
  269. public static final String ER_MORE_MATCH_ELEMENT = "ER_MORE_MATCH_ELEMENT";
  270. public static final String ER_INVALID_CONTEXT_PASSED =
  271. "ER_INVALID_CONTEXT_PASSED";
  272. public static final String ER_POOL_EXISTS = "ER_POOL_EXISTS";
  273. public static final String ER_NO_DRIVER_NAME = "ER_NO_DRIVER_NAME";
  274. public static final String ER_NO_URL = "ER_NO_URL";
  275. public static final String ER_POOL_SIZE_LESSTHAN_ONE =
  276. "ER_POOL_SIZE_LESSTHAN_ONE";
  277. public static final String ER_INVALID_DRIVER = "ER_INVALID_DRIVER";
  278. public static final String ER_NO_STYLESHEETROOT = "ER_NO_STYLESHEETROOT";
  279. public static final String ER_ILLEGAL_XMLSPACE_VALUE =
  280. "ER_ILLEGAL_XMLSPACE_VALUE";
  281. public static final String ER_PROCESSFROMNODE_FAILED =
  282. "ER_PROCESSFROMNODE_FAILED";
  283. public static final String ER_RESOURCE_COULD_NOT_LOAD =
  284. "ER_RESOURCE_COULD_NOT_LOAD";
  285. public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO =
  286. "ER_BUFFER_SIZE_LESSTHAN_ZERO";
  287. public static final String ER_UNKNOWN_ERROR_CALLING_EXTENSION =
  288. "ER_UNKNOWN_ERROR_CALLING_EXTENSION";
  289. public static final String ER_NO_NAMESPACE_DECL = "ER_NO_NAMESPACE_DECL";
  290. public static final String ER_ELEM_CONTENT_NOT_ALLOWED =
  291. "ER_ELEM_CONTENT_NOT_ALLOWED";
  292. public static final String ER_STYLESHEET_DIRECTED_TERMINATION =
  293. "ER_STYLESHEET_DIRECTED_TERMINATION";
  294. public static final String ER_ONE_OR_TWO = "ER_ONE_OR_TWO";
  295. public static final String ER_TWO_OR_THREE = "ER_TWO_OR_THREE";
  296. public static final String ER_COULD_NOT_LOAD_RESOURCE =
  297. "ER_COULD_NOT_LOAD_RESOURCE";
  298. public static final String ER_CANNOT_INIT_DEFAULT_TEMPLATES =
  299. "ER_CANNOT_INIT_DEFAULT_TEMPLATES";
  300. public static final String ER_RESULT_NULL = "ER_RESULT_NULL";
  301. public static final String ER_RESULT_COULD_NOT_BE_SET =
  302. "ER_RESULT_COULD_NOT_BE_SET";
  303. public static final String ER_NO_OUTPUT_SPECIFIED = "ER_NO_OUTPUT_SPECIFIED";
  304. public static final String ER_CANNOT_TRANSFORM_TO_RESULT_TYPE =
  305. "ER_CANNOT_TRANSFORM_TO_RESULT_TYPE";
  306. public static final String ER_CANNOT_TRANSFORM_SOURCE_TYPE =
  307. "ER_CANNOT_TRANSFORM_SOURCE_TYPE";
  308. public static final String ER_NULL_CONTENT_HANDLER ="ER_NULL_CONTENT_HANDLER";
  309. public static final String ER_NULL_ERROR_HANDLER = "ER_NULL_ERROR_HANDLER";
  310. public static final String ER_CANNOT_CALL_PARSE = "ER_CANNOT_CALL_PARSE";
  311. public static final String ER_NO_PARENT_FOR_FILTER ="ER_NO_PARENT_FOR_FILTER";
  312. public static final String ER_NO_STYLESHEET_IN_MEDIA =
  313. "ER_NO_STYLESHEET_IN_MEDIA";
  314. public static final String ER_NO_STYLESHEET_PI = "ER_NO_STYLESHEET_PI";
  315. public static final String ER_NOT_SUPPORTED = "ER_NOT_SUPPORTED";
  316. public static final String ER_PROPERTY_VALUE_BOOLEAN =
  317. "ER_PROPERTY_VALUE_BOOLEAN";
  318. public static final String ER_COULD_NOT_FIND_EXTERN_SCRIPT =
  319. "ER_COULD_NOT_FIND_EXTERN_SCRIPT";
  320. public static final String ER_RESOURCE_COULD_NOT_FIND =
  321. "ER_RESOURCE_COULD_NOT_FIND";
  322. public static final String ER_OUTPUT_PROPERTY_NOT_RECOGNIZED =
  323. "ER_OUTPUT_PROPERTY_NOT_RECOGNIZED";
  324. public static final String ER_FAILED_CREATING_ELEMLITRSLT =
  325. "ER_FAILED_CREATING_ELEMLITRSLT";
  326. public static final String ER_VALUE_SHOULD_BE_NUMBER =
  327. "ER_VALUE_SHOULD_BE_NUMBER";
  328. public static final String ER_VALUE_SHOULD_EQUAL = "ER_VALUE_SHOULD_EQUAL";
  329. public static final String ER_FAILED_CALLING_METHOD =
  330. "ER_FAILED_CALLING_METHOD";
  331. public static final String ER_FAILED_CREATING_ELEMTMPL =
  332. "ER_FAILED_CREATING_ELEMTMPL";
  333. public static final String ER_CHARS_NOT_ALLOWED = "ER_CHARS_NOT_ALLOWED";
  334. public static final String ER_ATTR_NOT_ALLOWED = "ER_ATTR_NOT_ALLOWED";
  335. public static final String ER_BAD_VALUE = "ER_BAD_VALUE";
  336. public static final String ER_ATTRIB_VALUE_NOT_FOUND =
  337. "ER_ATTRIB_VALUE_NOT_FOUND";
  338. public static final String ER_ATTRIB_VALUE_NOT_RECOGNIZED =
  339. "ER_ATTRIB_VALUE_NOT_RECOGNIZED";
  340. public static final String ER_NULL_URI_NAMESPACE = "ER_NULL_URI_NAMESPACE";
  341. public static final String ER_NUMBER_TOO_BIG = "ER_NUMBER_TOO_BIG";
  342. public static final String ER_CANNOT_FIND_SAX1_DRIVER =
  343. "ER_CANNOT_FIND_SAX1_DRIVER";
  344. public static final String ER_SAX1_DRIVER_NOT_LOADED =
  345. "ER_SAX1_DRIVER_NOT_LOADED";
  346. public static final String ER_SAX1_DRIVER_NOT_INSTANTIATED =
  347. "ER_SAX1_DRIVER_NOT_INSTANTIATED" ;
  348. public static final String ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER =
  349. "ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER";
  350. public static final String ER_PARSER_PROPERTY_NOT_SPECIFIED =
  351. "ER_PARSER_PROPERTY_NOT_SPECIFIED";
  352. public static final String ER_PARSER_ARG_CANNOT_BE_NULL =
  353. "ER_PARSER_ARG_CANNOT_BE_NULL" ;
  354. public static final String ER_FEATURE = "ER_FEATURE";
  355. public static final String ER_PROPERTY = "ER_PROPERTY" ;
  356. public static final String ER_NULL_ENTITY_RESOLVER ="ER_NULL_ENTITY_RESOLVER";
  357. public static final String ER_NULL_DTD_HANDLER = "ER_NULL_DTD_HANDLER" ;
  358. public static final String ER_NO_DRIVER_NAME_SPECIFIED =
  359. "ER_NO_DRIVER_NAME_SPECIFIED";
  360. public static final String ER_NO_URL_SPECIFIED = "ER_NO_URL_SPECIFIED";
  361. public static final String ER_POOLSIZE_LESS_THAN_ONE =
  362. "ER_POOLSIZE_LESS_THAN_ONE";
  363. public static final String ER_INVALID_DRIVER_NAME = "ER_INVALID_DRIVER_NAME";
  364. public static final String ER_ERRORLISTENER = "ER_ERRORLISTENER";
  365. public static final String ER_ASSERT_NO_TEMPLATE_PARENT =
  366. "ER_ASSERT_NO_TEMPLATE_PARENT";
  367. public static final String ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR =
  368. "ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR";
  369. public static final String ER_NOT_ALLOWED_IN_POSITION =
  370. "ER_NOT_ALLOWED_IN_POSITION";
  371. public static final String ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION =
  372. "ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION";
  373. public static final String INVALID_TCHAR = "INVALID_TCHAR";
  374. public static final String INVALID_QNAME = "INVALID_QNAME";
  375. public static final String INVALID_ENUM = "INVALID_ENUM";
  376. public static final String INVALID_NMTOKEN = "INVALID_NMTOKEN";
  377. public static final String INVALID_NCNAME = "INVALID_NCNAME";
  378. public static final String INVALID_BOOLEAN = "INVALID_BOOLEAN";
  379. public static final String INVALID_NUMBER = "INVALID_NUMBER";
  380. public static final String ER_ARG_LITERAL = "ER_ARG_LITERAL";
  381. public static final String ER_DUPLICATE_GLOBAL_VAR ="ER_DUPLICATE_GLOBAL_VAR";
  382. public static final String ER_DUPLICATE_VAR = "ER_DUPLICATE_VAR";
  383. public static final String ER_TEMPLATE_NAME_MATCH = "ER_TEMPLATE_NAME_MATCH";
  384. public static final String ER_INVALID_PREFIX = "ER_INVALID_PREFIX";
  385. public static final String ER_NO_ATTRIB_SET = "ER_NO_ATTRIB_SET";
  386. public static final String WG_FOUND_CURLYBRACE = "WG_FOUND_CURLYBRACE";
  387. public static final String WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR =
  388. "WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR";
  389. public static final String WG_EXPR_ATTRIB_CHANGED_TO_SELECT =
  390. "WG_EXPR_ATTRIB_CHANGED_TO_SELECT";
  391. public static final String WG_NO_LOCALE_IN_FORMATNUMBER =
  392. "WG_NO_LOCALE_IN_FORMATNUMBER";
  393. public static final String WG_LOCALE_NOT_FOUND = "WG_LOCALE_NOT_FOUND";
  394. public static final String WG_CANNOT_MAKE_URL_FROM ="WG_CANNOT_MAKE_URL_FROM";
  395. public static final String WG_CANNOT_LOAD_REQUESTED_DOC =
  396. "WG_CANNOT_LOAD_REQUESTED_DOC";
  397. public static final String WG_CANNOT_FIND_COLLATOR ="WG_CANNOT_FIND_COLLATOR";
  398. public static final String WG_FUNCTIONS_SHOULD_USE_URL =
  399. "WG_FUNCTIONS_SHOULD_USE_URL";
  400. public static final String WG_ENCODING_NOT_SUPPORTED_USING_UTF8 =
  401. "WG_ENCODING_NOT_SUPPORTED_USING_UTF8";
  402. public static final String WG_ENCODING_NOT_SUPPORTED_USING_JAVA =
  403. "WG_ENCODING_NOT_SUPPORTED_USING_JAVA";
  404. public static final String WG_SPECIFICITY_CONFLICTS =
  405. "WG_SPECIFICITY_CONFLICTS";
  406. public static final String WG_PARSING_AND_PREPARING =
  407. "WG_PARSING_AND_PREPARING";
  408. public static final String WG_ATTR_TEMPLATE = "WG_ATTR_TEMPLATE";
  409. public static final String WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE = "WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESP";
  410. public static final String WG_ATTRIB_NOT_HANDLED = "WG_ATTRIB_NOT_HANDLED";
  411. public static final String WG_NO_DECIMALFORMAT_DECLARATION =
  412. "WG_NO_DECIMALFORMAT_DECLARATION";
  413. public static final String WG_OLD_XSLT_NS = "WG_OLD_XSLT_NS";
  414. public static final String WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED =
  415. "WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED";
  416. public static final String WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE =
  417. "WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE";
  418. public static final String WG_ILLEGAL_ATTRIBUTE = "WG_ILLEGAL_ATTRIBUTE";
  419. public static final String WG_COULD_NOT_RESOLVE_PREFIX =
  420. "WG_COULD_NOT_RESOLVE_PREFIX";
  421. public static final String WG_STYLESHEET_REQUIRES_VERSION_ATTRIB =
  422. "WG_STYLESHEET_REQUIRES_VERSION_ATTRIB";
  423. public static final String WG_ILLEGAL_ATTRIBUTE_NAME =
  424. "WG_ILLEGAL_ATTRIBUTE_NAME";
  425. public static final String WG_ILLEGAL_ATTRIBUTE_VALUE =
  426. "WG_ILLEGAL_ATTRIBUTE_VALUE";
  427. public static final String WG_EMPTY_SECOND_ARG = "WG_EMPTY_SECOND_ARG";
  428. public static final String WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML =
  429. "WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML";
  430. public static final String WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME =
  431. "WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME";
  432. public static final String WG_ILLEGAL_ATTRIBUTE_POSITION =
  433. "WG_ILLEGAL_ATTRIBUTE_POSITION";
  434. // public static final int ER_NO_CURLYBRACE = 1;
  435. /*
  436. * Now fill in the message text.
  437. * Then fill in the message text for that message code in the
  438. * array. Use the new error code as the index into the array.
  439. */
  440. // Error messages...
  441. /** The lookup table for error messages. */
  442. public static final Object[][] contents = {
  443. /** Error message ID that has a null message, but takes in a single object. */
  444. {"ER0000" , "{0}" },
  445. /** ER_NO_CURLYBRACE */
  446. // public static final int ER_NO_CURLYBRACE = 1;
  447. { ER_NO_CURLYBRACE,
  448. "\u9519\u8bef\uff1a\u8868\u8fbe\u5f0f\u4e2d\u4e0d\u80fd\u6709\u201c{\u201d"},
  449. /** ER_ILLEGAL_ATTRIBUTE */
  450. // public static final int ER_ILLEGAL_ATTRIBUTE = 2;
  451. { ER_ILLEGAL_ATTRIBUTE ,
  452. "{0} \u6709\u4e00\u4e2a\u975e\u6cd5\u5c5e\u6027\uff1a{1}"},
  453. /** ER_NULL_SOURCENODE_APPLYIMPORTS */
  454. // public static final int ER_NULL_SOURCENODE_APPLYIMPORTS = 3;
  455. {ER_NULL_SOURCENODE_APPLYIMPORTS ,
  456. "sourceNode \u5728 xsl:apply-imports \u4e2d\u4e3a\u7a7a\uff01"},
  457. /** ER_CANNOT_ADD */
  458. // public static final int ER_CANNOT_ADD = 4;
  459. {ER_CANNOT_ADD,
  460. "\u65e0\u6cd5\u5c06 {0} \u6dfb\u52a0\u5230 {1}"},
  461. /** ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES */
  462. // public static final int ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES = 5;
  463. { ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES,
  464. "sourceNode \u5728 handleApplyTemplatesInstruction \u4e2d\u4e3a\u7a7a\uff01"},
  465. /** ER_NO_NAME_ATTRIB */
  466. // public static final int ER_NO_NAME_ATTRIB = 6;
  467. { ER_NO_NAME_ATTRIB,
  468. "{0} \u5fc5\u987b\u6709 name \u5c5e\u6027\u3002"},
  469. /** ER_TEMPLATE_NOT_FOUND */
  470. //public static final int ER_TEMPLATE_NOT_FOUND = 7;
  471. {ER_TEMPLATE_NOT_FOUND,
  472. "\u627e\u4e0d\u5230\u4ee5\u4e0b\u540d\u79f0\u7684\u6a21\u677f\uff1a{0}"},
  473. /** ER_CANT_RESOLVE_NAME_AVT */
  474. // public static final int ER_CANT_RESOLVE_NAME_AVT = 8;
  475. {ER_CANT_RESOLVE_NAME_AVT,
  476. "\u65e0\u6cd5\u89e3\u6790 xsl:call-template \u4e2d\u7684\u540d\u79f0 AVT\u3002"},
  477. /** ER_REQUIRES_ATTRIB */
  478. //public static final int ER_REQUIRES_ATTRIB = 9;
  479. {ER_REQUIRES_ATTRIB,
  480. "{0} \u9700\u8981\u5c5e\u6027\uff1a{1}"},
  481. /** ER_MUST_HAVE_TEST_ATTRIB */
  482. // public static final int ER_MUST_HAVE_TEST_ATTRIB = 10;
  483. { ER_MUST_HAVE_TEST_ATTRIB,
  484. "{0} \u5fc5\u987b\u6709\u201ctest\u201d\u5c5e\u6027\u3002"},
  485. /** ER_BAD_VAL_ON_LEVEL_ATTRIB */
  486. // public static final int ER_BAD_VAL_ON_LEVEL_ATTRIB = 11;
  487. {ER_BAD_VAL_ON_LEVEL_ATTRIB,
  488. "\u7ea7\u522b\u5c5e\u6027 {0} \u4e0a\u7684\u503c\u9519\u8bef"},
  489. /** ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML */
  490. // public static final int ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML = 12;
  491. {ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML,
  492. "processing-instruction \u540d\u79f0\u4e0d\u80fd\u662f\u201cxml\u201d"},
  493. /** ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME */
  494. // public static final int ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME = 13;
  495. { ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,
  496. "processing-instruction \u540d\u79f0\u5fc5\u987b\u662f\u6709\u6548\u7684 NCName\uff1a{0}"},
  497. /** ER_NEED_MATCH_ATTRIB */
  498. // public static final int ER_NEED_MATCH_ATTRIB = 14;
  499. { ER_NEED_MATCH_ATTRIB,
  500. "{0} \u5982\u679c\u6709\u67d0\u79cd\u65b9\u5f0f\uff0c\u5c31\u5fc5\u987b\u6709 match \u5c5e\u6027\u3002"},
  501. /** ER_NEED_NAME_OR_MATCH_ATTRIB */
  502. // public static final int ER_NEED_NAME_OR_MATCH_ATTRIB = 15;
  503. { ER_NEED_NAME_OR_MATCH_ATTRIB,
  504. "{0} \u9700\u8981 name \u5c5e\u6027\u6216 match \u5c5e\u6027\u3002"},
  505. /** ER_CANT_RESOLVE_NSPREFIX */
  506. // public static final int ER_CANT_RESOLVE_NSPREFIX = 16;
  507. {ER_CANT_RESOLVE_NSPREFIX,
  508. "\u65e0\u6cd5\u89e3\u6790\u540d\u79f0\u7a7a\u95f4\u524d\u7f00\uff1a{0}"},
  509. /** ER_ILLEGAL_VALUE */
  510. // public static final int ER_ILLEGAL_VALUE = 17;
  511. { ER_ILLEGAL_VALUE,
  512. "xml:space \u6709\u975e\u6cd5\u7684\u503c\uff1a{0}"},
  513. /** ER_NO_OWNERDOC */
  514. // public static final int ER_NO_OWNERDOC = 18;
  515. { ER_NO_OWNERDOC,
  516. "\u5b50\u8282\u70b9\u6ca1\u6709\u6240\u6709\u8005\u6587\u6863\uff01"},
  517. /** ER_ELEMTEMPLATEELEM_ERR */
  518. // public static final int ER_ELEMTEMPLATEELEM_ERR = 19;
  519. { ER_ELEMTEMPLATEELEM_ERR,
  520. "ElemTemplateElement \u9519\u8bef\uff1a{0}"},
  521. /** ER_NULL_CHILD */
  522. // public static final int ER_NULL_CHILD = 20;
  523. { ER_NULL_CHILD,
  524. "\u6b63\u5728\u5c1d\u8bd5\u6dfb\u52a0\u7a7a\u7684\u5b50\u4ee3\uff01"},
  525. /** ER_NEED_SELECT_ATTRIB */
  526. // public static final int ER_NEED_SELECT_ATTRIB = 21;
  527. { ER_NEED_SELECT_ATTRIB,
  528. "{0} \u9700\u8981 select \u5c5e\u6027\u3002"},
  529. /** ER_NEED_TEST_ATTRIB */
  530. // public static final int ER_NEED_TEST_ATTRIB = 22;
  531. { ER_NEED_TEST_ATTRIB ,
  532. "xsl:when \u5fc5\u987b\u6709\u201ctest\u201d\u5c5e\u6027\u3002"},
  533. /** ER_NEED_NAME_ATTRIB */
  534. // public static final int ER_NEED_NAME_ATTRIB = 23;
  535. { ER_NEED_NAME_ATTRIB,
  536. "xsl:with-param \u5fc5\u987b\u6709\u201cname\u201d\u5c5e\u6027\u3002"},
  537. /** ER_NO_CONTEXT_OWNERDOC */
  538. // public static final int ER_NO_CONTEXT_OWNERDOC = 24;
  539. { ER_NO_CONTEXT_OWNERDOC,
  540. "\u4e0a\u4e0b\u6587\u6ca1\u6709\u6240\u6709\u8005\u6587\u6863\uff01"},
  541. /** ER_COULD_NOT_CREATE_XML_PROC_LIAISON */
  542. // public static final int ER_COULD_NOT_CREATE_XML_PROC_LIAISON = 25;
  543. {ER_COULD_NOT_CREATE_XML_PROC_LIAISON,
  544. "\u65e0\u6cd5\u521b\u5efa XML TransformerFactory \u8054\u7cfb\uff1a{0}"},
  545. /** ER_PROCESS_NOT_SUCCESSFUL */
  546. // public static final int ER_PROCESS_NOT_SUCCESSFUL = 26;
  547. {ER_PROCESS_NOT_SUCCESSFUL,
  548. "Xalan: Process \u4e0d\u6210\u529f\u3002"},
  549. /** ER_NOT_SUCCESSFUL */
  550. // public static final int ER_NOT_SUCCESSFUL = 27;
  551. { ER_NOT_SUCCESSFUL,
  552. "Xalan: \u4e0d\u6210\u529f\u3002"},
  553. /** ER_ENCODING_NOT_SUPPORTED */
  554. // public static final int ER_ENCODING_NOT_SUPPORTED = 28;
  555. { ER_ENCODING_NOT_SUPPORTED,
  556. "\u4e0d\u652f\u6301\u7f16\u7801\uff1a{0}"},
  557. /** ER_COULD_NOT_CREATE_TRACELISTENER */
  558. // public static final int ER_COULD_NOT_CREATE_TRACELISTENER = 29;
  559. {ER_COULD_NOT_CREATE_TRACELISTENER,
  560. "\u65e0\u6cd5\u521b\u5efa TraceListener\uff1a{0}"},
  561. /** ER_KEY_REQUIRES_NAME_ATTRIB */
  562. // public static final int ER_KEY_REQUIRES_NAME_ATTRIB = 30;
  563. {ER_KEY_REQUIRES_NAME_ATTRIB,
  564. "xsl:key \u9700\u8981\u201cname\u201d\u5c5e\u6027\uff01"},
  565. /** ER_KEY_REQUIRES_MATCH_ATTRIB */
  566. // public static final int ER_KEY_REQUIRES_MATCH_ATTRIB = 31;
  567. { ER_KEY_REQUIRES_MATCH_ATTRIB,
  568. "xsl:key \u9700\u8981\u201cmatch\u201d\u5c5e\u6027\uff01"},
  569. /** ER_KEY_REQUIRES_USE_ATTRIB */
  570. // public static final int ER_KEY_REQUIRES_USE_ATTRIB = 32;
  571. { ER_KEY_REQUIRES_USE_ATTRIB,
  572. "xsl:key \u9700\u8981\u201cuse\u201d\u5c5e\u6027\uff01"},
  573. /** ER_REQUIRES_ELEMENTS_ATTRIB */
  574. // public static final int ER_REQUIRES_ELEMENTS_ATTRIB = 33;
  575. { ER_REQUIRES_ELEMENTS_ATTRIB,
  576. "\uff08StylesheetHandler\uff09{0} \u9700\u8981\u201celements\u201d\u5c5e\u6027\uff01"},
  577. /** ER_MISSING_PREFIX_ATTRIB */
  578. // public static final int ER_MISSING_PREFIX_ATTRIB = 34;
  579. { ER_MISSING_PREFIX_ATTRIB,
  580. "\uff08StylesheetHandler\uff09{0} \u5c5e\u6027\u201cprefix\u201d\u4e22\u5931"},
  581. /** ER_BAD_STYLESHEET_URL */
  582. // public static final int ER_BAD_STYLESHEET_URL = 35;
  583. { ER_BAD_STYLESHEET_URL,
  584. "\u6837\u5f0f\u8868 URL \u9519\u8bef\uff1a{0}"},
  585. /** ER_FILE_NOT_FOUND */
  586. // public static final int ER_FILE_NOT_FOUND = 36;
  587. { ER_FILE_NOT_FOUND,
  588. "\u627e\u4e0d\u5230\u6837\u5f0f\u8868\u6587\u4ef6\uff1a{0}"},
  589. /** ER_IOEXCEPTION */
  590. // public static final int ER_IOEXCEPTION = 37;
  591. { ER_IOEXCEPTION,
  592. "\u6837\u5f0f\u8868\u6587\u4ef6\u53d1\u751f IO \u5f02\u5e38\uff1a{0}"},
  593. /** ER_NO_HREF_ATTRIB */
  594. // public static final int ER_NO_HREF_ATTRIB = 38;
  595. { ER_NO_HREF_ATTRIB,
  596. "\uff08StylesheetHandler\uff09\u65e0\u6cd5\u4e3a {0} \u627e\u5230 href \u5c5e\u6027"},
  597. /** ER_STYLESHEET_INCLUDES_ITSELF */
  598. // public static final int ER_STYLESHEET_INCLUDES_ITSELF = 39;
  599. { ER_STYLESHEET_INCLUDES_ITSELF,
  600. "\uff08StylesheetHandler\uff09{0} \u6b63\u5728\u76f4\u63a5\u6216\u95f4\u63a5\u5730\u5305\u542b\u5b83\u81ea\u8eab\uff01"},
  601. /** ER_PROCESSINCLUDE_ERROR */
  602. // public static final int ER_PROCESSINCLUDE_ERROR = 40;
  603. { ER_PROCESSINCLUDE_ERROR,
  604. "StylesheetHandler.processInclude \u9519\u8bef\uff0c{0}"},
  605. /** ER_MISSING_LANG_ATTRIB */
  606. // public static final int ER_MISSING_LANG_ATTRIB = 41;
  607. { ER_MISSING_LANG_ATTRIB,
  608. "\uff08StylesheetHandler\uff09{0} \u5c5e\u6027\u201clang\u201d\u4e22\u5931"},
  609. /** ER_MISSING_CONTAINER_ELEMENT_COMPONENT */
  610. // public static final int ER_MISSING_CONTAINER_ELEMENT_COMPONENT = 42;
  611. { ER_MISSING_CONTAINER_ELEMENT_COMPONENT,
  612. "\uff08StylesheetHandler\uff09{0} \u5143\u7d20\u9519\u653e\uff1f\u7f3a\u5c11\u5bb9\u5668\u5143\u7d20\u201ccomponent\u201d"},
  613. /** ER_CAN_ONLY_OUTPUT_TO_ELEMENT */
  614. // public static final int ER_CAN_ONLY_OUTPUT_TO_ELEMENT = 43;
  615. { ER_CAN_ONLY_OUTPUT_TO_ELEMENT,
  616. "\u53ea\u80fd\u8f93\u51fa\u5230 Element\u3001DocumentFragment\u3001Document \u6216 PrintWriter\u3002"},
  617. /** ER_PROCESS_ERROR */
  618. // public static final int ER_PROCESS_ERROR = 44;
  619. { ER_PROCESS_ERROR,
  620. "StylesheetRoot.process \u9519\u8bef"},
  621. /** ER_UNIMPLNODE_ERROR */
  622. // public static final int ER_UNIMPLNODE_ERROR = 45;
  623. { ER_UNIMPLNODE_ERROR,
  624. "UnImplNode \u9519\u8bef\uff1a{0}"},
  625. /** ER_NO_SELECT_EXPRESSION */
  626. // public static final int ER_NO_SELECT_EXPRESSION = 46;
  627. { ER_NO_SELECT_EXPRESSION,
  628. "\u9519\u8bef\uff01\u627e\u4e0d\u5230 xpath \u9009\u62e9\u8868\u8fbe\u5f0f\uff08-select\uff09\u3002"},
  629. /** ER_CANNOT_SERIALIZE_XSLPROCESSOR */
  630. // public static final int ER_CANNOT_SERIALIZE_XSLPROCESSOR = 47;
  631. { ER_CANNOT_SERIALIZE_XSLPROCESSOR,
  632. "\u65e0\u6cd5\u5e8f\u5217\u5316 XSLProcessor\uff01"},
  633. /** ER_NO_INPUT_STYLESHEET */
  634. // public static final int ER_NO_INPUT_STYLESHEET = 48;
  635. { ER_NO_INPUT_STYLESHEET,
  636. "\u6ca1\u6709\u6307\u5b9a\u6837\u5f0f\u8868\u8f93\u5165\uff01"},
  637. /** ER_FAILED_PROCESS_STYLESHEET */
  638. // public static final int ER_FAILED_PROCESS_STYLESHEET = 49;
  639. { ER_FAILED_PROCESS_STYLESHEET,
  640. "\u65e0\u6cd5\u5904\u7406\u6837\u5f0f\u8868\uff01"},
  641. /** ER_COULDNT_PARSE_DOC */
  642. // public static final int ER_COULDNT_PARSE_DOC = 50;
  643. { ER_COULDNT_PARSE_DOC,
  644. "\u65e0\u6cd5\u5206\u6790 {0} \u6587\u6863\uff01"},
  645. /** ER_COULDNT_FIND_FRAGMENT */
  646. // public static final int ER_COULDNT_FIND_FRAGMENT = 51;
  647. { ER_COULDNT_FIND_FRAGMENT,
  648. "\u627e\u4e0d\u5230\u7247\u6bb5\uff1a{0}"},
  649. /** ER_NODE_NOT_ELEMENT */
  650. // public static final int ER_NODE_NOT_ELEMENT = 52;
  651. { ER_NODE_NOT_ELEMENT,
  652. "\u7247\u6bb5\u6807\u8bc6\u6307\u5411\u7684\u8282\u70b9\u4e0d\u662f\u5143\u7d20\uff1a{0}"},
  653. /** ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB */
  654. // public static final int ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB = 53;
  655. { ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB,
  656. "for-each \u5fc5\u987b\u6709 match \u5c5e\u6027\u6216 name \u5c5e\u6027"},
  657. /** ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB */
  658. // public static final int ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB = 54;
  659. { ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB,
  660. "templates \u5fc5\u987b\u6709 match \u5c5e\u6027\u6216 name \u5c5e\u6027"},
  661. /** ER_NO_CLONE_OF_DOCUMENT_FRAG */
  662. // public static final int ER_NO_CLONE_OF_DOCUMENT_FRAG = 55;
  663. { ER_NO_CLONE_OF_DOCUMENT_FRAG,
  664. "\u65e0\u6587\u6863\u7247\u6bb5\u7684\u514b\u9686\uff01"},
  665. /** ER_CANT_CREATE_ITEM */
  666. // public static final int ER_CANT_CREATE_ITEM = 56;
  667. { ER_CANT_CREATE_ITEM,
  668. "\u65e0\u6cd5\u5728\u7ed3\u679c\u6811\u4e2d\u521b\u5efa\u9879\uff1a{0}"},
  669. /** ER_XMLSPACE_ILLEGAL_VALUE */
  670. // public static final int ER_XMLSPACE_ILLEGAL_VALUE = 57;
  671. { ER_XMLSPACE_ILLEGAL_VALUE,
  672. "\u6e90 XML \u4e2d\u7684 xml:space \u6709\u975e\u6cd5\u503c\uff1a{0}"},
  673. /** ER_NO_XSLKEY_DECLARATION */
  674. // public static final int ER_NO_XSLKEY_DECLARATION = 58;
  675. { ER_NO_XSLKEY_DECLARATION,
  676. "\u6ca1\u6709 {0} \u7684 xsl:key \u8bf4\u660e\uff01"},
  677. /** ER_CANT_CREATE_URL */
  678. // public static final int ER_CANT_CREATE_URL = 59;
  679. { ER_CANT_CREATE_URL,
  680. "\u9519\u8bef\uff01\u65e0\u6cd5\u4e3a {0} \u521b\u5efa URL"},
  681. /** ER_XSLFUNCTIONS_UNSUPPORTED */
  682. // public static final int ER_XSLFUNCTIONS_UNSUPPORTED = 60;
  683. { ER_XSLFUNCTIONS_UNSUPPORTED,
  684. "\u4e0d\u652f\u6301 xsl:functions"},
  685. /** ER_PROCESSOR_ERROR */
  686. // public static final int ER_PROCESSOR_ERROR = 61;
  687. { ER_PROCESSOR_ERROR,
  688. "XSLT TransformerFactory \u9519\u8bef"},
  689. /** ER_NOT_ALLOWED_INSIDE_STYLESHEET */
  690. // public static final int ER_NOT_ALLOWED_INSIDE_STYLESHEET = 62;
  691. { ER_NOT_ALLOWED_INSIDE_STYLESHEET,
  692. "\uff08StylesheetHandler\uff09\u6837\u5f0f\u8868\u5185\u4e0d\u5141\u8bb8 {0}\uff01"},
  693. /** ER_RESULTNS_NOT_SUPPORTED */
  694. // public static final int ER_RESULTNS_NOT_SUPPORTED = 63;
  695. { ER_RESULTNS_NOT_SUPPORTED,
  696. "\u4e0d\u518d\u652f\u6301 result-ns\uff01\u8bf7\u6539\u4e3a\u4f7f\u7528 xsl:output\u3002"},
  697. /** ER_DEFAULTSPACE_NOT_SUPPORTED */
  698. // public static final int ER_DEFAULTSPACE_NOT_SUPPORTED = 64;
  699. { ER_DEFAULTSPACE_NOT_SUPPORTED,
  700. "\u4e0d\u518d\u652f\u6301 default-space\uff01\u8bf7\u6539\u4e3a\u4f7f\u7528 xsl:strip-space \u6216 xsl:preserve-space\u3002"},
  701. /** ER_INDENTRESULT_NOT_SUPPORTED */
  702. // public static final int ER_INDENTRESULT_NOT_SUPPORTED = 65;
  703. { ER_INDENTRESULT_NOT_SUPPORTED,
  704. "\u4e0d\u518d\u652f\u6301 indent-result\uff01\u8bf7\u6539\u4e3a\u4f7f\u7528 xsl:output\u3002"},
  705. /** ER_ILLEGAL_ATTRIB */
  706. // public static final int ER_ILLEGAL_ATTRIB = 66;
  707. { ER_ILLEGAL_ATTRIB,
  708. "\uff08StylesheetHandler\uff09{0} \u6709\u975e\u6cd5\u5c5e\u6027\uff1a{1}"},
  709. /** ER_UNKNOWN_XSL_ELEM */
  710. // public static final int ER_UNKNOWN_XSL_ELEM = 67;
  711. { ER_UNKNOWN_XSL_ELEM,
  712. "\u672a\u77e5 XSL \u5143\u7d20\uff1a{0}"},
  713. /** ER_BAD_XSLSORT_USE */
  714. // public static final int ER_BAD_XSLSORT_USE = 68;
  715. { ER_BAD_XSLSORT_USE,
  716. "\uff08StylesheetHandler\uff09xsl:sort \u53ea\u80fd\u4e0e xsl:apply-templates \u6216 xsl:for-each \u4e00\u8d77\u4f7f\u7528\u3002"},
  717. /** ER_MISPLACED_XSLWHEN */
  718. // public static final int ER_MISPLACED_XSLWHEN = 69;
  719. { ER_MISPLACED_XSLWHEN,
  720. "\uff08StylesheetHandler\uff09\u9519\u653e\u4e86 xsl:when\uff01"},
  721. /** ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE */
  722. // public static final int ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE = 70;
  723. { ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE,
  724. "\uff08StylesheetHandler\uff09xsl:choose \u4e0d\u662f xsl:when \u7684\u7236\u4ee3\uff01"},
  725. /** ER_MISPLACED_XSLOTHERWISE */
  726. // public static final int ER_MISPLACED_XSLOTHERWISE = 71;
  727. { ER_MISPLACED_XSLOTHERWISE,
  728. "\uff08StylesheetHandler\uff09\u9519\u653e\u4e86 xsl:otherwise\uff01"},
  729. /** ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE */
  730. // public static final int ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE = 72;
  731. { ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE,
  732. "\uff08StylesheetHandler\uff09xsl:choose \u4e0d\u662f xsl:otherwise \u7684\u7236\u4ee3\uff01"},
  733. /** ER_NOT_ALLOWED_INSIDE_TEMPLATE */
  734. // public static final int ER_NOT_ALLOWED_INSIDE_TEMPLATE = 73;
  735. { ER_NOT_ALLOWED_INSIDE_TEMPLATE,
  736. "\uff08StylesheetHandler\uff09\u6a21\u677f\u5185\u4e0d\u5141\u8bb8 {0}\uff01"},
  737. /** ER_UNKNOWN_EXT_NS_PREFIX */
  738. // public static final int ER_UNKNOWN_EXT_NS_PREFIX = 74;
  739. { ER_UNKNOWN_EXT_NS_PREFIX,
  740. "\uff08StylesheetHandler\uff09{0} \u6269\u5c55\u540d\u79f0\u7a7a\u95f4\u524d\u7f00 {1} \u672a\u77e5"},
  741. /** ER_IMPORTS_AS_FIRST_ELEM */
  742. // public static final int ER_IMPORTS_AS_FIRST_ELEM = 75;
  743. { ER_IMPORTS_AS_FIRST_ELEM,
  744. "\uff08StylesheetHandler\uff09\u5bfc\u5165\u53ea\u80fd\u4f5c\u4e3a\u6837\u5f0f\u8868\u4e2d\u6700\u524d\u9762\u7684\u5143\u7d20\u53d1\u751f\uff01"},
  745. /** ER_IMPORTING_ITSELF */
  746. // public static final int ER_IMPORTING_ITSELF = 76;
  747. { ER_IMPORTING_ITSELF,
  748. "\uff08StylesheetHandler\uff09{0} \u6b63\u5728\u76f4\u63a5\u6216\u95f4\u63a5\u5730\u5bfc\u5165\u5b83\u81ea\u8eab\uff01"},
  749. /** ER_XMLSPACE_ILLEGAL_VAL */
  750. // public static final int ER_XMLSPACE_ILLEGAL_VAL = 77;
  751. { ER_XMLSPACE_ILLEGAL_VAL,
  752. "\uff08StylesheetHandler\uff09\u201c+\u201dxml:space \u6709\u975e\u6cd5\u503c\uff1a{0}"},
  753. /** ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL */
  754. // public static final int ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL = 78;
  755. { ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL,
  756. "processStylesheet \u4e0d\u6210\u529f\uff01"},
  757. /** ER_SAX_EXCEPTION */
  758. // public static final int ER_SAX_EXCEPTION = 79;
  759. { ER_SAX_EXCEPTION,
  760. "SAX \u5f02\u5e38"},
  761. /** ER_FUNCTION_NOT_SUPPORTED */
  762. // public static final int ER_FUNCTION_NOT_SUPPORTED = 80;
  763. //{ ER_FUNCTION_NOT_SUPPORTED,
  764. // "Function not supported!"},
  765. /** ER_XSLT_ERROR */
  766. // public static final int ER_XSLT_ERROR = 81;
  767. { ER_XSLT_ERROR,
  768. "XSLT \u9519\u8bef"},
  769. /** ER_CURRENCY_SIGN_ILLEGAL */
  770. // public static final int ER_CURRENCY_SIGN_ILLEGAL = 82;
  771. { ER_CURRENCY_SIGN_ILLEGAL,
  772. "\u683c\u5f0f\u6a21\u5f0f\u5b57\u7b26\u4e32\u4e2d\u4e0d\u5141\u8bb8\u5b58\u5728\u8d27\u5e01\u7b26\u53f7"},
  773. /** ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM */
  774. // public static final int ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM = 83;
  775. { ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM,
  776. "\u6837\u5f0f\u8868 DOM \u4e2d\u4e0d\u652f\u6301\u6587\u6863\u51fd\u6570\uff01"},
  777. /** ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER */
  778. // public static final int ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER = 84;
  779. { ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER,
  780. "\u65e0\u6cd5\u89e3\u6790\u975e\u524d\u7f00\u89e3\u6790\u7a0b\u5e8f\u7684\u524d\u7f00\uff01"},
  781. /** ER_REDIRECT_COULDNT_GET_FILENAME */
  782. // public static final int ER_REDIRECT_COULDNT_GET_FILENAME = 85;
  783. { ER_REDIRECT_COULDNT_GET_FILENAME,
  784. "\u91cd\u5b9a\u5411\u6269\u5c55\uff1a\u65e0\u6cd5\u83b7\u53d6\u6587\u4ef6\u540d \u2015 \u6587\u4ef6\u6216 select \u5c5e\u6027\u5fc5\u987b\u8fd4\u56de\u6709\u6548\u5b57\u7b26\u4e32\u3002"},
  785. /** ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT */
  786. // public static final int ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT = 86;
  787. { ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT,
  788. "\u65e0\u6cd5\u5728\u91cd\u5b9a\u5411\u6269\u5c55\u4e2d\u6784\u5efa FormatterListener\uff01"},
  789. /** ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX */
  790. // public static final int ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX = 87;
  791. { ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX,
  792. "exclude-result-prefixes \u4e2d\u7684\u524d\u7f00\u65e0\u6548\uff1a{0}"},
  793. /** ER_MISSING_NS_URI */
  794. // public static final int ER_MISSING_NS_URI = 88;
  795. { ER_MISSING_NS_URI,
  796. "\u7f3a\u5c11\u6307\u5b9a\u524d\u7f00\u7684\u540d\u79f0\u7a7a\u95f4 URI"},
  797. /** ER_MISSING_ARG_FOR_OPTION */
  798. // public static final int ER_MISSING_ARG_FOR_OPTION = 89;
  799. { ER_MISSING_ARG_FOR_OPTION,
  800. "\u7f3a\u5c11\u9009\u9879\u7684\u81ea\u53d8\u91cf\uff1a{0}"},
  801. /** ER_INVALID_OPTION */
  802. // public static final int ER_INVALID_OPTION = 90;
  803. { ER_INVALID_OPTION,
  804. "\u65e0\u6548\u7684\u9009\u9879\uff1a{0}"},
  805. /** ER_MALFORMED_FORMAT_STRING */
  806. // public static final int ER_MALFORMED_FORMAT_STRING = 91;
  807. { ER_MALFORMED_FORMAT_STRING,
  808. "\u683c\u5f0f\u4e0d\u597d\u7684\u683c\u5f0f\u5b57\u7b26\u4e32\uff1a{0}"},
  809. /** ER_STYLESHEET_REQUIRES_VERSION_ATTRIB */
  810. // public static final int ER_STYLESHEET_REQUIRES_VERSION_ATTRIB = 92;
  811. { ER_STYLESHEET_REQUIRES_VERSION_ATTRIB,
  812. "xsl:stylesheet \u9700\u8981\u201cversion\u201d\u5c5e\u6027\uff01"},
  813. /** ER_ILLEGAL_ATTRIBUTE_VALUE */
  814. // public static final int ER_ILLEGAL_ATTRIBUTE_VALUE = 93;
  815. { ER_ILLEGAL_ATTRIBUTE_VALUE,
  816. "\u5c5e\u6027\uff1a{0} \u6709\u975e\u6cd5\u7684\u503c\uff1a{1}"},
  817. /** ER_CHOOSE_REQUIRES_WHEN */
  818. // public static final int ER_CHOOSE_REQUIRES_WHEN = 94;
  819. { ER_CHOOSE_REQUIRES_WHEN,
  820. "xsl:choose \u9700\u8981 xsl:when"},
  821. /** ER_NO_APPLY_IMPORT_IN_FOR_EACH */
  822. // public static final int ER_NO_APPLY_IMPORT_IN_FOR_EACH = 95;
  823. { ER_NO_APPLY_IMPORT_IN_FOR_EACH,
  824. "xsl:for-each \u4e2d\u4e0d\u5141\u8bb8 xsl:apply-imports"},
  825. /** ER_CANT_USE_DTM_FOR_OUTPUT */
  826. // public static final int ER_CANT_USE_DTM_FOR_OUTPUT = 96;
  827. { ER_CANT_USE_DTM_FOR_OUTPUT,
  828. "\u65e0\u6cd5\u5c06 DTMLiaison \u7528\u4e8e\u8f93\u51fa DOM \u8282\u70b9... \u6539\u4e3a\u4f20\u9012 com.sun.org.apache.xpath.internal.DOM2Helper\uff01"},
  829. /** ER_CANT_USE_DTM_FOR_INPUT */
  830. // public static final int ER_CANT_USE_DTM_FOR_INPUT = 97;
  831. { ER_CANT_USE_DTM_FOR_INPUT,
  832. "\u65e0\u6cd5\u5c06 DTMLiaison \u7528\u4e8e\u8f93\u5165 DOM \u8282\u70b9... \u6539\u4e3a\u4f20\u9012 com.sun.org.apache.xpath.internal.DOM2Helper\uff01"},
  833. /** ER_CALL_TO_EXT_FAILED */
  834. // public static final int ER_CALL_TO_EXT_FAILED = 98;
  835. { ER_CALL_TO_EXT_FAILED,
  836. "\u8c03\u7528\u6269\u5c55\u5143\u7d20\u5931\u8d25\uff1a{0}"},
  837. /** ER_PREFIX_MUST_RESOLVE */
  838. // public static final int ER_PREFIX_MUST_RESOLVE = 99;
  839. { ER_PREFIX_MUST_RESOLVE,
  840. "\u524d\u7f00\u5fc5\u987b\u89e3\u6790\u4e3a\u540d\u79f0\u7a7a\u95f4\uff1a{0}"},
  841. /** ER_INVALID_UTF16_SURROGATE */
  842. // public static final int ER_INVALID_UTF16_SURROGATE = 100;
  843. { ER_INVALID_UTF16_SURROGATE,
  844. "\u68c0\u6d4b\u5230\u65e0\u6548\u7684 UTF-16 \u66ff\u4ee3\u8005\uff1a{0}\uff1f"},
  845. /** ER_XSLATTRSET_USED_ITSELF */
  846. // public static final int ER_XSLATTRSET_USED_ITSELF = 101;
  847. { ER_XSLATTRSET_USED_ITSELF,
  848. "xsl:attribute-set {0} \u4f7f\u7528\u4e86\u81ea\u8eab\uff0c\u8fd9\u5c06\u5bfc\u81f4\u65e0\u9650\u5faa\u73af\u3002"},
  849. /** ER_CANNOT_MIX_XERCESDOM */
  850. // public static final int ER_CANNOT_MIX_XERCESDOM = 102;
  851. { ER_CANNOT_MIX_XERCESDOM,
  852. "\u65e0\u6cd5\u5c06\u975e Xerces-DOM \u8f93\u5165\u4e0e Xerces-DOM \u8f93\u51fa\u6df7\u5408\uff01"},
  853. /** ER_TOO_MANY_LISTENERS */
  854. // public static final int ER_TOO_MANY_LISTENERS = 103;
  855. { ER_TOO_MANY_LISTENERS,
  856. "addTraceListenersToStylesheet \u2015 TooManyListenersException"},
  857. /** ER_IN_ELEMTEMPLATEELEM_READOBJECT */
  858. // public static final int ER_IN_ELEMTEMPLATEELEM_READOBJECT = 104;
  859. { ER_IN_ELEMTEMPLATEELEM_READOBJECT,
  860. "\u5728 ElemTemplateElement.readObject \u4e2d\uff1a{0}"},
  861. /** ER_DUPLICATE_NAMED_TEMPLATE */
  862. // public static final int ER_DUPLICATE_NAMED_TEMPLATE = 105;
  863. { ER_DUPLICATE_NAMED_TEMPLATE,
  864. "\u627e\u5230\u591a\u4e2a\u540d\u4e3a {0} \u7684\u6a21\u677f"},
  865. /** ER_INVALID_KEY_CALL */
  866. // public static final int ER_INVALID_KEY_CALL = 106;
  867. { ER_INVALID_KEY_CALL,
  868. "\u65e0\u6548\u7684\u51fd\u6570\u8c03\u7528\uff1a\u4e0d\u5141\u8bb8\u5faa\u73af key() \u8c03\u7528"},
  869. /** Variable is referencing itself */
  870. // public static final int ER_REFERENCING_ITSELF = 107;
  871. { ER_REFERENCING_ITSELF,
  872. "\u53d8\u91cf {0} \u6b63\u5728\u76f4\u63a5\u6216\u95f4\u63a5\u5730\u5f15\u7528\u5b83\u81ea\u8eab\uff01"},
  873. /** Illegal DOMSource input */
  874. // public static final int ER_ILLEGAL_DOMSOURCE_INPUT = 108;
  875. { ER_ILLEGAL_DOMSOURCE_INPUT,
  876. "\u8f93\u5165\u8282\u70b9\u5bf9\u4e8e newTemplates \u7684 DOMSource \u4e0d\u80fd\u4e3a\u7a7a\uff01"},
  877. /** Class not found for option */
  878. // public static final int ER_CLASS_NOT_FOUND_FOR_OPTION = 109;
  879. { ER_CLASS_NOT_FOUND_FOR_OPTION,
  880. "\u627e\u4e0d\u5230\u9009\u9879 {0} \u7684\u7c7b\u6587\u4ef6"},
  881. /** Required Element not found */
  882. // public static final int ER_REQUIRED_ELEM_NOT_FOUND = 110;
  883. { ER_REQUIRED_ELEM_NOT_FOUND,
  884. "\u627e\u4e0d\u5230\u5fc5\u9700\u7684\u5143\u7d20\uff1a{0}"},
  885. /** InputStream cannot be null */
  886. // public static final int ER_INPUT_CANNOT_BE_NULL = 111;
  887. { ER_INPUT_CANNOT_BE_NULL,
  888. "InputStream \u4e0d\u80fd\u4e3a\u7a7a"},
  889. /** URI cannot be null */
  890. // public static final int ER_URI_CANNOT_BE_NULL = 112;
  891. { ER_URI_CANNOT_BE_NULL,
  892. "URI \u4e0d\u80fd\u4e3a\u7a7a"},
  893. /** File cannot be null */
  894. // public static final int ER_FILE_CANNOT_BE_NULL = 113;
  895. { ER_FILE_CANNOT_BE_NULL,
  896. "File \u4e0d\u80fd\u4e3a\u7a7a"},
  897. /** InputSource cannot be null */
  898. // public static final int ER_SOURCE_CANNOT_BE_NULL = 114;
  899. { ER_SOURCE_CANNOT_BE_NULL,
  900. "InputSource \u4e0d\u80fd\u4e3a\u7a7a"},
  901. /** Can't overwrite cause */
  902. // public static final int ER_CANNOT_OVERWRITE_CAUSE = 115;
  903. //{ ER_CANNOT_OVERWRITE_CAUSE,
  904. // "Cannot overwrite cause"},
  905. /** Could not initialize BSF Manager */
  906. // public static final int ER_CANNOT_INIT_BSFMGR = 116;
  907. { ER_CANNOT_INIT_BSFMGR,
  908. "\u65e0\u6cd5\u521d\u59cb\u5316 BSF Manager"},
  909. /** Could not compile extension */
  910. // public static final int ER_CANNOT_CMPL_EXTENSN = 117;
  911. { ER_CANNOT_CMPL_EXTENSN,
  912. "\u65e0\u6cd5\u7f16\u8bd1\u6269\u5c55"},
  913. /** Could not create extension */
  914. // public static final int ER_CANNOT_CREATE_EXTENSN = 118;
  915. { ER_CANNOT_CREATE_EXTENSN,
  916. "\u7531\u4e8e {1}\uff0c\u65e0\u6cd5\u521b\u5efa\u6269\u5c55 {0}"},
  917. /** Instance method call to method {0} requires an Object instance as first argument */
  918. // public static final int ER_INSTANCE_MTHD_CALL_REQUIRES = 119;
  919. { ER_INSTANCE_MTHD_CALL_REQUIRES,
  920. "\u5bf9\u65b9\u6cd5 {0} \u7684\u5b9e\u4f8b\u65b9\u6cd5\u8c03\u7528\u8981\u6c42\u4ee5\u5bf9\u8c61\u5b9e\u4f8b\u4f5c\u4e3a\u7b2c\u4e00\u81ea\u53d8\u91cf"},
  921. /** Invalid element name specified */
  922. // public static final int ER_INVALID_ELEMENT_NAME = 120;
  923. { ER_INVALID_ELEMENT_NAME,
  924. "\u6307\u5b9a\u4e86\u65e0\u6548\u7684\u5143\u7d20\u540d\u79f0 {0}"},
  925. /** Element name method must be static */
  926. // public static final int ER_ELEMENT_NAME_METHOD_STATIC = 121;
  927. { ER_ELEMENT_NAME_METHOD_STATIC,
  928. "\u5143\u7d20\u540d\u79f0\u65b9\u6cd5\u5fc5\u987b\u662f static {0}"},
  929. /** Extension function {0} : {1} is unknown */
  930. // public static final int ER_EXTENSION_FUNC_UNKNOWN = 122;
  931. { ER_EXTENSION_FUNC_UNKNOWN,
  932. "\u6269\u5c55\u51fd\u6570 {0}\uff1a{1} \u672a\u77e5"},
  933. /** More than one best match for constructor for */
  934. // public static final int ER_MORE_MATCH_CONSTRUCTOR = 123;
  935. { ER_MORE_MATCH_CONSTRUCTOR,
  936. "\u5bf9\u4e8e {0}\uff0c\u6784\u9020\u51fd\u6570\u6709\u591a\u4e2a\u6700\u4f73\u5339\u914d"},
  937. /** More than one best match for method */
  938. // public static final int ER_MORE_MATCH_METHOD = 124;
  939. { ER_MORE_MATCH_METHOD,
  940. "\u65b9\u6cd5 {0} \u6709\u591a\u4e2a\u6700\u4f73\u5339\u914d"},
  941. /** More than one best match for element method */
  942. // public static final int ER_MORE_MATCH_ELEMENT = 125;
  943. { ER_MORE_MATCH_ELEMENT,
  944. "element \u65b9\u6cd5 {0} \u6709\u591a\u4e2a\u6700\u4f73\u5339\u914d"},
  945. /** Invalid context passed to evaluate */
  946. // public static final int ER_INVALID_CONTEXT_PASSED = 126;
  947. { ER_INVALID_CONTEXT_PASSED,
  948. "\u4f20\u9012\u4e86\u65e0\u6548\u7684\u4e0a\u4e0b\u6587\u6765\u6c42\u503c {0}"},
  949. /** Pool already exists */
  950. // public static final int ER_POOL_EXISTS = 127;
  951. { ER_POOL_EXISTS,
  952. "\u6c60\u5df2\u7ecf\u5b58\u5728"},
  953. /** No driver Name specified */
  954. // public static final int ER_NO_DRIVER_NAME = 128;
  955. { ER_NO_DRIVER_NAME,
  956. "\u672a\u6307\u5b9a\u9a71\u52a8\u7a0b\u5e8f\u540d\u79f0"},
  957. /** No URL specified */
  958. // public static final int ER_NO_URL = 129;
  959. { ER_NO_URL,
  960. "\u672a\u6307\u5b9a URL"},
  961. /** Pool size is less than one */
  962. // public static final int ER_POOL_SIZE_LESSTHAN_ONE = 130;
  963. { ER_POOL_SIZE_LESSTHAN_ONE,
  964. "\u6c60\u5927\u5c0f\u5c0f\u4e8e 1\uff01"},
  965. /** Invalid driver name specified */
  966. // public static final int ER_INVALID_DRIVER = 131;
  967. { ER_INVALID_DRIVER,
  968. "\u6307\u5b9a\u4e86\u65e0\u6548\u7684\u9a71\u52a8\u7a0b\u5e8f\u540d\u79f0\uff01"},
  969. /** Did not find the stylesheet root */
  970. // public static final int ER_NO_STYLESHEETROOT = 132;
  971. { ER_NO_STYLESHEETROOT,
  972. "\u627e\u4e0d\u5230\u6837\u5f0f\u8868\u6839\u76ee\u5f55\uff01"},
  973. /** Illegal value for xml:space */
  974. // public static final int ER_ILLEGAL_XMLSPACE_VALUE = 133;
  975. { ER_ILLEGAL_XMLSPACE_VALUE,
  976. "xml:space \u7684\u503c\u975e\u6cd5"},
  977. /** processFromNode failed */
  978. // public static final int ER_PROCESSFROMNODE_FAILED = 134;
  979. { ER_PROCESSFROMNODE_FAILED,
  980. "processFromNode \u5931\u8d25"},
  981. /** The resource [] could not load: */
  982. // public static final int ER_RESOURCE_COULD_NOT_LOAD = 135;
  983. { ER_RESOURCE_COULD_NOT_LOAD,
  984. "\u8d44\u6e90 [ {0} ] \u65e0\u6cd5\u88c5\u5165\uff1a{1} \n {2} \t {3}"},
  985. /** Buffer size <=0 */
  986. // public static final int ER_BUFFER_SIZE_LESSTHAN_ZERO = 136;
  987. { ER_BUFFER_SIZE_LESSTHAN_ZERO,
  988. "\u7f13\u51b2\u533a\u5927\u5c0f <=0"},
  989. /** Unknown error when calling extension */
  990. // public static final int ER_UNKNOWN_ERROR_CALLING_EXTENSION = 137;
  991. { ER_UNKNOWN_ERROR_CALLING_EXTENSION,
  992. "\u8c03\u7528\u6269\u5c55\u65f6\u53d1\u751f\u672a\u77e5\u9519\u8bef"},
  993. /** Prefix {0} does not have a corresponding namespace declaration */
  994. // public static final int ER_NO_NAMESPACE_DECL = 138;
  995. { ER_NO_NAMESPACE_DECL,
  996. "\u524d\u7f00 {0} \u6ca1\u6709\u76f8\u5e94\u7684\u540d\u79f0\u7a7a\u95f4\u8bf4\u660e"},
  997. /** Element content not allowed for lang=javaclass */
  998. // public static final int ER_ELEM_CONTENT_NOT_ALLOWED = 139;
  999. { ER_ELEM_CONTENT_NOT_ALLOWED,
  1000. "lang=javaclass {0} \u4e0d\u5141\u8bb8\u5143\u7d20\u5185\u5bb9"},
  1001. /** Stylesheet directed termination */
  1002. // public static final int ER_STYLESHEET_DIRECTED_TERMINATION = 140;
  1003. { ER_STYLESHEET_DIRECTED_TERMINATION,
  1004. "\u6837\u5f0f\u8868\u5b9a\u5411\u7684\u7ec8\u6b62"},
  1005. /** 1 or 2 */
  1006. // public static final int ER_ONE_OR_TWO = 141;
  1007. { ER_ONE_OR_TWO,
  1008. "1 \u6216 2"},
  1009. /** 2 or 3 */
  1010. // public static final int ER_TWO_OR_THREE = 142;
  1011. { ER_TWO_OR_THREE,
  1012. "2 \u6216 3"},
  1013. /** Could not load {0} (check CLASSPATH), now using just the defaults */
  1014. // public static final int ER_COULD_NOT_LOAD_RESOURCE = 143;
  1015. { ER_COULD_NOT_LOAD_RESOURCE,
  1016. "\u65e0\u6cd5\u88c5\u5165 {0}\uff08\u68c0\u67e5 CLASSPATH\uff09\uff0c\u73b0\u5728\u53ea\u4f7f\u7528\u7f3a\u7701\u503c"},
  1017. /** Cannot initialize default templates */
  1018. // public static final int ER_CANNOT_INIT_DEFAULT_TEMPLATES = 144;
  1019. { ER_CANNOT_INIT_DEFAULT_TEMPLATES,
  1020. "\u65e0\u6cd5\u521d\u59cb\u5316\u7f3a\u7701\u6a21\u677f"},
  1021. /** Result should not be null */
  1022. // public static final int ER_RESULT_NULL = 145;
  1023. { ER_RESULT_NULL,
  1024. "\u7ed3\u679c\u4e0d\u5e94\u4e3a\u7a7a"},
  1025. /** Result could not be set */
  1026. // public static final int ER_RESULT_COULD_NOT_BE_SET = 146;
  1027. { ER_RESULT_COULD_NOT_BE_SET,
  1028. "\u65e0\u6cd5\u8bbe\u7f6e\u7ed3\u679c"},
  1029. /** No output specified */
  1030. // public static final int ER_NO_OUTPUT_SPECIFIED = 147;
  1031. { ER_NO_OUTPUT_SPECIFIED,
  1032. "\u672a\u6307\u5b9a\u8f93\u51fa"},
  1033. /** Can't transform to a Result of type */
  1034. // public static final int ER_CANNOT_TRANSFORM_TO_RESULT_TYPE = 148;
  1035. { ER_CANNOT_TRANSFORM_TO_RESULT_TYPE,
  1036. "\u65e0\u6cd5\u8f6c\u6362\u5230\u7c7b\u578b\u4e3a {0} \u7684\u7ed3\u679c"},
  1037. /** Can't transform to a Source of type */
  1038. // public static final int ER_CANNOT_TRANSFORM_SOURCE_TYPE = 149;
  1039. { ER_CANNOT_TRANSFORM_SOURCE_TYPE,
  1040. "\u65e0\u6cd5\u8f6c\u6362\u7c7b\u578b\u4e3a {0} \u7684\u6e90"},
  1041. /** Null content handler */
  1042. // public static final int ER_NULL_CONTENT_HANDLER = 150;
  1043. { ER_NULL_CONTENT_HANDLER,
  1044. "\u5185\u5bb9\u5904\u7406\u7a0b\u5e8f\u4e3a\u7a7a"},
  1045. /** Null error handler */
  1046. // public static final int ER_NULL_ERROR_HANDLER = 151;
  1047. { ER_NULL_ERROR_HANDLER,
  1048. "\u9519\u8bef\u5904\u7406\u7a0b\u5e8f\u4e3a\u7a7a"},
  1049. /** parse can not be called if the ContentHandler has not been set */
  1050. // public static final int ER_CANNOT_CALL_PARSE = 152;
  1051. { ER_CANNOT_CALL_PARSE,
  1052. "\u5982\u679c\u6ca1\u6709\u8bbe\u7f6e ContentHandler\uff0c\u5219\u65e0\u6cd5\u8c03\u7528\u5206\u6790"},
  1053. /** No parent for filter */
  1054. // public static final int ER_NO_PARENT_FOR_FILTER = 153;
  1055. { ER_NO_PARENT_FOR_FILTER,
  1056. "\u8fc7\u6ee4\u5668\u65e0\u7236\u4ee3"},
  1057. /** No stylesheet found in: {0}, media */
  1058. // public static final int ER_NO_STYLESHEET_IN_MEDIA = 154;
  1059. { ER_NO_STYLESHEET_IN_MEDIA,
  1060. "\u5728 {0} \u4e2d\u627e\u4e0d\u5230\u6837\u5f0f\u8868\uff0c\u4ecb\u8d28 = {1}"},
  1061. /** No xml-stylesheet PI found in */
  1062. // public static final int ER_NO_STYLESHEET_PI = 155;
  1063. { ER_NO_STYLESHEET_PI,
  1064. "\u5728 {0} \u4e2d\u627e\u4e0d\u5230 xml-stylesheet PI"},
  1065. /** No default implementation found */
  1066. // public static final int ER_NO_DEFAULT_IMPL = 156;
  1067. //{ ER_NO_DEFAULT_IMPL,
  1068. // "No default implementation found "},
  1069. /** ChunkedIntArray({0}) not currently supported */
  1070. // public static final int ER_CHUNKEDINTARRAY_NOT_SUPPORTED = 157;
  1071. //{ ER_CHUNKEDINTARRAY_NOT_SUPPORTED,
  1072. // "ChunkedIntArray({0}) not currently supported"},
  1073. /** Offset bigger than slot */
  1074. // public static final int ER_OFFSET_BIGGER_THAN_SLOT = 158;
  1075. //{ ER_OFFSET_BIGGER_THAN_SLOT,
  1076. // "Offset bigger than slot"},
  1077. /** Coroutine not available, id= */
  1078. // public static final int ER_COROUTINE_NOT_AVAIL = 159;
  1079. //{ ER_COROUTINE_NOT_AVAIL,
  1080. // "Coroutine not available, id={0}"},
  1081. /** CoroutineManager recieved co_exit() request */
  1082. // public static final int ER_COROUTINE_CO_EXIT = 160;
  1083. //{ ER_COROUTINE_CO_EXIT,
  1084. // "CoroutineManager received co_exit() request"},
  1085. /** co_joinCoroutineSet() failed */
  1086. // public static final int ER_COJOINROUTINESET_FAILED = 161;
  1087. //{ ER_COJOINROUTINESET_FAILED,
  1088. // "co_joinCoroutineSet() failed"},
  1089. /** Coroutine parameter error () */
  1090. // public static final int ER_COROUTINE_PARAM = 162;
  1091. //{ ER_COROUTINE_PARAM,
  1092. // "Coroutine parameter error ({0})"},
  1093. /** UNEXPECTED: Parser doTerminate answers */
  1094. // public static final int ER_PARSER_DOTERMINATE_ANSWERS = 163;
  1095. //{ ER_PARSER_DOTERMINATE_ANSWERS,
  1096. // "\nUNEXPECTED: Parser doTerminate answers {0}"},
  1097. /** parse may not be called while parsing */
  1098. // public static final int ER_NO_PARSE_CALL_WHILE_PARSING = 164;
  1099. //{ ER_NO_PARSE_CALL_WHILE_PARSING,
  1100. // "parse may not be called while parsing"},
  1101. /** Error: typed iterator for axis {0} not implemented */
  1102. // public static final int ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED = 165;
  1103. //{ ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED,
  1104. // "Error: typed iterator for axis {0} not implemented"},
  1105. /** Error: iterator for axis {0} not implemented */
  1106. // public static final int ER_ITERATOR_AXIS_NOT_IMPLEMENTED = 166;
  1107. //{ ER_ITERATOR_AXIS_NOT_IMPLEMENTED,
  1108. // "Error: iterator for axis {0} not implemented "},
  1109. /** Iterator clone not supported */
  1110. // public static final int ER_ITERATOR_CLONE_NOT_SUPPORTED = 167;
  1111. //{ ER_ITERATOR_CLONE_NOT_SUPPORTED,
  1112. // "Iterator clone not supported"},
  1113. /** Unknown axis traversal type */
  1114. // public static final int ER_UNKNOWN_AXIS_TYPE = 168;
  1115. //{ ER_UNKNOWN_AXIS_TYPE,
  1116. // "Unknown axis traversal type: {0}"},
  1117. /** Axis traverser not supported */
  1118. // public static final int ER_AXIS_NOT_SUPPORTED = 169;
  1119. //{ ER_AXIS_NOT_SUPPORTED,
  1120. // "Axis traverser not supported: {0}"},
  1121. /** No more DTM IDs are available */
  1122. // public static final int ER_NO_DTMIDS_AVAIL = 170;
  1123. //{ ER_NO_DTMIDS_AVAIL,
  1124. // "No more DTM IDs are available"},
  1125. /** Not supported */
  1126. // public static final int ER_NOT_SUPPORTED = 171;
  1127. { ER_NOT_SUPPORTED,
  1128. "\u4e0d\u652f\u6301\uff1a{0}"},
  1129. /** node must be non-null for getDTMHandleFromNode */
  1130. // public static final int ER_NODE_NON_NULL = 172;
  1131. //{ ER_NODE_NON_NULL,
  1132. // "Node must be non-null for getDTMHandleFromNode"},
  1133. /** Could not resolve the node to a handle */
  1134. // public static final int ER_COULD_NOT_RESOLVE_NODE = 173;
  1135. //{ ER_COULD_NOT_RESOLVE_NODE,
  1136. // "Could not resolve the node to a handle"},
  1137. /** startParse may not be called while parsing */
  1138. // public static final int ER_STARTPARSE_WHILE_PARSING = 174;
  1139. //{ ER_STARTPARSE_WHILE_PARSING,
  1140. // "startParse may not be called while parsing"},
  1141. /** startParse needs a non-null SAXParser */
  1142. // public static final int ER_STARTPARSE_NEEDS_SAXPARSER = 175;
  1143. //{ ER_STARTPARSE_NEEDS_SAXPARSER,
  1144. // "startParse needs a non-null SAXParser"},
  1145. /** could not initialize parser with */
  1146. // public static final int ER_COULD_NOT_INIT_PARSER = 176;
  1147. //{ ER_COULD_NOT_INIT_PARSER,
  1148. // "could not initialize parser with"},
  1149. /** Value for property {0} should be a Boolean instance */
  1150. // public static final int ER_PROPERTY_VALUE_BOOLEAN = 177;
  1151. { ER_PROPERTY_VALUE_BOOLEAN,
  1152. "\u7279\u6027 {0} \u7684\u503c\u5e94\u5f53\u662f\u5e03\u5c14\u5b9e\u4f8b"},
  1153. /** exception creating new instance for pool */
  1154. // public static final int ER_EXCEPTION_CREATING_POOL = 178;
  1155. //{ ER_EXCEPTION_CREATING_POOL,
  1156. // "exception creating new instance for pool"},
  1157. /** Path contains invalid escape sequence */
  1158. // public static final int ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = 179;
  1159. //{ ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,
  1160. // "Path contains invalid escape sequence"},
  1161. /** Scheme is required! */
  1162. // public static final int ER_SCHEME_REQUIRED = 180;
  1163. //{ ER_SCHEME_REQUIRED,
  1164. // "Scheme is required!"},
  1165. /** No scheme found in URI */
  1166. // public static final int ER_NO_SCHEME_IN_URI = 181;
  1167. //{ ER_NO_SCHEME_IN_URI,
  1168. // "No scheme found in URI: {0}"},
  1169. /** No scheme found in URI */
  1170. // public static final int ER_NO_SCHEME_INURI = 182;
  1171. //{ ER_NO_SCHEME_INURI,
  1172. // "No scheme found in URI"},
  1173. /** Path contains invalid character: */
  1174. // public static final int ER_PATH_INVALID_CHAR = 183;
  1175. //{ ER_PATH_INVALID_CHAR,
  1176. // "Path contains invalid character: {0}"},
  1177. /** Cannot set scheme from null string */
  1178. // public static final int ER_SCHEME_FROM_NULL_STRING = 184;
  1179. //{ ER_SCHEME_FROM_NULL_STRING,
  1180. // "Cannot set scheme from null string"},
  1181. /** The scheme is not conformant. */
  1182. // public static final int ER_SCHEME_NOT_CONFORMANT = 185;
  1183. //{ ER_SCHEME_NOT_CONFORMANT,
  1184. // "The scheme is not conformant."},
  1185. /** Host is not a well formed address */
  1186. // public static final int ER_HOST_ADDRESS_NOT_WELLFORMED = 186;
  1187. //{ ER_HOST_ADDRESS_NOT_WELLFORMED,
  1188. // "Host is not a well formed address"},
  1189. /** Port cannot be set when host is null */
  1190. // public static final int ER_PORT_WHEN_HOST_NULL = 187;
  1191. //{ ER_PORT_WHEN_HOST_NULL,
  1192. // "Port cannot be set when host is null"},
  1193. /** Invalid port number */
  1194. // public static final int ER_INVALID_PORT = 188;
  1195. //{ ER_INVALID_PORT,
  1196. // "Invalid port number"},
  1197. /** Fragment can only be set for a generic URI */
  1198. // public static final int ER_FRAG_FOR_GENERIC_URI = 189;
  1199. //{ ER_FRAG_FOR_GENERIC_URI,
  1200. // "Fragment can only be set for a generic URI"},
  1201. /** Fragment cannot be set when path is null */
  1202. // public static final int ER_FRAG_WHEN_PATH_NULL = 190;
  1203. //{ ER_FRAG_WHEN_PATH_NULL,
  1204. // "Fragment cannot be set when path is null"},
  1205. /** Fragment contains invalid character */
  1206. // public static final int ER_FRAG_INVALID_CHAR = 191;
  1207. //{ ER_FRAG_INVALID_CHAR,
  1208. // "Fragment contains invalid character"},
  1209. /** Parser is already in use */
  1210. // public static final int ER_PARSER_IN_USE = 192;
  1211. //{ ER_PARSER_IN_USE,
  1212. // "Parser is already in use"},
  1213. /** Parser is already in use */
  1214. // public static final int ER_CANNOT_CHANGE_WHILE_PARSING = 193;
  1215. //{ ER_CANNOT_CHANGE_WHILE_PARSING,
  1216. // "Cannot change {0} {1} while parsing"},
  1217. /** Self-causation not permitted */
  1218. // public static final int ER_SELF_CAUSATION_NOT_PERMITTED = 194;
  1219. //{ ER_SELF_CAUSATION_NOT_PERMITTED,
  1220. // "Self-causation not permitted"},
  1221. /** src attribute not yet supported for */
  1222. // public static final int ER_COULD_NOT_FIND_EXTERN_SCRIPT = 195;
  1223. { ER_COULD_NOT_FIND_EXTERN_SCRIPT,
  1224. "\u65e0\u6cd5\u62b5\u8fbe {0} \u4e0a\u7684\u5916\u90e8\u811a\u672c"},
  1225. /** The resource [] could not be found */
  1226. // public static final int ER_RESOURCE_COULD_NOT_FIND = 196;
  1227. { ER_RESOURCE_COULD_NOT_FIND,
  1228. "\u627e\u4e0d\u5230\u8d44\u6e90 [ {0} ]\u3002\n {1}"},
  1229. /** output property not recognized: */
  1230. // public static final int ER_OUTPUT_PROPERTY_NOT_RECOGNIZED = 197;
  1231. { ER_OUTPUT_PROPERTY_NOT_RECOGNIZED,
  1232. "\u6ca1\u6709\u8bc6\u522b\u8f93\u51fa\u5c5e\u6027\uff1a{0}"},
  1233. /** Userinfo may not be specified if host is not specified */
  1234. // public static final int ER_NO_USERINFO_IF_NO_HOST = 198;
  1235. //{ ER_NO_USERINFO_IF_NO_HOST,
  1236. // "Userinfo may not be specified if host is not specified"},
  1237. /** Port may not be specified if host is not specified */
  1238. // public static final int ER_NO_PORT_IF_NO_HOST = 199;
  1239. //{ ER_NO_PORT_IF_NO_HOST,
  1240. // "Port may not be specified if host is not specified"},
  1241. /** Query string cannot be specified in path and query string */
  1242. // public static final int ER_NO_QUERY_STRING_IN_PATH = 200;
  1243. //{ ER_NO_QUERY_STRING_IN_PATH,
  1244. // "Query string cannot be specified in path and query string"},
  1245. /** Fragment cannot be specified in both the path and fragment */
  1246. // public static final int ER_NO_FRAGMENT_STRING_IN_PATH = 201;
  1247. //{ ER_NO_FRAGMENT_STRING_IN_PATH,
  1248. // "Fragment cannot be specified in both the path and fragment"},
  1249. /** Cannot initialize URI with empty parameters */
  1250. // public static final int ER_CANNOT_INIT_URI_EMPTY_PARMS = 202;
  1251. //{ ER_CANNOT_INIT_URI_EMPTY_PARMS,
  1252. // "Cannot initialize URI with empty parameters"},
  1253. /** Failed creating ElemLiteralResult instance */
  1254. // public static final int ER_FAILED_CREATING_ELEMLITRSLT = 203;
  1255. { ER_FAILED_CREATING_ELEMLITRSLT,
  1256. "\u521b\u5efa ElemLiteralResult \u5b9e\u4f8b\u5931\u8d25"},
  1257. //Earlier (JDK 1.4 XALAN 2.2-D11) at key code '204' the key name was ER_PRIORITY_NOT_PARSABLE
  1258. // In latest Xalan code base key name is ER_VALUE_SHOULD_BE_NUMBER. This should also be taken care
  1259. //in locale specific files like XSLTErrorResources_de.java, XSLTErrorResources_fr.java etc.
  1260. //NOTE: Not only the key name but message has also been changed.
  1261. /** Priority value does not contain a parsable number */
  1262. // public static final int ER_VALUE_SHOULD_BE_NUMBER = 204;
  1263. { ER_VALUE_SHOULD_BE_NUMBER,
  1264. "{0} \u7684\u503c\u5e94\u5f53\u5305\u542b\u53ef\u8fdb\u884c\u5206\u6790\u7684\u6570\u503c"},
  1265. /** Value for {0} should equal 'yes' or 'no' */
  1266. // public static final int ER_VALUE_SHOULD_EQUAL = 205;
  1267. { ER_VALUE_SHOULD_EQUAL,
  1268. "{0} \u7684\u503c\u5e94\u5f53\u7b49\u4e8e yes \u6216 no"},
  1269. /** Failed calling {0} method */
  1270. // public static final int ER_FAILED_CALLING_METHOD = 206;
  1271. { ER_FAILED_CALLING_METHOD,
  1272. "\u8c03\u7528 {0} \u65b9\u6cd5\u5931\u8d25"},
  1273. /** Failed creating ElemLiteralResult instance */
  1274. // public static final int ER_FAILED_CREATING_ELEMTMPL = 207;
  1275. { ER_FAILED_CREATING_ELEMTMPL,
  1276. "\u521b\u5efa ElemTemplateElement \u5b9e\u4f8b\u5931\u8d25"},
  1277. /** Characters are not allowed at this point in the document */
  1278. // public static final int ER_CHARS_NOT_ALLOWED = 208;
  1279. { ER_CHARS_NOT_ALLOWED,
  1280. "\u6587\u6863\u4e2d\u6b64\u65f6\u4e0d\u5141\u8bb8\u5b58\u5728\u5b57\u7b26"},
  1281. /** attribute is not allowed on the element */
  1282. // public static final int ER_ATTR_NOT_ALLOWED = 209;
  1283. { ER_ATTR_NOT_ALLOWED,
  1284. "{1} \u5143\u7d20\u4e0a\u4e0d\u5141\u8bb8\u5b58\u5728\u201c{0}\u201d\u5c5e\u6027\uff01"},
  1285. /** Method not yet supported */
  1286. // public static final int ER_METHOD_NOT_SUPPORTED = 210;
  1287. //{ ER_METHOD_NOT_SUPPORTED,
  1288. // "Method not yet supported "},
  1289. /** Bad value */
  1290. // public static final int ER_BAD_VALUE = 211;
  1291. { ER_BAD_VALUE,
  1292. "{0} \u9519\u8bef\u503c {1}"},
  1293. /** attribute value not found */
  1294. // public static final int ER_ATTRIB_VALUE_NOT_FOUND = 212;
  1295. { ER_ATTRIB_VALUE_NOT_FOUND,
  1296. "\u627e\u4e0d\u5230 {0} \u5c5e\u6027\u503c"},
  1297. /** attribute value not recognized */
  1298. // public static final int ER_ATTRIB_VALUE_NOT_RECOGNIZED = 213;
  1299. { ER_ATTRIB_VALUE_NOT_RECOGNIZED,
  1300. "\u6ca1\u6709\u8bc6\u522b\u51fa {0} \u5c5e\u6027\u503c"},
  1301. /** IncrementalSAXSource_Filter not currently restartable */
  1302. // public static final int ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = 214;
  1303. //{ ER_INCRSAXSRCFILTER_NOT_RESTARTABLE,
  1304. // "IncrementalSAXSource_Filter not currently restartable"},
  1305. /** IncrementalSAXSource_Filter not currently restartable */
  1306. // public static final int ER_XMLRDR_NOT_BEFORE_STARTPARSE = 215;
  1307. //{ ER_XMLRDR_NOT_BEFORE_STARTPARSE,
  1308. // "XMLReader not before startParse request"},
  1309. /** Attempting to generate a namespace prefix with a null URI */
  1310. // public static final int ER_NULL_URI_NAMESPACE = 216;
  1311. { ER_NULL_URI_NAMESPACE,
  1312. "\u6b63\u5728\u8bd5\u56fe\u4ee5\u7a7a\u7684 URI \u751f\u6210\u540d\u79f0\u7a7a\u95f4\u524d\u7f00"},
  1313. //New ERROR keys added in XALAN code base after Jdk 1.4 (Xalan 2.2-D11)
  1314. /** Attempting to generate a namespace prefix with a null URI */
  1315. // public static final int ER_NUMBER_TOO_BIG = 217;
  1316. { ER_NUMBER_TOO_BIG,
  1317. "\u6b63\u5728\u8bd5\u56fe\u683c\u5f0f\u5316\u5927\u4e8e\u6700\u5927\u957f\u6574\u6570\u7684\u6570\u503c"},
  1318. //ER_CANNOT_FIND_SAX1_DRIVER
  1319. // public static final int ER_CANNOT_FIND_SAX1_DRIVER = 218;
  1320. { ER_CANNOT_FIND_SAX1_DRIVER,
  1321. "\u627e\u4e0d\u5230 SAX1 \u9a71\u52a8\u7a0b\u5e8f\u7c7b {0}"},
  1322. //ER_SAX1_DRIVER_NOT_LOADED
  1323. // public static final int ER_SAX1_DRIVER_NOT_LOADED = 219;
  1324. { ER_SAX1_DRIVER_NOT_LOADED,
  1325. "\u627e\u5230\u4e86 SAX1 \u9a71\u52a8\u7a0b\u5e8f\u7c7b {0}\uff0c\u4f46\u65e0\u6cd5\u88c5\u5165\u5b83"},
  1326. //ER_SAX1_DRIVER_NOT_INSTANTIATED
  1327. // public static final int ER_SAX1_DRIVER_NOT_INSTANTIATED = 220 ;
  1328. { ER_SAX1_DRIVER_NOT_INSTANTIATED,
  1329. "\u88c5\u5165\u4e86 SAX1 \u9a71\u52a8\u7a0b\u5e8f\u7c7b {0}\uff0c\u4f46\u65e0\u6cd5\u5c06\u5b83\u5b9e\u4f8b\u5316"},
  1330. // ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER
  1331. // public static final int ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER = 221;
  1332. { ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER,
  1333. "SAX1 \u9a71\u52a8\u7a0b\u5e8f\u7c7b {0} \u4e0d\u5b9e\u73b0 org.xml.sax.Parser"},
  1334. // ER_PARSER_PROPERTY_NOT_SPECIFIED
  1335. // public static final int ER_PARSER_PROPERTY_NOT_SPECIFIED = 222;
  1336. { ER_PARSER_PROPERTY_NOT_SPECIFIED,
  1337. "\u6ca1\u6709\u6307\u5b9a\u7cfb\u7edf\u5c5e\u6027 org.xml.sax.parser"},
  1338. //ER_PARSER_ARG_CANNOT_BE_NULL
  1339. // public static final int ER_PARSER_ARG_CANNOT_BE_NULL = 223 ;
  1340. { ER_PARSER_ARG_CANNOT_BE_NULL,
  1341. "\u89e3\u6790\u5668\u81ea\u53d8\u91cf\u4e0d\u5f97\u4e3a\u7a7a"},
  1342. // ER_FEATURE
  1343. // public static final int ER_FEATURE = 224;
  1344. { ER_FEATURE,
  1345. "\u529f\u80fd\u90e8\u4ef6\uff1a{0}"},
  1346. // ER_PROPERTY
  1347. // public static final int ER_PROPERTY = 225 ;
  1348. { ER_PROPERTY,
  1349. "\u5c5e\u6027\uff1a{0}"},
  1350. // ER_NULL_ENTITY_RESOLVER
  1351. // public static final int ER_NULL_ENTITY_RESOLVER = 226;
  1352. { ER_NULL_ENTITY_RESOLVER,
  1353. "\u5b9e\u4f53\u89e3\u6790\u7a0b\u5e8f\u4e3a\u7a7a"},
  1354. // ER_NULL_DTD_HANDLER
  1355. // public static final int ER_NULL_DTD_HANDLER = 227 ;
  1356. { ER_NULL_DTD_HANDLER,
  1357. "DTD \u5904\u7406\u7a0b\u5e8f\u4e3a\u7a7a"},
  1358. // No Driver Name Specified!
  1359. // public static final int ER_NO_DRIVER_NAME_SPECIFIED = 228;
  1360. { ER_NO_DRIVER_NAME_SPECIFIED,
  1361. "\u672a\u6307\u5b9a\u9a71\u52a8\u7a0b\u5e8f\u540d\u79f0\uff01"},
  1362. // No URL Specified!
  1363. // public static final int ER_NO_URL_SPECIFIED = 229;
  1364. { ER_NO_URL_SPECIFIED,
  1365. "\u672a\u6307\u5b9a URL\uff01"},
  1366. // Pool size is less than 1!
  1367. // public static final int ER_POOLSIZE_LESS_THAN_ONE = 230;
  1368. { ER_POOLSIZE_LESS_THAN_ONE,
  1369. "\u6c60\u5927\u5c0f\u5c0f\u4e8e 1\uff01"},
  1370. // Invalid Driver Name Specified!
  1371. // public static final int ER_INVALID_DRIVER_NAME = 231;
  1372. { ER_INVALID_DRIVER_NAME,
  1373. "\u6307\u5b9a\u4e86\u65e0\u6548\u7684\u9a71\u52a8\u7a0b\u5e8f\u540d\u79f0\uff01"},
  1374. // ErrorListener
  1375. // public static final int ER_ERRORLISTENER = 232;
  1376. { ER_ERRORLISTENER,
  1377. "ErrorListener"},
  1378. // Programmer's error! expr has no ElemTemplateElement parent!
  1379. // public static final int ER_ASSERT_NO_TEMPLATE_PARENT = 233;
  1380. { ER_ASSERT_NO_TEMPLATE_PARENT,
  1381. "\u7a0b\u5e8f\u5458\u7684\u9519\u8bef\uff01expr \u6ca1\u6709 ElemTemplateElement \u7236\u4ee3\uff01"},
  1382. // Programmer''s assertion in RundundentExprEliminator: {0}
  1383. // public static final int ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR = 234;
  1384. { ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR,
  1385. "\u7a0b\u5e8f\u5458\u5728 RundundentExprEliminator \u4e2d\u7684\u65ad\u8a00\uff1a{0}"},
  1386. // Axis traverser not supported: {0}
  1387. // public static final int ER_AXIS_TRAVERSER_NOT_SUPPORTED = 235;
  1388. //{ ER_AXIS_TRAVERSER_NOT_SUPPORTED,
  1389. // "Axis traverser not supported: {0}"},
  1390. // ListingErrorHandler created with null PrintWriter!
  1391. // public static final int ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER = 236;
  1392. //{ ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER,
  1393. // "ListingErrorHandler created with null PrintWriter!"},
  1394. // {0}is not allowed in this position in the stylesheet!
  1395. // public static final int ER_NOT_ALLOWED_IN_POSITION = 237;
  1396. { ER_NOT_ALLOWED_IN_POSITION,
  1397. "\u6837\u5f0f\u8868\u4e2d\u5728\u6b64\u4f4d\u7f6e\u4e0d\u5141\u8bb8 {0}\uff01"},
  1398. // Non-whitespace text is not allowed in this position in the stylesheet!
  1399. // public static final int ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION = 238;
  1400. { ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION,
  1401. "\u6837\u5f0f\u8868\u4e2d\u5728\u6b64\u4f4d\u7f6e\u4e0d\u5141\u8bb8\u975e\u7a7a\u767d\u7a7a\u95f4\u7684\u6587\u672c\uff01"},
  1402. // This code is shared with warning codes.
  1403. // Illegal value: {1} used for CHAR attribute: {0}. An attribute of type CHAR must be only 1 character!
  1404. // public static final int INVALID_TCHAR = 239;
  1405. // SystemId Unknown
  1406. { INVALID_TCHAR,
  1407. "\u7528\u4e8e CHAR \u5c5e\u6027 {0} \u7684\u503c {1} \u975e\u6cd5\u3002\u7c7b\u578b CHAR \u7684\u5c5e\u6027\u5fc5\u987b\u53ea\u6709\u4e00\u4e2a\u5b57\u7b26\uff01"},
  1408. // public static final int ER_SYSTEMID_UNKNOWN = 240;
  1409. //{ ER_SYSTEMID_UNKNOWN,
  1410. // "SystemId Unknown"},
  1411. // Location of error unknown
  1412. // public static final int ER_LOCATION_UNKNOWN = 241;
  1413. //{ ER_LOCATION_UNKNOWN,
  1414. // "Location of error unknown"},
  1415. // Note to translators: The following message is used if the value of
  1416. // an attribute in a stylesheet is invalid. "QNAME" is the XML data-type of
  1417. // the attribute, and should not be translated. The substitution text {1} is
  1418. // the attribute value and {0} is the attribute name.
  1419. // INVALID_QNAME
  1420. //The following codes are shared with the warning codes...
  1421. // Illegal value: {1} used for QNAME attribute: {0}
  1422. // public static final int INVALID_QNAME = 242;
  1423. { INVALID_QNAME,
  1424. "\u7528\u4e8e QNAME \u5c5e\u6027 {0} \u7684\u503c {1} \u975e\u6cd5"},
  1425. // Note to translators: The following message is used if the value of
  1426. // an attribute in a stylesheet is invalid. "ENUM" is the XML data-type of
  1427. // the attribute, and should not be translated. The substitution text {1} is
  1428. // the attribute value, {0} is the attribute name, and {2} is a list of valid
  1429. // values.
  1430. // INVALID_ENUM
  1431. // Illegal value: {1} used for ENUM attribute: {0}. Valid values are: {2}.
  1432. // public static final int INVALID_ENUM = 243;
  1433. { INVALID_ENUM,
  1434. "\u7528\u4e8e ENUM \u5c5e\u6027 {0} \u7684\u503c {1} \u975e\u6cd5\u3002\u6709\u6548\u7684\u503c\u662f\uff1a{2}\u3002"},
  1435. // Note to translators: The following message is used if the value of
  1436. // an attribute in a stylesheet is invalid. "NMTOKEN" is the XML data-type
  1437. // of the attribute, and should not be translated. The substitution text {1} is
  1438. // the attribute value and {0} is the attribute name.
  1439. // INVALID_NMTOKEN
  1440. // Illegal value: {1} used for NMTOKEN attribute: {0}.
  1441. // public static final int INVALID_NMTOKEN = 244;
  1442. { INVALID_NMTOKEN,
  1443. "\u7528\u4e8e NMTOKEN \u5c5e\u6027 {0} \u7684\u503c {1} \u975e\u6cd5"},
  1444. // Note to translators: The following message is used if the value of
  1445. // an attribute in a stylesheet is invalid. "NCNAME" is the XML data-type
  1446. // of the attribute, and should not be translated. The substitution text {1} is
  1447. // the attribute value and {0} is the attribute name.
  1448. // INVALID_NCNAME
  1449. // Illegal value: {1} used for NCNAME attribute: {0}.
  1450. // public static final int INVALID_NCNAME = 245;
  1451. { INVALID_NCNAME,
  1452. "\u7528\u4e8e NCNAME \u5c5e\u6027 {0} \u7684\u503c {1} \u975e\u6cd5"},
  1453. // Note to translators: The following message is used if the value of
  1454. // an attribute in a stylesheet is invalid. "boolean" is the XSLT data-type
  1455. // of the attribute, and should not be translated. The substitution text {1} is
  1456. // the attribute value and {0} is the attribute name.
  1457. // INVALID_BOOLEAN
  1458. // Illegal value: {1} used for boolean attribute: {0}.
  1459. // public static final int INVALID_BOOLEAN = 246;
  1460. { INVALID_BOOLEAN,
  1461. "\u7528\u4e8e boolean \u5c5e\u6027 {0} \u7684\u503c {1} \u975e\u6cd5"},
  1462. // Note to translators: The following message is used if the value of
  1463. // an attribute in a stylesheet is invalid. "number" is the XSLT data-type
  1464. // of the attribute, and should not be translated. The substitution text {1} is
  1465. // the attribute value and {0} is the attribute name.
  1466. // INVALID_NUMBER
  1467. // Illegal value: {1} used for number attribute: {0}.
  1468. // public static final int INVALID_NUMBER = 247;
  1469. { INVALID_NUMBER,
  1470. "\u7528\u4e8e number \u5c5e\u6027 {0} \u7684\u503c {1} \u975e\u6cd5"},
  1471. // End of shared codes...
  1472. // Note to translators: A "match pattern" is a special form of XPath expression
  1473. // that is used for matching patterns. The substitution text is the name of
  1474. // a function. The message indicates that when this function is referenced in
  1475. // a match pattern, its argument must be a string literal (or constant.)
  1476. // ER_ARG_LITERAL - new error message for bugzilla //5202
  1477. // Argument to {0} in match pattern must be a literal.
  1478. // public static final int ER_ARG_LITERAL = 248;
  1479. { ER_ARG_LITERAL,
  1480. "\u5339\u914d\u6a21\u5f0f\u4e2d {0} \u7684\u81ea\u53d8\u91cf\u5fc5\u987b\u662f\u6587\u5b57\u3002"},
  1481. // Note to translators: The following message indicates that two definitions of
  1482. // a variable. A "global variable" is a variable that is accessible everywher
  1483. // in the stylesheet.
  1484. // ER_DUPLICATE_GLOBAL_VAR - new error message for bugzilla #790
  1485. // Duplicate global variable declaration.
  1486. // public static final int ER_DUPLICATE_GLOBAL_VAR = 249;
  1487. { ER_DUPLICATE_GLOBAL_VAR,
  1488. "\u5168\u5c40\u53d8\u91cf\u8bf4\u660e\u91cd\u590d\u3002"},
  1489. // Note to translators: The following message indicates that two definitions of
  1490. // a variable were encountered.
  1491. // ER_DUPLICATE_VAR - new error message for bugzilla #790
  1492. // Duplicate variable declaration.
  1493. // public static final int ER_DUPLICATE_VAR = 250;
  1494. { ER_DUPLICATE_VAR,
  1495. "\u53d8\u91cf\u8bf4\u660e\u91cd\u590d\u3002"},
  1496. // Note to translators: "xsl:template, "name" and "match" are XSLT keywords
  1497. // which must not be translated.
  1498. // ER_TEMPLATE_NAME_MATCH - new error message for bugzilla #789
  1499. // xsl:template must have a name or match attribute (or both)
  1500. // public static final int ER_TEMPLATE_NAME_MATCH = 251;
  1501. { ER_TEMPLATE_NAME_MATCH,
  1502. "xsl:template \u5fc5\u987b\u6709\u4e00\u4e2a name \u6216 match \u5c5e\u6027\uff08\u6216\u4e24\u8005\u517c\u6709\uff09"},
  1503. // Note to translators: "exclude-result-prefixes" is an XSLT keyword which
  1504. // should not be translated. The message indicates that a namespace prefix
  1505. // encountered as part of the value of the exclude-result-prefixes attribute
  1506. // was in error.
  1507. // ER_INVALID_PREFIX - new error message for bugzilla #788
  1508. // Prefix in exclude-result-prefixes is not valid: {0}
  1509. // public static final int ER_INVALID_PREFIX = 252;
  1510. { ER_INVALID_PREFIX,
  1511. "exclude-result-prefixes \u4e2d\u7684\u524d\u7f00\u65e0\u6548\uff1a{0}"},
  1512. // Note to translators: An "attribute set" is a set of attributes that can be
  1513. // added to an element in the output document as a group. The message indicates
  1514. // that there was a reference to an attribute set named {0} that was never
  1515. // defined.
  1516. // ER_NO_ATTRIB_SET - new error message for bugzilla #782
  1517. // attribute-set named {0} does not exist
  1518. // public static final int ER_NO_ATTRIB_SET = 253;
  1519. { ER_NO_ATTRIB_SET,
  1520. "\u540d\u4e3a {0} \u7684\u5c5e\u6027\u96c6\u4e0d\u5b58\u5728"},
  1521. // Warnings...
  1522. /** WG_FOUND_CURLYBRACE */
  1523. // public static final int WG_FOUND_CURLYBRACE = 1;
  1524. { WG_FOUND_CURLYBRACE,
  1525. "\u627e\u5230\u201c}\u201d\uff0c\u4f46\u6ca1\u6709\u6253\u5f00\u5c5e\u6027\u6a21\u677f\uff01"},
  1526. /** WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR */
  1527. // public static final int WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR = 2;
  1528. { WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR,
  1529. "\u8b66\u544a\uff1acount \u5c5e\u6027\u4e0e xsl:number \u4e2d\u7684\u4e0a\u7ea7\u4e0d\u5339\u914d\uff01\u76ee\u6807 = {0}"},
  1530. /** WG_EXPR_ATTRIB_CHANGED_TO_SELECT */
  1531. // public static final int WG_EXPR_ATTRIB_CHANGED_TO_SELECT = 3;
  1532. { WG_EXPR_ATTRIB_CHANGED_TO_SELECT,
  1533. "\u65e7\u8bed\u6cd5\uff1a\u201cexpr\u201d\u5c5e\u6027\u7684\u540d\u79f0\u5df2\u7ecf\u66f4\u6539\u4e3a\u201cselect\u201d\u3002"},
  1534. /** WG_NO_LOCALE_IN_FORMATNUMBER */
  1535. // public static final int WG_NO_LOCALE_IN_FORMATNUMBER = 4;
  1536. { WG_NO_LOCALE_IN_FORMATNUMBER,
  1537. "Xalan \u5728 format-number \u51fd\u6570\u4e2d\u5c1a\u672a\u5904\u7406\u8bed\u8a00\u73af\u5883\u540d\u3002"},
  1538. /** WG_LOCALE_NOT_FOUND */
  1539. // public static final int WG_LOCALE_NOT_FOUND = 5;
  1540. { WG_LOCALE_NOT_FOUND,
  1541. "\u8b66\u544a\uff1a\u627e\u4e0d\u5230 xml:lang={0} \u7684\u8bed\u8a00\u73af\u5883"},
  1542. /** WG_CANNOT_MAKE_URL_FROM */
  1543. // public static final int WG_CANNOT_MAKE_URL_FROM = 6;
  1544. { WG_CANNOT_MAKE_URL_FROM,
  1545. "\u65e0\u6cd5\u4ece {0} \u751f\u6210 URL"},
  1546. /** WG_CANNOT_LOAD_REQUESTED_DOC */
  1547. // public static final int WG_CANNOT_LOAD_REQUESTED_DOC = 7;
  1548. { WG_CANNOT_LOAD_REQUESTED_DOC,
  1549. "\u65e0\u6cd5\u88c5\u5165\u8bf7\u6c42\u7684\u6587\u6863\uff1a{0}"},
  1550. /** WG_CANNOT_FIND_COLLATOR */
  1551. // public static final int WG_CANNOT_FIND_COLLATOR = 8;
  1552. { WG_CANNOT_FIND_COLLATOR,
  1553. "\u627e\u4e0d\u5230 <sort xml:lang={0} \u7684\u6574\u7406\u5668"},
  1554. /** WG_FUNCTIONS_SHOULD_USE_URL */
  1555. // public static final int WG_FUNCTIONS_SHOULD_USE_URL = 9;
  1556. { WG_FUNCTIONS_SHOULD_USE_URL,
  1557. "\u65e7\u8bed\u6cd5\uff1a\u51fd\u6570\u6307\u4ee4\u5e94\u5f53\u4f7f\u7528 {0} \u7684 URL"},
  1558. /** WG_ENCODING_NOT_SUPPORTED_USING_UTF8 */
  1559. // public static final int WG_ENCODING_NOT_SUPPORTED_USING_UTF8 = 10;
  1560. { WG_ENCODING_NOT_SUPPORTED_USING_UTF8,
  1561. "\u4e0d\u652f\u6301\u7f16\u7801\uff1a{0}\uff0c\u6b63\u5728\u4f7f\u7528 UTF-8"},
  1562. /** WG_ENCODING_NOT_SUPPORTED_USING_JAVA */
  1563. // public static final int WG_ENCODING_NOT_SUPPORTED_USING_JAVA = 11;
  1564. { WG_ENCODING_NOT_SUPPORTED_USING_JAVA,
  1565. "\u4e0d\u652f\u6301\u7f16\u7801\uff1a{0}\uff0c\u6b63\u5728\u4f7f\u7528 Java {1}"},
  1566. /** WG_SPECIFICITY_CONFLICTS */
  1567. // public static final int WG_SPECIFICITY_CONFLICTS = 12;
  1568. { WG_SPECIFICITY_CONFLICTS,
  1569. "\u53d1\u73b0\u7279\u6027\u51b2\u7a81\uff1a\u5c06\u4f7f\u7528\u6837\u5f0f\u8868\u4e2d\u6700\u540e\u627e\u5230\u7684 {0}\u3002"},
  1570. /** WG_PARSING_AND_PREPARING */
  1571. // public static final int WG_PARSING_AND_PREPARING = 13;
  1572. { WG_PARSING_AND_PREPARING,
  1573. "========= \u5206\u6790\u548c\u51c6\u5907 {0} =========="},
  1574. /** WG_ATTR_TEMPLATE */
  1575. // public static final int WG_ATTR_TEMPLATE = 14;
  1576. { WG_ATTR_TEMPLATE,
  1577. "Attr \u6a21\u677f\uff0c{0}"},
  1578. /** WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE */
  1579. // public static final int WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE = 15;
  1580. { WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE,
  1581. "xsl:strip-space \u548c xsl:preserve-space \u4e4b\u95f4\u7684\u5339\u914d\u51b2\u7a81"},
  1582. /** WG_ATTRIB_NOT_HANDLED */
  1583. // public static final int WG_ATTRIB_NOT_HANDLED = 16;
  1584. { WG_ATTRIB_NOT_HANDLED,
  1585. "Xalan \u5c1a\u672a\u5904\u7406 {0} \u5c5e\u6027\uff01"},
  1586. /** WG_NO_DECIMALFORMAT_DECLARATION */
  1587. // public static final int WG_NO_DECIMALFORMAT_DECLARATION = 17;
  1588. { WG_NO_DECIMALFORMAT_DECLARATION,
  1589. "\u627e\u4e0d\u5230\u5341\u8fdb\u5236\u683c\u5f0f\u7684\u8bf4\u660e\uff1a{0}"},
  1590. /** WG_OLD_XSLT_NS */
  1591. // public static final int WG_OLD_XSLT_NS = 18;
  1592. { WG_OLD_XSLT_NS,
  1593. "XSLT \u540d\u79f0\u7a7a\u95f4\u4e22\u5931\u6216\u4e0d\u6b63\u786e\u3002"},
  1594. /** WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED */
  1595. // public static final int WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED = 19;
  1596. { WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED,
  1597. "\u53ea\u5141\u8bb8\u4e00\u4e2a\u7f3a\u7701\u7684 xsl:decimal-format \u8bf4\u660e\u3002"},
  1598. /** WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE */
  1599. // public static final int WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE = 20;
  1600. { WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE,
  1601. "xsl:decimal-format \u540d\u79f0\u5fc5\u987b\u552f\u4e00\u3002\u540d\u79f0\u201c{0}\u201d\u6709\u91cd\u590d\u3002"},
  1602. /** WG_ILLEGAL_ATTRIBUTE */
  1603. //public static final int WG_ILLEGAL_ATTRIBUTE = 21;
  1604. { WG_ILLEGAL_ATTRIBUTE,
  1605. "{0} \u6709\u4e00\u4e2a\u975e\u6cd5\u5c5e\u6027\uff1a{1}"},
  1606. /** WG_COULD_NOT_RESOLVE_PREFIX */
  1607. // public static final int WG_COULD_NOT_RESOLVE_PREFIX = 22;
  1608. { WG_COULD_NOT_RESOLVE_PREFIX,
  1609. "\u65e0\u6cd5\u89e3\u6790\u540d\u79f0\u7a7a\u95f4\u524d\u7f00\uff1a{0}\u3002\u5c06\u5ffd\u7565\u8282\u70b9\u3002"},
  1610. /** WG_STYLESHEET_REQUIRES_VERSION_ATTRIB */
  1611. // public static final int WG_STYLESHEET_REQUIRES_VERSION_ATTRIB = 23;
  1612. { WG_STYLESHEET_REQUIRES_VERSION_ATTRIB,
  1613. "xsl:stylesheet \u9700\u8981\u201cversion\u201d\u5c5e\u6027\uff01"},
  1614. /** WG_ILLEGAL_ATTRIBUTE_NAME */
  1615. // public static final int WG_ILLEGAL_ATTRIBUTE_NAME = 24;
  1616. { WG_ILLEGAL_ATTRIBUTE_NAME,
  1617. "\u975e\u6cd5\u5c5e\u6027\u540d\u79f0\uff1a{0}"},
  1618. /** WG_ILLEGAL_ATTRIBUTE_VALUE */
  1619. // public static final int WG_ILLEGAL_ATTRIBUTE_VALUE = 25;
  1620. { WG_ILLEGAL_ATTRIBUTE_VALUE,
  1621. "\u7528\u4e8e\u5c5e\u6027 {0} \u7684\u503c\u975e\u6cd5\uff1a{1}"},
  1622. /** WG_EMPTY_SECOND_ARG */
  1623. // public static final int WG_EMPTY_SECOND_ARG = 26;
  1624. { WG_EMPTY_SECOND_ARG,
  1625. "\u4ece\u6587\u6863\u51fd\u6570\u7684\u7b2c\u4e8c\u81ea\u53d8\u91cf\u4ea7\u751f\u7684\u8282\u70b9\u96c6\u662f\u7a7a\u7684\u3002\u8fd4\u56de\u4e00\u4e2a\u7a7a\u8282\u70b9\u96c6\u3002"},
  1626. //Following are the new WARNING keys added in XALAN code base after Jdk 1.4 (Xalan 2.2-D11)
  1627. // Note to translators: "name" and "xsl:processing-instruction" are keywords
  1628. // and must not be translated.
  1629. // WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML
  1630. /** WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML */
  1631. // public static final int WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML = 27;
  1632. { WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML,
  1633. "xsl:processing-instruction \u540d\u79f0\u7684\u201cname\u201d\u5c5e\u6027\u7684\u503c\u4e0d\u5f97\u4e3a\u201cxml\u201d"},
  1634. // Note to translators: "name" and "xsl:processing-instruction" are keywords
  1635. // and must not be translated. "NCName" is an XML data-type and must not be
  1636. // translated.
  1637. // WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME
  1638. /** WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME */
  1639. // public static final int WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME = 28;
  1640. { WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,
  1641. "xsl:processing-instruction \u7684\u201cname\u201d\u5c5e\u6027\u7684\u503c\u5fc5\u987b\u662f\u6709\u6548\u7684 NCName\uff1a{0}"},
  1642. // Note to translators: This message is reported if the stylesheet that is
  1643. // being processed attempted to construct an XML document with an attribute in a
  1644. // place other than on an element. The substitution text specifies the name of
  1645. // the attribute.
  1646. // WG_ILLEGAL_ATTRIBUTE_POSITION
  1647. /** WG_ILLEGAL_ATTRIBUTE_POSITION */
  1648. // public static final int WG_ILLEGAL_ATTRIBUTE_POSITION = 29;
  1649. { WG_ILLEGAL_ATTRIBUTE_POSITION,
  1650. "\u5728\u751f\u6210\u5b50\u8282\u70b9\u4e4b\u540e\u6216\u5728\u751f\u6210\u5143\u7d20\u4e4b\u524d\u65e0\u6cd5\u6dfb\u52a0\u5c5e\u6027 {0}\u3002\u5c06\u5ffd\u7565\u5c5e\u6027\u3002"},
  1651. //Check: WHY THERE IS A GAP B/W NUMBERS in the XSLTErrorResources properties file?
  1652. // Other miscellaneous text used inside the code...
  1653. { "ui_language", "zh"},
  1654. { "help_language", "zh" },
  1655. { "language", "zh" },
  1656. { "BAD_CODE", "createMessage \u7684\u53c2\u6570\u8d85\u51fa\u8303\u56f4"},
  1657. { "FORMAT_FAILED", "\u5728 messageFormat \u8c03\u7528\u8fc7\u7a0b\u4e2d\u629b\u51fa\u7684\u5f02\u5e38"},
  1658. { "version", ">>>>>>> Xalan \u7248\u672c"},
  1659. { "version2", "<<<<<<<"},
  1660. { "yes", "\u662f"},
  1661. { "line", "\u884c\u53f7"},
  1662. { "column","\u5217\u53f7"},
  1663. { "xsldone", "XSLProcessor\uff1a\u5b8c\u6210"},
  1664. // Note to translators: The following messages provide usage information
  1665. // for the Xalan Process command line. "Process" is the name of a Java class,
  1666. // and should not be translated.
  1667. { "xslProc_option", "Xalan-J \u547d\u4ee4\u884c Process \u7c7b\u9009\u9879\uff1a"},
  1668. { "xslProc_option", "Xalan-J \u547d\u4ee4\u884c Process \u7c7b\u9009\u9879\uff1a"},
  1669. { "xslProc_invalid_xsltc_option", "\u5728 XSLTC \u65b9\u5f0f\u4e2d\uff0c\u4e0d\u652f\u6301\u9009\u9879 {0}\u3002"},
  1670. { "xslProc_invalid_xalan_option", "\u9009\u9879 {0} \u53ea\u80fd\u4e0e -XSLTC \u4e00\u8d77\u4f7f\u7528\u3002"},
  1671. { "xslProc_no_input", "\u9519\u8bef\uff1a\u6ca1\u6709\u6307\u5b9a\u6837\u5f0f\u8868\u6216\u8f93\u5165 xml\u3002\u4e0d\u5e26\u4efb\u4f55\u9009\u9879\u8fd0\u884c\u6b64\u547d\u4ee4\uff0c\u4ee5\u4e86\u89e3\u7528\u6cd5\u7684\u6307\u793a\u4fe1\u606f\u3002"},
  1672. { "xslProc_common_options", "\u2015 \u516c\u5171\u9009\u9879 \u2015"},
  1673. { "xslProc_xalan_options", "\u2015 Xalan \u9009\u9879 \u2015"},
  1674. { "xslProc_xsltc_options", "\u2015 XSLTC \u9009\u9879 \u2015"},
  1675. { "xslProc_return_to_continue", "\uff08\u8bf7\u6309 <return> \u952e\u7ee7\u7eed\uff09"},
  1676. // Note to translators: The option name and the parameter name do not need to
  1677. // be translated. Only translate the messages in parentheses. Note also that
  1678. // leading whitespace in the messages is used to indent the usage information
  1679. // for each option in the English messages.
  1680. // Do not translate the keywords: XSLTC, SAX, DOM and DTM.
  1681. { "optionXSLTC", " [-XSLTC \uff08\u4f7f\u7528 XSLTC \u8f6c\u6362\uff09]"},
  1682. { "optionIN", " [-IN inputXMLURL]"},
  1683. { "optionXSL", "[-XSL XSLTransformationURL]"},
  1684. { "optionOUT", "[-OUT outputFileName]"},
  1685. { "optionLXCIN", "[-LXCIN compiledStylesheetFileNameIn]"},
  1686. { "optionLXCOUT", "[-LXCOUT compiledStylesheetFileNameOutOut]"},
  1687. { "optionPARSER", " [-PARSER fully qualified class name of parser liaison]"},
  1688. { "optionE", "[-E \uff08\u4e0d\u8981\u5c55\u5f00\u5b9e\u4f53 refs\uff09]"},
  1689. { "optionV", "[-E \uff08\u4e0d\u8981\u5c55\u5f00\u5b9e\u4f53 refs\uff09]"},
  1690. { "optionQC", "[-QC \uff08\u4e0d\u663e\u793a\u51b2\u7a81\u8b66\u544a\uff09]"},
  1691. { "optionQ", "[-Q \uff08\u4e0d\u663e\u793a\u6a21\u5f0f\uff09]"},
  1692. { "optionLF", "[-LF \uff08\u8f93\u51fa\u65f6\u4ec5\u4f7f\u7528 linefeeds {default is CR/LF}\uff09]"},
  1693. { "optionCR", "[-CR \uff08\u8f93\u51fa\u65f6\u4ec5\u4f7f\u7528 carriage returns {default is CR/LF}\uff09]"},
  1694. { "optionESCAPE", "[-ESCAPE \uff08\u8bbe\u7f6e\u8f6c\u4e49\u5b57\u7b26{default is <>&\"\'\\r\\n}\uff09]"},
  1695. { "optionINDENT", "[-INDENT \uff08\u63a7\u5236\u7f29\u8fdb\u591a\u5c11\u7a7a\u683c{default is 0}\uff09]"},
  1696. { "optionTT", "[-TT \uff08\u5728\u6a21\u677f\u88ab\u8c03\u7528\u65f6\u8ddf\u8e2a\u6a21\u677f\u3002\uff09]"},
  1697. { "optionTG", "[-TG \uff08\u8ddf\u8e2a\u6bcf\u4e00\u4e2a\u751f\u6210\u4e8b\u4ef6\u3002\uff09]"},
  1698. { "optionTS", "[-TS \uff08\u8ddf\u8e2a\u6bcf\u4e00\u4e2a\u9009\u62e9\u4e8b\u4ef6\u3002\uff09]"},
  1699. { "optionTTC", "[-TTC \uff08\u5728\u5b50\u6a21\u677f\u88ab\u5904\u7406\u65f6\u5bf9\u5176\u8fdb\u884c\u8ddf\u8e2a\u3002\uff09]"},
  1700. { "optionTCLASS", "[-TCLASS \uff08\u8ddf\u8e2a\u6269\u5c55\u7684 TraceListener \u7c7b\u3002\uff09]"},
  1701. { "optionVALIDATE", "[-VALIDATE \uff08\u8bbe\u7f6e\u662f\u5426\u51fa\u73b0\u9a8c\u8bc1\u3002\u7f3a\u7701\u65f6\u9a8c\u8bc1\u662f\u5173\u95ed\u7684\u3002\uff09]"},
  1702. { "optionEDUMP", "[-EDUMP {optional filename} \uff08\u53d1\u751f\u9519\u8bef\u65f6\u5806\u6808\u8f6c\u50a8\u3002\uff09]"},
  1703. { "optionXML", "[-XML \uff08\u4f7f\u7528 XML \u683c\u5f0f\u5316\u7a0b\u5e8f\u5e76\u6dfb\u52a0 XML \u5934\u3002\uff09]"},
  1704. { "optionTEXT", "[-TEXT \uff08\u4f7f\u7528\u7b80\u5355\u6587\u672c\u683c\u5f0f\u5316\u7a0b\u5e8f\u3002\uff09]"},
  1705. { "optionHTML", "[-HTML \uff08\u4f7f\u7528 HTML \u683c\u5f0f\u5316\u7a0b\u5e8f\uff09]"},
  1706. { "optionPARAM", "[-PARAM name expression \uff08\u8bbe\u7f6e\u6837\u8bc6\u8868\u53c2\u6570\uff09]"},
  1707. { "noParsermsg1", "XSL \u5904\u7406\u4e0d\u6210\u529f\u3002"},
  1708. { "noParsermsg2", "** \u627e\u4e0d\u5230\u89e3\u6790\u5668 **"},
  1709. { "noParsermsg3", "\u8bf7\u68c0\u67e5\u60a8\u7684\u7c7b\u8def\u5f84\u3002"},
  1710. { "noParsermsg4", "\u5982\u679c\u6ca1\u6709 IBM \u7684 XML Parser for Java\uff0c\u60a8\u53ef\u4ee5\u4ece\u4ee5\u4e0b\u4f4d\u7f6e\u4e0b\u8f7d\u5b83\uff1a"},
  1711. { "noParsermsg5", "IBM \u7684 AlphaWorks\uff1ahttp://www.alphaworks.ibm.com/formula/xml"},
  1712. { "optionURIRESOLVER", "[-URIRESOLVER full class name \uff08\u4f7f\u7528 URIResolver \u89e3\u6790 URI\uff09]"},
  1713. { "optionENTITYRESOLVER", "[-ENTITYRESOLVER full class name \uff08\u4f7f\u7528 EntityResolver \u89e3\u6790 \u5b9e\u4f53\uff09]"},
  1714. { "optionCONTENTHANDLER", "[-CONTENTHANDLER full class name \uff08\u4f7f\u7528 ContentHandler \u4e32\u884c\u5316\u8f93\u51fa\uff09]"},
  1715. { "optionLINENUMBERS", "[-L use line numbers for source document]"},
  1716. // Following are the new options added in XSLTErrorResources.properties files after Jdk 1.4 (Xalan 2.2-D11)
  1717. { "optionMEDIA", " [-MEDIA mediaType \uff08\u4f7f\u7528 media \u5c5e\u6027\u67e5\u627e\u4e0e\u6587\u6863\u5173\u8054\u7684\u6837\u5f0f\u8868\u3002\uff09]"},
  1718. { "optionFLAVOR", " [-FLAVOR flavorName \uff08\u663e\u5f0f\u4f7f\u7528 s2s=SAX \u6216 d2d=DOM \u8f6c\u6362\u3002\uff09]"}, // Added by sboag/scurcuru; experimental
  1719. { "optionDIAG", "[-DIAG \uff08\u663e\u793a\u5168\u90e8\u6beb\u79d2\u8f6c\u6362\u6807\u8bb0\u3002\uff09]"},
  1720. { "optionINCREMENTAL", " [-INCREMENTAL \uff08\u901a\u8fc7\u8bbe\u7f6ehttp://xml.apache.org/xalan/features/incremental \u4e3a true \u8bf7\u6c42\u589e\u52a0\u7684 DTM \u6784\u9020\u3002\uff09]"},
  1721. { "optionNOOPTIMIMIZE", " [-NOOPTIMIMIZE \uff08\u901a\u8fc7\u8bbe\u7f6ehttp://xml.apache.org/xalan/features/optimize \u4e3a false \u8bf7\u6c42\u4e0d\u9700\u8981\u5f0f\u6837\u8868\u4f18\u5316\u5904\u7406\u3002\uff09]"},
  1722. { "optionRL", " [-RL recursionlimit \uff08\u65ad\u8a00\u6837\u5f0f\u8868\u9012\u5f52\u6df1\u5ea6\u7684\u6570\u5b57\u6781\u9650\u3002\uff09]"},
  1723. { "optionXO", "[-XO [transletName] \uff08\u65ad\u8a00\u751f\u6210 translet \u7684\u540d\u5b57\uff09]"},
  1724. { "optionXD", "[-XD destinationDirectory \uff08\u6307\u5b9a translet \u76ee\u6807\u76ee\u5f55\uff09]"},
  1725. { "optionXJ", "[-XJ jarfile \uff08\u5c06\u7c7b translet \u6210\u540d\u5b57\u4e3a <jarfile> jar \u6587\u4ef6\u7684\u5305\uff09]"},
  1726. { "optionXP", "[-XP package \uff08\u6307\u51fa\u6240\u6709\u751f\u6210 translet \u7c7b\u7684\u5305\u540d\u5b57\u524d\u7f00\uff09]"},
  1727. //AddITIONAL STRINGS that need L10n
  1728. // Note to translators: The following message describes usage of a particular
  1729. // command-line option that is used to enable the "template inlining"
  1730. // optimization. The optimization involves making a copy of the code
  1731. // generated for a template in another template that refers to it.
  1732. { "optionXN", "[-XN \uff08\u5f00\u542f\u6a21\u677f\u5185\u8054\uff09]" },
  1733. { "optionXX", "[-XX \uff08\u6253\u5f00\u9644\u52a0\u8c03\u8bd5\u4fe1\u606f\u8f93\u51fa\uff09]"},
  1734. { "optionXT" , "[-XT \uff08\u82e5\u53ef\u80fd\u4f7f\u7528 translet \u8fdb\u884c\u8f6c\u6362\uff09]"},
  1735. { "diagTiming","--------- {0} \u901a\u8fc7 {1} \u7684\u8f6c\u6362\u8017\u65f6 {2} \u6beb\u79d2" },
  1736. { "recursionTooDeep","\u6a21\u677f\u5d4c\u5957\u592a\u6df1\u3002\u5d4c\u5957 = {0}\uff0c\u6a21\u677f {1} {2}" },
  1737. { "nameIs", "\u540d\u79f0\u4e3a" },
  1738. { "matchPatternIs", "\u5339\u914d\u6a21\u5f0f\u4e3a" }
  1739. };
  1740. // ================= INFRASTRUCTURE ======================
  1741. /** String for use when a bad error code was encountered. */
  1742. public static final String BAD_CODE = "BAD_CODE";
  1743. /** String for use when formatting of the error string failed. */
  1744. public static final String FORMAT_FAILED = "FORMAT_FAILED";
  1745. /** General error string. */
  1746. public static final String ERROR_STRING = "#\u9519\u8bef";
  1747. /** String to prepend to error messages. */
  1748. public static final String ERROR_HEADER = "\u9519\u8bef:";
  1749. /** String to prepend to warning messages. */
  1750. public static final String WARNING_HEADER = "\u8b66\u544a:";
  1751. /** String to specify the XSLT module. */
  1752. public static final String XSL_HEADER = "XSLT ";
  1753. /** String to specify the XML parser module. */
  1754. public static final String XML_HEADER = "XML ";
  1755. /** I don't think this is used any more.
  1756. * @deprecated */
  1757. public static final String QUERY_HEADER = "PATTERN ";
  1758. /**
  1759. * Get the lookup table.
  1760. *
  1761. * @return The int to message lookup table.
  1762. */
  1763. public Object[][] getContents()
  1764. {
  1765. return contents;
  1766. }
  1767. /**
  1768. * Return a named ResourceBundle for a particular locale. This method mimics the behavior
  1769. * of ResourceBundle.getBundle().
  1770. *
  1771. * @param className the name of the class that implements the resource bundle.
  1772. * @return the ResourceBundle
  1773. * @throws MissingResourceException
  1774. */
  1775. public static final XSLTErrorResources loadResourceBundle(String className)
  1776. throws MissingResourceException
  1777. {
  1778. Locale locale = Locale.getDefault();
  1779. String suffix = getResourceSuffix(locale);
  1780. try
  1781. {
  1782. // first try with the given locale
  1783. return (XSLTErrorResources) ResourceBundle.getBundle(className
  1784. + suffix, locale);
  1785. }
  1786. catch (MissingResourceException e)
  1787. {
  1788. try // try to fall back to en_US if we can't load
  1789. {
  1790. // Since we can't find the localized property file,
  1791. // fall back to en_US.
  1792. return (XSLTErrorResources) ResourceBundle.getBundle(className,
  1793. new Locale("zh", "CN"));
  1794. }
  1795. catch (MissingResourceException e2)
  1796. {
  1797. // Now we are really in trouble.
  1798. // very bad, definitely very bad...not going to get very far
  1799. throw new MissingResourceException(
  1800. "\u65e0\u6cd5\u88c5\u5165\u4efb\u4f55\u8d44\u6e90\u5305\u3002", className, "");
  1801. }
  1802. }
  1803. }
  1804. /**
  1805. * Return the resource file suffic for the indicated locale
  1806. * For most locales, this will be based the language code. However
  1807. * for Chinese, we do distinguish between Taiwan and PRC
  1808. *
  1809. * @param locale the locale
  1810. * @return an String suffix which canbe appended to a resource name
  1811. */
  1812. private static final String getResourceSuffix(Locale locale)
  1813. {
  1814. String suffix = "_" + locale.getLanguage();
  1815. String country = locale.getCountry();
  1816. if (country.equals("TW"))
  1817. suffix += "_" + country;
  1818. return suffix;
  1819. }
  1820. }