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: XPATHErrorResources_it.java,v 1.8 2004/02/17 04:36:46 minchau Exp $
  18. */
  19. package com.sun.org.apache.xpath.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 Static string constant for the
  29. * Key and update the contents array with Key, Value pair
  30. * Also you need to update the count of messages(MAX_CODE)or
  31. * the count of warnings(MAX_WARNING) [ Information purpose only]
  32. * @xsl.usage advanced
  33. */
  34. public class XPATHErrorResources_it extends ListResourceBundle
  35. {
  36. /*
  37. * General notes to translators:
  38. *
  39. * This file contains error and warning messages related to XPath Error
  40. * Handling.
  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. * 8) The context node is the node in the document with respect to which an
  73. * XPath expression is being evaluated.
  74. *
  75. * 9) An iterator is an object that traverses nodes in the tree, one at a time.
  76. *
  77. * 10) NCName is an XML term used to describe a name that does not contain a
  78. * colon (a "no-colon name").
  79. *
  80. * 11) QName is an XML term meaning "qualified name".
  81. */
  82. /** Field MAX_CODE */
  83. public static final int MAX_CODE = 108; // this is needed to keep track of the number of messages
  84. /** Field MAX_WARNING */
  85. public static final int MAX_WARNING = 11; // this is needed to keep track of the number of warnings
  86. /** Field MAX_OTHERS */
  87. public static final int MAX_OTHERS = 20;
  88. /** Field MAX_MESSAGES */
  89. public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;
  90. /*
  91. * static variables
  92. */
  93. public static final String ERROR0000 = "ERROR0000";
  94. public static final String ER_CURRENT_NOT_ALLOWED_IN_MATCH =
  95. "ER_CURRENT_NOT_ALLOWED_IN_MATCH";
  96. public static final String ER_CURRENT_TAKES_NO_ARGS =
  97. "ER_CURRENT_TAKES_NO_ARGS";
  98. public static final String ER_DOCUMENT_REPLACED = "ER_DOCUMENT_REPLACED";
  99. public static final String ER_CONTEXT_HAS_NO_OWNERDOC =
  100. "ER_CONTEXT_HAS_NO_OWNERDOC";
  101. public static final String ER_LOCALNAME_HAS_TOO_MANY_ARGS =
  102. "ER_LOCALNAME_HAS_TOO_MANY_ARGS";
  103. public static final String ER_NAMESPACEURI_HAS_TOO_MANY_ARGS =
  104. "ER_NAMESPACEURI_HAS_TOO_MANY_ARGS";
  105. public static final String ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS =
  106. "ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS";
  107. public static final String ER_NUMBER_HAS_TOO_MANY_ARGS =
  108. "ER_NUMBER_HAS_TOO_MANY_ARGS";
  109. public static final String ER_NAME_HAS_TOO_MANY_ARGS =
  110. "ER_NAME_HAS_TOO_MANY_ARGS";
  111. public static final String ER_STRING_HAS_TOO_MANY_ARGS =
  112. "ER_STRING_HAS_TOO_MANY_ARGS";
  113. public static final String ER_STRINGLENGTH_HAS_TOO_MANY_ARGS =
  114. "ER_STRINGLENGTH_HAS_TOO_MANY_ARGS";
  115. public static final String ER_TRANSLATE_TAKES_3_ARGS =
  116. "ER_TRANSLATE_TAKES_3_ARGS";
  117. public static final String ER_UNPARSEDENTITYURI_TAKES_1_ARG =
  118. "ER_UNPARSEDENTITYURI_TAKES_1_ARG";
  119. public static final String ER_NAMESPACEAXIS_NOT_IMPLEMENTED =
  120. "ER_NAMESPACEAXIS_NOT_IMPLEMENTED";
  121. public static final String ER_UNKNOWN_AXIS = "ER_UNKNOWN_AXIS";
  122. public static final String ER_UNKNOWN_MATCH_OPERATION =
  123. "ER_UNKNOWN_MATCH_OPERATION";
  124. public static final String ER_INCORRECT_ARG_LENGTH ="ER_INCORRECT_ARG_LENGTH";
  125. public static final String ER_CANT_CONVERT_TO_NUMBER =
  126. "ER_CANT_CONVERT_TO_NUMBER";
  127. public static final String ER_CANT_CONVERT_TO_NODELIST =
  128. "ER_CANT_CONVERT_TO_NODELIST";
  129. public static final String ER_CANT_CONVERT_TO_MUTABLENODELIST =
  130. "ER_CANT_CONVERT_TO_MUTABLENODELIST";
  131. public static final String ER_CANT_CONVERT_TO_TYPE ="ER_CANT_CONVERT_TO_TYPE";
  132. public static final String ER_EXPECTED_MATCH_PATTERN =
  133. "ER_EXPECTED_MATCH_PATTERN";
  134. public static final String ER_COULDNOT_GET_VAR_NAMED =
  135. "ER_COULDNOT_GET_VAR_NAMED";
  136. public static final String ER_UNKNOWN_OPCODE = "ER_UNKNOWN_OPCODE";
  137. public static final String ER_EXTRA_ILLEGAL_TOKENS ="ER_EXTRA_ILLEGAL_TOKENS";
  138. public static final String ER_EXPECTED_DOUBLE_QUOTE =
  139. "ER_EXPECTED_DOUBLE_QUOTE";
  140. public static final String ER_EXPECTED_SINGLE_QUOTE =
  141. "ER_EXPECTED_SINGLE_QUOTE";
  142. public static final String ER_EMPTY_EXPRESSION = "ER_EMPTY_EXPRESSION";
  143. public static final String ER_EXPECTED_BUT_FOUND = "ER_EXPECTED_BUT_FOUND";
  144. public static final String ER_INCORRECT_PROGRAMMER_ASSERTION =
  145. "ER_INCORRECT_PROGRAMMER_ASSERTION";
  146. public static final String ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL =
  147. "ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL";
  148. public static final String ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG =
  149. "ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG";
  150. public static final String ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG =
  151. "ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG";
  152. public static final String ER_PREDICATE_ILLEGAL_SYNTAX =
  153. "ER_PREDICATE_ILLEGAL_SYNTAX";
  154. public static final String ER_ILLEGAL_AXIS_NAME = "ER_ILLEGAL_AXIS_NAME";
  155. public static final String ER_UNKNOWN_NODETYPE = "ER_UNKNOWN_NODETYPE";
  156. public static final String ER_PATTERN_LITERAL_NEEDS_BE_QUOTED =
  157. "ER_PATTERN_LITERAL_NEEDS_BE_QUOTED";
  158. public static final String ER_COULDNOT_BE_FORMATTED_TO_NUMBER =
  159. "ER_COULDNOT_BE_FORMATTED_TO_NUMBER";
  160. public static final String ER_COULDNOT_CREATE_XMLPROCESSORLIAISON =
  161. "ER_COULDNOT_CREATE_XMLPROCESSORLIAISON";
  162. public static final String ER_DIDNOT_FIND_XPATH_SELECT_EXP =
  163. "ER_DIDNOT_FIND_XPATH_SELECT_EXP";
  164. public static final String ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH =
  165. "ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH";
  166. public static final String ER_ERROR_OCCURED = "ER_ERROR_OCCURED";
  167. public static final String ER_ILLEGAL_VARIABLE_REFERENCE =
  168. "ER_ILLEGAL_VARIABLE_REFERENCE";
  169. public static final String ER_AXES_NOT_ALLOWED = "ER_AXES_NOT_ALLOWED";
  170. public static final String ER_KEY_HAS_TOO_MANY_ARGS =
  171. "ER_KEY_HAS_TOO_MANY_ARGS";
  172. public static final String ER_COUNT_TAKES_1_ARG = "ER_COUNT_TAKES_1_ARG";
  173. public static final String ER_COULDNOT_FIND_FUNCTION =
  174. "ER_COULDNOT_FIND_FUNCTION";
  175. public static final String ER_UNSUPPORTED_ENCODING ="ER_UNSUPPORTED_ENCODING";
  176. public static final String ER_PROBLEM_IN_DTM_NEXTSIBLING =
  177. "ER_PROBLEM_IN_DTM_NEXTSIBLING";
  178. public static final String ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL =
  179. "ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL";
  180. public static final String ER_SETDOMFACTORY_NOT_SUPPORTED =
  181. "ER_SETDOMFACTORY_NOT_SUPPORTED";
  182. public static final String ER_PREFIX_MUST_RESOLVE = "ER_PREFIX_MUST_RESOLVE";
  183. public static final String ER_PARSE_NOT_SUPPORTED = "ER_PARSE_NOT_SUPPORTED";
  184. //public static final String ER_CREATEDOCUMENT_NOT_SUPPORTED =
  185. // "ER_CREATEDOCUMENT_NOT_SUPPORTED";
  186. //public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT =
  187. // "ER_CHILD_HAS_NO_OWNER_DOCUMENT";
  188. //public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT =
  189. // "ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT";
  190. public static final String ER_SAX_API_NOT_HANDLED = "ER_SAX_API_NOT_HANDLED";
  191. public static final String ER_IGNORABLE_WHITESPACE_NOT_HANDLED =
  192. "ER_IGNORABLE_WHITESPACE_NOT_HANDLED";
  193. public static final String ER_DTM_CANNOT_HANDLE_NODES =
  194. "ER_DTM_CANNOT_HANDLE_NODES";
  195. public static final String ER_XERCES_CANNOT_HANDLE_NODES =
  196. "ER_XERCES_CANNOT_HANDLE_NODES";
  197. public static final String ER_XERCES_PARSE_ERROR_DETAILS =
  198. "ER_XERCES_PARSE_ERROR_DETAILS";
  199. public static final String ER_XERCES_PARSE_ERROR = "ER_XERCES_PARSE_ERROR";
  200. //public static final String ER_CANT_OUTPUT_TEXT_BEFORE_DOC =
  201. // "ER_CANT_OUTPUT_TEXT_BEFORE_DOC";
  202. //public static final String ER_CANT_HAVE_MORE_THAN_ONE_ROOT =
  203. // "ER_CANT_HAVE_MORE_THAN_ONE_ROOT";
  204. public static final String ER_INVALID_UTF16_SURROGATE =
  205. "ER_INVALID_UTF16_SURROGATE";
  206. public static final String ER_OIERROR = "ER_OIERROR";
  207. public static final String ER_CANNOT_CREATE_URL = "ER_CANNOT_CREATE_URL";
  208. public static final String ER_XPATH_READOBJECT = "ER_XPATH_READOBJECT";
  209. public static final String ER_FUNCTION_TOKEN_NOT_FOUND =
  210. "ER_FUNCTION_TOKEN_NOT_FOUND";
  211. //public static final String ER_ARG_LOCALNAME_NULL = "ER_ARG_LOCALNAME_NULL";
  212. public static final String ER_CANNOT_DEAL_XPATH_TYPE =
  213. "ER_CANNOT_DEAL_XPATH_TYPE";
  214. public static final String ER_NODESET_NOT_MUTABLE = "ER_NODESET_NOT_MUTABLE";
  215. public static final String ER_NODESETDTM_NOT_MUTABLE =
  216. "ER_NODESETDTM_NOT_MUTABLE";
  217. /** Variable not resolvable: */
  218. public static final String ER_VAR_NOT_RESOLVABLE = "ER_VAR_NOT_RESOLVABLE";
  219. /** Null error handler */
  220. public static final String ER_NULL_ERROR_HANDLER = "ER_NULL_ERROR_HANDLER";
  221. /** Programmer's assertion: unknown opcode */
  222. public static final String ER_PROG_ASSERT_UNKNOWN_OPCODE =
  223. "ER_PROG_ASSERT_UNKNOWN_OPCODE";
  224. /** 0 or 1 */
  225. public static final String ER_ZERO_OR_ONE = "ER_ZERO_OR_ONE";
  226. /** rtf() not supported by XRTreeFragSelectWrapper */
  227. public static final String ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER =
  228. "ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER";
  229. /** asNodeIterator() not supported by XRTreeFragSelectWrapper */
  230. public static final String ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = "ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER";
  231. /** fsb() not supported for XStringForChars */
  232. public static final String ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS =
  233. "ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS";
  234. /** Could not find variable with the name of */
  235. public static final String ER_COULD_NOT_FIND_VAR = "ER_COULD_NOT_FIND_VAR";
  236. /** XStringForChars can not take a string for an argument */
  237. public static final String ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING =
  238. "ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING";
  239. /** The FastStringBuffer argument can not be null */
  240. public static final String ER_FASTSTRINGBUFFER_CANNOT_BE_NULL =
  241. "ER_FASTSTRINGBUFFER_CANNOT_BE_NULL";
  242. /** 2 or 3 */
  243. public static final String ER_TWO_OR_THREE = "ER_TWO_OR_THREE";
  244. /** Variable accessed before it is bound! */
  245. public static final String ER_VARIABLE_ACCESSED_BEFORE_BIND =
  246. "ER_VARIABLE_ACCESSED_BEFORE_BIND";
  247. /** XStringForFSB can not take a string for an argument! */
  248. public static final String ER_FSB_CANNOT_TAKE_STRING =
  249. "ER_FSB_CANNOT_TAKE_STRING";
  250. /** Error! Setting the root of a walker to null! */
  251. public static final String ER_SETTING_WALKER_ROOT_TO_NULL =
  252. "ER_SETTING_WALKER_ROOT_TO_NULL";
  253. /** This NodeSetDTM can not iterate to a previous node! */
  254. public static final String ER_NODESETDTM_CANNOT_ITERATE =
  255. "ER_NODESETDTM_CANNOT_ITERATE";
  256. /** This NodeSet can not iterate to a previous node! */
  257. public static final String ER_NODESET_CANNOT_ITERATE =
  258. "ER_NODESET_CANNOT_ITERATE";
  259. /** This NodeSetDTM can not do indexing or counting functions! */
  260. public static final String ER_NODESETDTM_CANNOT_INDEX =
  261. "ER_NODESETDTM_CANNOT_INDEX";
  262. /** This NodeSet can not do indexing or counting functions! */
  263. public static final String ER_NODESET_CANNOT_INDEX =
  264. "ER_NODESET_CANNOT_INDEX";
  265. /** Can not call setShouldCacheNodes after nextNode has been called! */
  266. public static final String ER_CANNOT_CALL_SETSHOULDCACHENODE =
  267. "ER_CANNOT_CALL_SETSHOULDCACHENODE";
  268. /** {0} only allows {1} arguments */
  269. public static final String ER_ONLY_ALLOWS = "ER_ONLY_ALLOWS";
  270. /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */
  271. public static final String ER_UNKNOWN_STEP = "ER_UNKNOWN_STEP";
  272. /** Problem with RelativeLocationPath */
  273. public static final String ER_EXPECTED_REL_LOC_PATH =
  274. "ER_EXPECTED_REL_LOC_PATH";
  275. /** Problem with LocationPath */
  276. public static final String ER_EXPECTED_LOC_PATH = "ER_EXPECTED_LOC_PATH";
  277. /** Problem with Step */
  278. public static final String ER_EXPECTED_LOC_STEP = "ER_EXPECTED_LOC_STEP";
  279. /** Problem with NodeTest */
  280. public static final String ER_EXPECTED_NODE_TEST = "ER_EXPECTED_NODE_TEST";
  281. /** Expected step pattern */
  282. public static final String ER_EXPECTED_STEP_PATTERN =
  283. "ER_EXPECTED_STEP_PATTERN";
  284. /** Expected relative path pattern */
  285. public static final String ER_EXPECTED_REL_PATH_PATTERN =
  286. "ER_EXPECTED_REL_PATH_PATTERN";
  287. /** localname in QNAME should be a valid NCName */
  288. //public static final String ER_ARG_LOCALNAME_INVALID =
  289. // "ER_ARG_LOCALNAME_INVALID";
  290. /** prefix in QNAME should be a valid NCName */
  291. //public static final String ER_ARG_PREFIX_INVALID = "ER_ARG_PREFIX_INVALID";
  292. /** Field ER_CANT_CONVERT_TO_BOOLEAN */
  293. public static final String ER_CANT_CONVERT_TO_BOOLEAN =
  294. "ER_CANT_CONVERT_TO_BOOLEAN";
  295. /** Field ER_CANT_CONVERT_TO_SINGLENODE */
  296. public static final String ER_CANT_CONVERT_TO_SINGLENODE =
  297. "ER_CANT_CONVERT_TO_SINGLENODE";
  298. /** Field ER_CANT_GET_SNAPSHOT_LENGTH */
  299. public static final String ER_CANT_GET_SNAPSHOT_LENGTH =
  300. "ER_CANT_GET_SNAPSHOT_LENGTH";
  301. /** Field ER_NON_ITERATOR_TYPE */
  302. public static final String ER_NON_ITERATOR_TYPE = "ER_NON_ITERATOR_TYPE";
  303. /** Field ER_DOC_MUTATED */
  304. public static final String ER_DOC_MUTATED = "ER_DOC_MUTATED";
  305. public static final String ER_INVALID_XPATH_TYPE = "ER_INVALID_XPATH_TYPE";
  306. public static final String ER_EMPTY_XPATH_RESULT = "ER_EMPTY_XPATH_RESULT";
  307. public static final String ER_INCOMPATIBLE_TYPES = "ER_INCOMPATIBLE_TYPES";
  308. public static final String ER_NULL_RESOLVER = "ER_NULL_RESOLVER";
  309. public static final String ER_CANT_CONVERT_TO_STRING =
  310. "ER_CANT_CONVERT_TO_STRING";
  311. public static final String ER_NON_SNAPSHOT_TYPE = "ER_NON_SNAPSHOT_TYPE";
  312. public static final String ER_WRONG_DOCUMENT = "ER_WRONG_DOCUMENT";
  313. /* Note to translators: The XPath expression cannot be evaluated with respect
  314. * to this type of node.
  315. */
  316. /** Field ER_WRONG_NODETYPE */
  317. public static final String ER_WRONG_NODETYPE = "ER_WRONG_NODETYPE";
  318. public static final String ER_XPATH_ERROR = "ER_XPATH_ERROR";
  319. public static final String WG_LOCALE_NAME_NOT_HANDLED =
  320. "WG_LOCALE_NAME_NOT_HANDLED";
  321. public static final String WG_PROPERTY_NOT_SUPPORTED =
  322. "WG_PROPERTY_NOT_SUPPORTED";
  323. public static final String WG_DONT_DO_ANYTHING_WITH_NS =
  324. "WG_DONT_DO_ANYTHING_WITH_NS";
  325. public static final String WG_SECURITY_EXCEPTION = "WG_SECURITY_EXCEPTION";
  326. public static final String WG_QUO_NO_LONGER_DEFINED =
  327. "WG_QUO_NO_LONGER_DEFINED";
  328. public static final String WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST =
  329. "WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST";
  330. public static final String WG_FUNCTION_TOKEN_NOT_FOUND =
  331. "WG_FUNCTION_TOKEN_NOT_FOUND";
  332. public static final String WG_COULDNOT_FIND_FUNCTION =
  333. "WG_COULDNOT_FIND_FUNCTION";
  334. public static final String WG_CANNOT_MAKE_URL_FROM ="WG_CANNOT_MAKE_URL_FROM";
  335. public static final String WG_EXPAND_ENTITIES_NOT_SUPPORTED =
  336. "WG_EXPAND_ENTITIES_NOT_SUPPORTED";
  337. public static final String WG_ILLEGAL_VARIABLE_REFERENCE =
  338. "WG_ILLEGAL_VARIABLE_REFERENCE";
  339. public static final String WG_UNSUPPORTED_ENCODING ="WG_UNSUPPORTED_ENCODING";
  340. // Error messages...
  341. public static final Object[][] contents = {
  342. /** Field ERROR0000 */
  343. // public static final int ERROR0000 = 0;
  344. { "ERROR0000" , "{0}" },
  345. /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH */
  346. // public static final int ER_CURRENT_NOT_ALLOWED_IN_MATCH = 1;
  347. { ER_CURRENT_NOT_ALLOWED_IN_MATCH, "La funzione corrente () non \u00e8 consentita in un modello di corrispondenza." },
  348. /** Field ER_CURRENT_TAKES_NO_ARGS */
  349. //public static final int ER_CURRENT_TAKES_NO_ARGS = 2;
  350. { ER_CURRENT_TAKES_NO_ARGS, "La funzione corrente () non accetta argomenti." },
  351. /** Field ER_DOCUMENT_REPLACED */
  352. // public static final int ER_DOCUMENT_REPLACED = 3;
  353. { ER_DOCUMENT_REPLACED,
  354. "L'implementazione della funzione documento () \u00e8 stata sostituita da com.sun.org.apache.xalan.internal.xslt.FuncDocument."},
  355. /** Field ER_CONTEXT_HAS_NO_OWNERDOC */
  356. // public static final int ER_CONTEXT_HAS_NO_OWNERDOC = 4;
  357. { ER_CONTEXT_HAS_NO_OWNERDOC,
  358. "il contesto non ha un documento proprietario."},
  359. /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS */
  360. // public static final int ER_LOCALNAME_HAS_TOO_MANY_ARGS = 5;
  361. { ER_LOCALNAME_HAS_TOO_MANY_ARGS,
  362. "local-name() ha troppi argomenti."},
  363. /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS */
  364. //public static final int ER_NAMESPACEURI_HAS_TOO_MANY_ARGS = 6;
  365. { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,
  366. "namespace-uri() ha troppi argomenti."},
  367. /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS */
  368. // public static final int ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS = 7;
  369. { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,
  370. "normalize-space() ha troppi argomenti."},
  371. /** Field ER_NUMBER_HAS_TOO_MANY_ARGS */
  372. // public static final int ER_NUMBER_HAS_TOO_MANY_ARGS = 8;
  373. { ER_NUMBER_HAS_TOO_MANY_ARGS,
  374. "number() ha troppi argomenti."},
  375. /** Field ER_NAME_HAS_TOO_MANY_ARGS */
  376. // public static final int ER_NAME_HAS_TOO_MANY_ARGS = 9;
  377. { ER_NAME_HAS_TOO_MANY_ARGS,
  378. "name() ha troppi argomenti."},
  379. /** Field ER_STRING_HAS_TOO_MANY_ARGS */
  380. // public static final int ER_STRING_HAS_TOO_MANY_ARGS = 10;
  381. { ER_STRING_HAS_TOO_MANY_ARGS,
  382. "string() ha troppi argomenti."},
  383. /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS */
  384. // public static final int ER_STRINGLENGTH_HAS_TOO_MANY_ARGS = 11;
  385. { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,
  386. "string-length() ha troppi argomenti."},
  387. /** Field ER_TRANSLATE_TAKES_3_ARGS */
  388. // public static final int ER_TRANSLATE_TAKES_3_ARGS = 12;
  389. { ER_TRANSLATE_TAKES_3_ARGS,
  390. "La funzione translate() richiede tre argomenti."},
  391. /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG */
  392. // public static final int ER_UNPARSEDENTITYURI_TAKES_1_ARG = 13;
  393. { ER_UNPARSEDENTITYURI_TAKES_1_ARG,
  394. "La funzione unparsed-entity-uri richiede un argomento."},
  395. /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED */
  396. // public static final int ER_NAMESPACEAXIS_NOT_IMPLEMENTED = 14;
  397. { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,
  398. "namespace axis non ancora implementato."},
  399. /** Field ER_UNKNOWN_AXIS */
  400. // public static final int ER_UNKNOWN_AXIS = 15;
  401. { ER_UNKNOWN_AXIS,
  402. "asse sconosciuto: {0}"},
  403. /** Field ER_UNKNOWN_MATCH_OPERATION */
  404. // public static final int ER_UNKNOWN_MATCH_OPERATION = 16;
  405. { ER_UNKNOWN_MATCH_OPERATION,
  406. "operazione di corrispondenza sconosciuta."},
  407. /** Field ER_INCORRECT_ARG_LENGTH */
  408. // public static final int ER_INCORRECT_ARG_LENGTH = 17;
  409. { ER_INCORRECT_ARG_LENGTH,
  410. "Lunghezza argomento nella prova nodo processing-instruction() incorretta."},
  411. /** Field ER_CANT_CONVERT_TO_NUMBER */
  412. // public static final int ER_CANT_CONVERT_TO_NUMBER = 18;
  413. { ER_CANT_CONVERT_TO_NUMBER,
  414. "Impossibile convertire {0} in un numero"},
  415. /** Field ER_CANT_CONVERT_TO_NODELIST */
  416. //public static final int ER_CANT_CONVERT_TO_NODELIST = 19;
  417. { ER_CANT_CONVERT_TO_NODELIST,
  418. "Impossibile convertire {0} in un NodeList."},
  419. /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST */
  420. // public static final int ER_CANT_CONVERT_TO_MUTABLENODELIST = 20;
  421. { ER_CANT_CONVERT_TO_MUTABLENODELIST,
  422. "Impossibile convertire {0} in un NodeSetDTM."},
  423. /** Field ER_CANT_CONVERT_TO_TYPE */
  424. // public static final int ER_CANT_CONVERT_TO_TYPE = 21;
  425. { ER_CANT_CONVERT_TO_TYPE,
  426. "Impossibile convertire {0} in un type#{1}"},
  427. /** Field ER_EXPECTED_MATCH_PATTERN */
  428. // public static final int ER_EXPECTED_MATCH_PATTERN = 22;
  429. { ER_EXPECTED_MATCH_PATTERN,
  430. "Modello corrispondenza previsto in getMatchScore!"},
  431. /** Field ER_COULDNOT_GET_VAR_NAMED */
  432. // public static final int ER_COULDNOT_GET_VAR_NAMED = 23;
  433. { ER_COULDNOT_GET_VAR_NAMED,
  434. "Impossibile richiamare la variabile denominata {0}"},
  435. /** Field ER_UNKNOWN_OPCODE */
  436. // public static final int ER_UNKNOWN_OPCODE = 24;
  437. { ER_UNKNOWN_OPCODE,
  438. "ERRORE! Codice operativo sconosciuto: {0}"},
  439. /** Field ER_EXTRA_ILLEGAL_TOKENS */
  440. // public static final int ER_EXTRA_ILLEGAL_TOKENS = 25;
  441. { ER_EXTRA_ILLEGAL_TOKENS,
  442. "Token aggiuntivi non validi: {0}"},
  443. /** Field ER_EXPECTED_DOUBLE_QUOTE */
  444. // public static final int ER_EXPECTED_DOUBLE_QUOTE = 26;
  445. { ER_EXPECTED_DOUBLE_QUOTE,
  446. "letterale con numero di apici errato... previsti i doppi apici."},
  447. /** Field ER_EXPECTED_SINGLE_QUOTE */
  448. // public static final int ER_EXPECTED_SINGLE_QUOTE = 27;
  449. { ER_EXPECTED_SINGLE_QUOTE,
  450. "letterale con numero di apici errato... previsto un solo apice."},
  451. /** Field ER_EMPTY_EXPRESSION */
  452. // public static final int ER_EMPTY_EXPRESSION = 28;
  453. { ER_EMPTY_EXPRESSION,
  454. "Espressione vuota."},
  455. /** Field ER_EXPECTED_BUT_FOUND */
  456. // public static final int ER_EXPECTED_BUT_FOUND = 29;
  457. { ER_EXPECTED_BUT_FOUND,
  458. "Era previsto {0}, ma \u00e8 stato trovato: {1}"},
  459. /** Field ER_INCORRECT_PROGRAMMER_ASSERTION */
  460. // public static final int ER_INCORRECT_PROGRAMMER_ASSERTION = 30;
  461. { ER_INCORRECT_PROGRAMMER_ASSERTION,
  462. "Asserzione programmatore errata. - {0}"},
  463. /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL */
  464. // public static final int ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL = 31;
  465. { ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,
  466. "Argomento boolean(...) non pi\u00f9 facoltativo con 19990709 XPath draft."},
  467. /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG */
  468. // public static final int ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG = 32;
  469. { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,
  470. "Trovata ',' senza argomento che la precede."},
  471. /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG */
  472. // public static final int ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG = 33;
  473. { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,
  474. "Trovata ',' senza argomento che la segue."},
  475. /** Field ER_PREDICATE_ILLEGAL_SYNTAX */
  476. // public static final int ER_PREDICATE_ILLEGAL_SYNTAX = 34;
  477. { ER_PREDICATE_ILLEGAL_SYNTAX,
  478. "'..[predicato]' o '.[predicato]' \u00e8 una sintassi non valida. Utilizzare 'self::node()[predicato]'."},
  479. /** Field ER_ILLEGAL_AXIS_NAME */
  480. // public static final int ER_ILLEGAL_AXIS_NAME = 35;
  481. { ER_ILLEGAL_AXIS_NAME,
  482. "nome asse non valido: {0}"},
  483. /** Field ER_UNKNOWN_NODETYPE */
  484. // public static final int ER_UNKNOWN_NODETYPE = 36;
  485. { ER_UNKNOWN_NODETYPE,
  486. "Nodetype sconosciuto: {0}"},
  487. /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED */
  488. // public static final int ER_PATTERN_LITERAL_NEEDS_BE_QUOTED = 37;
  489. { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,
  490. "Il letterale modello ({0}) deve essere racchiuso fra virgolette."},
  491. /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER */
  492. // public static final int ER_COULDNOT_BE_FORMATTED_TO_NUMBER = 38;
  493. { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,
  494. "{0} non pu\u00f2 essere formattato in un numero."},
  495. /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON */
  496. // public static final int ER_COULDNOT_CREATE_XMLPROCESSORLIAISON = 39;
  497. { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,
  498. "Impossibile creare XML TransformerFactory Liaison: {0}"},
  499. /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP */
  500. // public static final int ER_DIDNOT_FIND_XPATH_SELECT_EXP = 40;
  501. { ER_DIDNOT_FIND_XPATH_SELECT_EXP,
  502. "Errore! Impossibile trovare espressione selezione xpath (-select)."},
  503. /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH */
  504. // public static final int ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH = 41;
  505. { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,
  506. "ERRORE! Impossibile trovare ENDOP dopo OP_LOCATIONPATH"},
  507. /** Field ER_ERROR_OCCURED */
  508. // public static final int ER_ERROR_OCCURED = 42;
  509. { ER_ERROR_OCCURED,
  510. "Si \u00e8 verificato un errore."},
  511. /** Field ER_ILLEGAL_VARIABLE_REFERENCE */
  512. // public static final int ER_ILLEGAL_VARIABLE_REFERENCE = 43;
  513. { ER_ILLEGAL_VARIABLE_REFERENCE,
  514. "VariableReference fornito per la variabile \u00e8 fuori contesto o senza definizione. Nome = {0}"},
  515. /** Field ER_AXES_NOT_ALLOWED */
  516. // public static final int ER_AXES_NOT_ALLOWED = 44;
  517. { ER_AXES_NOT_ALLOWED,
  518. "Sono consentiti solo gli assi child:: e attribute:: nei modelli di corrispondenza. Violazione asse = {0}"},
  519. /** Field ER_KEY_HAS_TOO_MANY_ARGS */
  520. // public static final int ER_KEY_HAS_TOO_MANY_ARGS = 45;
  521. { ER_KEY_HAS_TOO_MANY_ARGS,
  522. "key() con numero di argomenti scorretto."},
  523. /** Field ER_COUNT_TAKES_1_ARG */
  524. // public static final int ER_COUNT_TAKES_1_ARG = 46;
  525. { ER_COUNT_TAKES_1_ARG,
  526. "La funzione count richiede un argomento."},
  527. /** Field ER_COULDNOT_FIND_FUNCTION */
  528. // public static final int ER_COULDNOT_FIND_FUNCTION = 47;
  529. { ER_COULDNOT_FIND_FUNCTION,
  530. "Impossibile trovare la funzione: {0}"},
  531. /** Field ER_UNSUPPORTED_ENCODING */
  532. // public static final int ER_UNSUPPORTED_ENCODING = 48;
  533. { ER_UNSUPPORTED_ENCODING,
  534. "Codifica non supportata: {0}"},
  535. /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING */
  536. // public static final int ER_PROBLEM_IN_DTM_NEXTSIBLING = 49;
  537. { ER_PROBLEM_IN_DTM_NEXTSIBLING,
  538. "Si \u00e8 verificato un problema in DTM durante l'esecuzione di getNextSibling... tentativo di recupero in corso"},
  539. /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL */
  540. // public static final int ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL = 50;
  541. { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,
  542. "Errore di programmazione: Impossibile scrivere su EmptyNodeList. "},
  543. /** Field ER_SETDOMFACTORY_NOT_SUPPORTED */
  544. // public static final int ER_SETDOMFACTORY_NOT_SUPPORTED = 51;
  545. { ER_SETDOMFACTORY_NOT_SUPPORTED,
  546. "setDOMFactory non supportato da XPathContext!"},
  547. /** Field ER_PREFIX_MUST_RESOLVE */
  548. // public static final int ER_PREFIX_MUST_RESOLVE = 52;
  549. { ER_PREFIX_MUST_RESOLVE,
  550. "Il prefisso deve risolvere in uno spazio nomi: {0}"},
  551. /** Field ER_PARSE_NOT_SUPPORTED */
  552. // public static final int ER_PARSE_NOT_SUPPORTED = 53;
  553. { ER_PARSE_NOT_SUPPORTED,
  554. "parse (InputSource source) non supportato in XPathContext! Impossibile aprire {0}"},
  555. /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED */
  556. // public static final int ER_CREATEDOCUMENT_NOT_SUPPORTED = 54;
  557. //{ ER_CREATEDOCUMENT_NOT_SUPPORTED,
  558. // "createDocument() not supported in XPathContext!"},
  559. /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT */
  560. // public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT = 55;
  561. //{ ER_CHILD_HAS_NO_OWNER_DOCUMENT,
  562. // "Attribute child does not have an owner document!"},
  563. /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT */
  564. // public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = 56;
  565. //{ ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,
  566. // "Attribute child does not have an owner document element!"},
  567. /** Field ER_SAX_API_NOT_HANDLED */
  568. // public static final int ER_SAX_API_NOT_HANDLED = 57;
  569. { ER_SAX_API_NOT_HANDLED,
  570. "Caratteri SAX API (char ch[]... non gestiti da DTM!"},
  571. /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED */
  572. //public static final int ER_IGNORABLE_WHITESPACE_NOT_HANDLED = 58;
  573. { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,
  574. "ignorableWhitespace(char ch[]... non gestiti da DTM!"},
  575. /** Field ER_DTM_CANNOT_HANDLE_NODES */
  576. // public static final int ER_DTM_CANNOT_HANDLE_NODES = 59;
  577. { ER_DTM_CANNOT_HANDLE_NODES,
  578. "DTMLiaison non pu\u00f2 gestire i nodi di tipo {0}"},
  579. /** Field ER_XERCES_CANNOT_HANDLE_NODES */
  580. // public static final int ER_XERCES_CANNOT_HANDLE_NODES = 60;
  581. { ER_XERCES_CANNOT_HANDLE_NODES,
  582. "DOM2Helper non pu\u00f2 gestire i nodi di tipo {0}"},
  583. /** Field ER_XERCES_PARSE_ERROR_DETAILS */
  584. // public static final int ER_XERCES_PARSE_ERROR_DETAILS = 61;
  585. { ER_XERCES_PARSE_ERROR_DETAILS,
  586. "Errore DOM2Helper.parse: SystemID - {0} riga - {1}"},
  587. /** Field ER_XERCES_PARSE_ERROR */
  588. // public static final int ER_XERCES_PARSE_ERROR = 62;
  589. { ER_XERCES_PARSE_ERROR,
  590. "Errore DOM2Helper.parse"},
  591. /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC */
  592. // public static final int ER_CANT_OUTPUT_TEXT_BEFORE_DOC = 63;
  593. //{ ER_CANT_OUTPUT_TEXT_BEFORE_DOC,
  594. // "Warning: can't output text before document element! Ignoring..."},
  595. /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT */
  596. // public static final int ER_CANT_HAVE_MORE_THAN_ONE_ROOT = 64;
  597. //{ ER_CANT_HAVE_MORE_THAN_ONE_ROOT,
  598. // "Can't have more than one root on a DOM!"},
  599. /** Field ER_INVALID_UTF16_SURROGATE */
  600. // public static final int ER_INVALID_UTF16_SURROGATE = 65;
  601. { ER_INVALID_UTF16_SURROGATE,
  602. "Rilevato surrogato UTF-16 non valido: {0} ?"},
  603. /** Field ER_OIERROR */
  604. //public static final int ER_OIERROR = 66;
  605. { ER_OIERROR,
  606. "Errore IO"},
  607. /** Field ER_CANNOT_CREATE_URL */
  608. //public static final int ER_CANNOT_CREATE_URL = 67;
  609. { ER_CANNOT_CREATE_URL,
  610. "Impossibile creare url per: {0}"},
  611. /** Field ER_XPATH_READOBJECT */
  612. // public static final int ER_XPATH_READOBJECT = 68;
  613. { ER_XPATH_READOBJECT,
  614. "In XPath.readObject: {0}"},
  615. /** Field ER_FUNCTION_TOKEN_NOT_FOUND */
  616. // public static final int ER_FUNCTION_TOKEN_NOT_FOUND = 69;
  617. { ER_FUNCTION_TOKEN_NOT_FOUND,
  618. "token funzione non trovato."},
  619. /** Argument 'localName' is null */
  620. // public static final int ER_ARG_LOCALNAME_NULL = 70;
  621. //{ ER_ARG_LOCALNAME_NULL,
  622. // "Argument 'localName' is null"},
  623. /** Can not deal with XPath type: */
  624. // public static final int ER_CANNOT_DEAL_XPATH_TYPE = 71;
  625. { ER_CANNOT_DEAL_XPATH_TYPE,
  626. "Impossibile gestire il tipo XPath: {0}"},
  627. /** This NodeSet is not mutable */
  628. // public static final int ER_NODESET_NOT_MUTABLE = 72;
  629. { ER_NODESET_NOT_MUTABLE,
  630. "Questo NodeSet non \u00e8 trasformabile"},
  631. /** This NodeSetDTM is not mutable */
  632. // public static final int ER_NODESETDTM_NOT_MUTABLE = 73;
  633. { ER_NODESETDTM_NOT_MUTABLE,
  634. "Questo NodeSetDTM non \u00e8 trasformabile"},
  635. /** Variable not resolvable: */
  636. // public static final int ER_VAR_NOT_RESOLVABLE = 74;
  637. { ER_VAR_NOT_RESOLVABLE,
  638. "Variabile non risolvibile: {0}"},
  639. /** Null error handler */
  640. // public static final int ER_NULL_ERROR_HANDLER = 75;
  641. { ER_NULL_ERROR_HANDLER,
  642. "Handler errori nullo"},
  643. /** Programmer's assertion: unknown opcode */
  644. // public static final int ER_PROG_ASSERT_UNKNOWN_OPCODE = 76;
  645. { ER_PROG_ASSERT_UNKNOWN_OPCODE,
  646. "Asserzione di programma: codice operativo sconosciuto: {0}"},
  647. /** 0 or 1 */
  648. // public static final int ER_ZERO_OR_ONE = 77;
  649. { ER_ZERO_OR_ONE,
  650. "0 oppure 1"},
  651. /** rtf() not supported by XRTreeFragSelectWrapper */
  652. //public static final int ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 78;
  653. { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
  654. "rtf() non supportato da XRTreeFragSelectWrapper"},
  655. /** asNodeIterator() not supported by XRTreeFragSelectWrapper */
  656. //public static final int ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 79;
  657. { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
  658. "asNodeIterator() non supportato da XRTreeFragSelectWrapper"},
  659. /** fsb() not supported for XStringForChars */
  660. // public static final int ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS = 80;
  661. { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,
  662. "fsb() non supportato per XStringForChars"},
  663. /** Could not find variable with the name of */
  664. // public static final int ER_COULD_NOT_FIND_VAR = 81;
  665. { ER_COULD_NOT_FIND_VAR,
  666. "Impossibile trovare la variabile con il nome {0}"},
  667. /** XStringForChars can not take a string for an argument */
  668. // public static final int ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING = 82;
  669. { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,
  670. "XStringForChars non pu\u00f2 accettare una stringa come argomento"},
  671. /** The FastStringBuffer argument can not be null */
  672. // public static final int ER_FASTSTRINGBUFFER_CANNOT_BE_NULL = 83;
  673. { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,
  674. "L'argomento FastStringBuffer non pu\u00f2 essere nullo"},
  675. /* MANTIS_XALAN CHANGE: BEGIN */
  676. /** 2 or 3 */
  677. // public static final int ER_TWO_OR_THREE = 84;
  678. { ER_TWO_OR_THREE,
  679. "2 o 3"},
  680. /** Variable accessed before it is bound! */
  681. // public static final int ER_VARIABLE_ACCESSED_BEFORE_BIND = 85;
  682. { ER_VARIABLE_ACCESSED_BEFORE_BIND,
  683. "Variabile acceduta prima che fosse delimitata."},
  684. /** XStringForFSB can not take a string for an argument! */
  685. // public static final int ER_FSB_CANNOT_TAKE_STRING = 86;
  686. { ER_FSB_CANNOT_TAKE_STRING,
  687. "XStringForFSB non pu\u00f2 accettare una stringa come argomento. "},
  688. /** Error! Setting the root of a walker to null! */
  689. // public static final int ER_SETTING_WALKER_ROOT_TO_NULL = 87;
  690. { ER_SETTING_WALKER_ROOT_TO_NULL,
  691. "\n !!!! Errore! Si sta impostando il nodo di partenza su null"},
  692. /** This NodeSetDTM can not iterate to a previous node! */
  693. // public static final int ER_NODESETDTM_CANNOT_ITERATE = 88;
  694. { ER_NODESETDTM_CANNOT_ITERATE,
  695. "NodeSetDTM non pu\u00f2 collegarsi al nodo precedente"},
  696. /** This NodeSet can not iterate to a previous node! */
  697. // public static final int ER_NODESET_CANNOT_ITERATE = 89;
  698. { ER_NODESET_CANNOT_ITERATE,
  699. "NodeSet non pu\u00f2 collegarsi al nodo precedente"},
  700. /** This NodeSetDTM can not do indexing or counting functions! */
  701. // public static final int ER_NODESETDTM_CANNOT_INDEX = 90;
  702. { ER_NODESETDTM_CANNOT_INDEX,
  703. "NodeSetDTM non pu\u00f2 eseguire l'indicizzazione o il conteggio delle funzioni."},
  704. /** This NodeSet can not do indexing or counting functions! */
  705. // public static final int ER_NODESET_CANNOT_INDEX = 91;
  706. { ER_NODESET_CANNOT_INDEX,
  707. "NodeSet non pu\u00f2 eseguire l'indicizzazione o il conteggio delle funzioni."},
  708. /** Can not call setShouldCacheNodes after nextNode has been called! */
  709. // public static final int ER_CANNOT_CALL_SETSHOULDCACHENODE = 92;
  710. { ER_CANNOT_CALL_SETSHOULDCACHENODE,
  711. "Impossibile chiamare setShouldCacheNodes dopo aver chiamato nextNode."},
  712. /** {0} only allows {1} arguments */
  713. // public static final int ER_ONLY_ALLOWS = 93;
  714. { ER_ONLY_ALLOWS,
  715. "{0} consente solo {1} argomenti"},
  716. /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */
  717. // public static final int ER_UNKNOWN_STEP = 94;
  718. { ER_UNKNOWN_STEP,
  719. "Asserzione di programma in getNextStepPos: stepType sconosciuto: {0}"},
  720. //Note to translators: A relative location path is a form of XPath expression.
  721. // The message indicates that such an expression was expected following the
  722. // characters '/' or '//', but was not found.
  723. /** Problem with RelativeLocationPath */
  724. // public static final int ER_EXPECTED_REL_LOC_PATH = 95;
  725. { ER_EXPECTED_REL_LOC_PATH,
  726. "Era previsto un percorso relativo dopo il token '/' oppure '//'. "},
  727. // Note to translators: A location path is a form of XPath expression.
  728. // The message indicates that syntactically such an expression was expected,but
  729. // the characters specified by the substitution text were encountered instead.
  730. /** Problem with LocationPath */
  731. // public static final int ER_EXPECTED_LOC_PATH = 96;
  732. { ER_EXPECTED_LOC_PATH,
  733. "Era previsto un percorso, ma \u00e8 stato rilevato il seguente token\u003a {0}"},
  734. // Note to translators: A location step is part of an XPath expression.
  735. // The message indicates that syntactically such an expression was expected
  736. // following the specified characters.
  737. /** Problem with Step */
  738. // public static final int ER_EXPECTED_LOC_STEP = 97;
  739. { ER_EXPECTED_LOC_STEP,
  740. "Era previsto un passo di posizione dopo il token '/' oppure '//'. "},
  741. // Note to translators: A node test is part of an XPath expression that is
  742. // used to test for particular kinds of nodes. In this case, a node test that
  743. // consists of an NCName followed by a colon and an asterisk or that consists
  744. // of a QName was expected, but was not found.
  745. /** Problem with NodeTest */
  746. // public static final int ER_EXPECTED_NODE_TEST = 98;
  747. { ER_EXPECTED_NODE_TEST,
  748. "Era prevista una prova nodo che corrisponde a NCName:* oppure a QName. "},
  749. // Note to translators: A step pattern is part of an XPath expression.
  750. // The message indicates that syntactically such an expression was expected,
  751. // but the specified character was found in the expression instead.
  752. /** Expected step pattern */
  753. // public static final int ER_EXPECTED_STEP_PATTERN = 99;
  754. { ER_EXPECTED_STEP_PATTERN,
  755. "Era previsto un modello passo, ma \u00e8 stato rilevato '/'. "},
  756. // Note to translators: A relative path pattern is part of an XPath expression.
  757. // The message indicates that syntactically such an expression was expected,
  758. // but was not found.
  759. /** Expected relative path pattern */
  760. // public static final int ER_EXPECTED_REL_PATH_PATTERN = 100;
  761. { ER_EXPECTED_REL_PATH_PATTERN,
  762. "Era previsto un modello percorso relativo. "},
  763. // Note to translators: A QNAME has the syntactic form [NCName:]NCName
  764. // The localname is the portion after the optional colon; the message indicates
  765. // that there is a problem with that part of the QNAME.
  766. /** localname in QNAME should be a valid NCName */
  767. // public static final int ER_ARG_LOCALNAME_INVALID = 101;
  768. //{ ER_ARG_LOCALNAME_INVALID,
  769. // "Localname in QNAME should be a valid NCName"},
  770. // Note to translators: A QNAME has the syntactic form [NCName:]NCName
  771. // The prefix is the portion before the optional colon; the message indicates
  772. // that there is a problem with that part of the QNAME.
  773. /** prefix in QNAME should be a valid NCName */
  774. // public static final int ER_ARG_PREFIX_INVALID = 102;
  775. //{ ER_ARG_PREFIX_INVALID,
  776. // "Prefix in QNAME should be a valid NCName"},
  777. // Note to translators: The substitution text is the name of a data type. The
  778. // message indicates that a value of a particular type could not be converted
  779. // to a value of type string.
  780. /** Field ER_CANT_CONVERT_TO_BOOLEAN */
  781. // public static final int ER_CANT_CONVERT_TO_BOOLEAN = 103;
  782. { ER_CANT_CONVERT_TO_BOOLEAN,
  783. "Impossibile convertire {0} in un booleano. "},
  784. // Note to translators: Do not translate ANY_UNORDERED_NODE_TYPE and
  785. // FIRST_ORDERED_NODE_TYPE.
  786. /** Field ER_CANT_CONVERT_TO_SINGLENODE */
  787. //public static final int ER_CANT_CONVERT_TO_SINGLENODE = 104;
  788. { ER_CANT_CONVERT_TO_SINGLENODE,
  789. "Impossibile convertire {0} in un nodo singolo. Questo getter si applica ai tipi ANY_UNORDERED_NODE_TYPE e FIRST_ORDERED_NODE_TYPE."},
  790. // Note to translators: Do not translate UNORDERED_NODE_SNAPSHOT_TYPE and
  791. // ORDERED_NODE_SNAPSHOT_TYPE.
  792. /** Field ER_CANT_GET_SNAPSHOT_LENGTH */
  793. // public static final int ER_CANT_GET_SNAPSHOT_LENGTH = 105;
  794. { ER_CANT_GET_SNAPSHOT_LENGTH,
  795. "Impossibile richiamare la lunghezza istantanea per il tipo: {0}. Questo getter si applica ai tipi UNORDERED_NODE_SNAPSHOT_TYPE e ORDERED_NODE_SNAPSHOT_TYPE."},
  796. /** Field ER_NON_ITERATOR_TYPE */
  797. //public static final int ER_NON_ITERATOR_TYPE = 106;
  798. { ER_NON_ITERATOR_TYPE,
  799. "Impossibile collegarsi ad un tipo non iteratore: {0}"},
  800. // Note to translators: This message indicates that the document being operated
  801. // upon changed, so the iterator object that was being used to traverse the
  802. // document has now become invalid.
  803. /** Field ER_DOC_MUTATED */
  804. // public static final int ER_DOC_MUTATED = 107;
  805. { ER_DOC_MUTATED,
  806. "Documento modificato da quando \u00e8 stato restituito il risultato. Iteratore non valido. "},
  807. /** Field ER_INVALID_XPATH_TYPE */
  808. // public static final int ER_INVALID_XPATH_TYPE = 108;
  809. { ER_INVALID_XPATH_TYPE,
  810. "Argomento di tipo XPath non valido: {0}"},
  811. /** Field ER_EMPTY_XPATH_RESULT */
  812. // public static final int ER_EMPTY_XPATH_RESULT = 109;
  813. { ER_EMPTY_XPATH_RESULT,
  814. "Oggetto risultato XPath vuoto "},
  815. /** Field ER_INCOMPATIBLE_TYPES */
  816. // public static final int ER_INCOMPATIBLE_TYPES = 110;
  817. { ER_INCOMPATIBLE_TYPES,
  818. "Il tipo restituito: {0} non pu\u00f2 essere forzato nel tipo specificato: {1}"},
  819. /** Field ER_NULL_RESOLVER */
  820. // public static final int ER_NULL_RESOLVER = 111;
  821. { ER_NULL_RESOLVER,
  822. "Impossibile risolvere il prefisso con resolver di prefisso nullo. "},
  823. // Note to translators: The substitution text is the name of a data type. The
  824. // message indicates that a value of a particular type could not be converted
  825. // to a value of type string.
  826. /** Field ER_CANT_CONVERT_TO_STRING */
  827. // public static final int ER_CANT_CONVERT_TO_STRING = 112;
  828. { ER_CANT_CONVERT_TO_STRING,
  829. "Impossibile convertire {0} in una stringa. "},
  830. // Note to translators: Do not translate snapshotItem,
  831. // UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE.
  832. /** Field ER_NON_SNAPSHOT_TYPE */
  833. // public static final int ER_NON_SNAPSHOT_TYPE = 113;
  834. { ER_NON_SNAPSHOT_TYPE,
  835. "Impossibile richiamare snapshotItem sul tipo: {0}. Questo metodo si applica ai tipi UNORDERED_NODE_SNAPSHOT_TYPE e ORDERED_NODE_SNAPSHOT_TYPE."},
  836. // Note to translators: XPathEvaluator is a Java interface name. An
  837. // XPathEvaluator is created with respect to a particular XML document, and in
  838. // this case the expression represented by this object was being evaluated with
  839. // respect to a context node from a different document.
  840. /** Field ER_WRONG_DOCUMENT */
  841. // public static final int ER_WRONG_DOCUMENT = 114;
  842. { ER_WRONG_DOCUMENT,
  843. "Il nodo di contesto non appartiene al documento collegato a questo XPathEvaluator."},
  844. // Note to translators: The XPath expression cannot be evaluated with respect
  845. // to this type of node.
  846. /** Field ER_WRONG_NODETYPE */
  847. // public static final int ER_WRONG_NODETYPE = 115;
  848. { ER_WRONG_NODETYPE,
  849. "Il tipo di nodo di contesto non \u00e8 supportato. "},
  850. /** Field ER_XPATH_ERROR */
  851. // public static final int ER_XPATH_ERROR = 116;
  852. { ER_XPATH_ERROR,
  853. "Errore sconosciuto in XPath."},
  854. // Warnings...
  855. /** Field WG_LOCALE_NAME_NOT_HANDLED */
  856. // public static final int WG_LOCALE_NAME_NOT_HANDLED = 1;
  857. { WG_LOCALE_NAME_NOT_HANDLED,
  858. "nome locale nella funzione format-number non ancora gestito."},
  859. /** Field WG_PROPERTY_NOT_SUPPORTED */
  860. // public static final int WG_PROPERTY_NOT_SUPPORTED = 2;
  861. { WG_PROPERTY_NOT_SUPPORTED,
  862. "Propriet\u00e0 XSL non supportata: {0}"},
  863. /** Field WG_DONT_DO_ANYTHING_WITH_NS */
  864. // public static final int WG_DONT_DO_ANYTHING_WITH_NS = 3;
  865. { WG_DONT_DO_ANYTHING_WITH_NS,
  866. "Non eseguire alcune azione per lo spazio nomi {0} nella propriet\u00e0: {1}"},
  867. /** Field WG_SECURITY_EXCEPTION */
  868. // public static final int WG_SECURITY_EXCEPTION = 4;
  869. { WG_SECURITY_EXCEPTION,
  870. "SecurityException durante il tentativo di accesso alla propriet\u00e0 di sistema XSL: {0}"},
  871. /** Field WG_QUO_NO_LONGER_DEFINED */
  872. // public static final int WG_QUO_NO_LONGER_DEFINED = 5;
  873. { WG_QUO_NO_LONGER_DEFINED,
  874. "Sintassi obsoleta: quo(...) non \u00e8 pi\u00f9 definito in XPath."},
  875. /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST */
  876. // public static final int WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST = 6;
  877. { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,
  878. "XPath richiede un oggetto derivato per implementare nodeTest!"},
  879. /** Field WG_FUNCTION_TOKEN_NOT_FOUND */
  880. // public static final int WG_FUNCTION_TOKEN_NOT_FOUND = 7;
  881. { WG_FUNCTION_TOKEN_NOT_FOUND,
  882. "token funzione non trovato."},
  883. /** Field WG_COULDNOT_FIND_FUNCTION */
  884. // public static final int WG_COULDNOT_FIND_FUNCTION = 8;
  885. { WG_COULDNOT_FIND_FUNCTION,
  886. "Impossibile trovare la funzione: {0}"},
  887. /** Field WG_CANNOT_MAKE_URL_FROM */
  888. // public static final int WG_CANNOT_MAKE_URL_FROM = 9;
  889. { WG_CANNOT_MAKE_URL_FROM,
  890. "Impossibile ricavare l''URL da: {0}"},
  891. /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED */
  892. // public static final int WG_EXPAND_ENTITIES_NOT_SUPPORTED = 10;
  893. { WG_EXPAND_ENTITIES_NOT_SUPPORTED,
  894. "Opzione -E non supportata per il parser DTM"},
  895. /** Field WG_ILLEGAL_VARIABLE_REFERENCE */
  896. // public static final int WG_ILLEGAL_VARIABLE_REFERENCE = 11;
  897. { WG_ILLEGAL_VARIABLE_REFERENCE,
  898. "VariableReference fornito per la variabile \u00e8 fuori contesto o senza definizione. Nome = {0}"},
  899. /** Field WG_UNSUPPORTED_ENCODING */
  900. // public static final int WG_UNSUPPORTED_ENCODING = 12;
  901. { WG_UNSUPPORTED_ENCODING,
  902. "Codifica non supportata: {0}"},
  903. // Other miscellaneous text used inside the code...
  904. { "ui_language", "it"},
  905. { "help_language", "it"},
  906. { "language", "it"},
  907. { "BAD_CODE", "Il parametro per createMessage fuori limite"},
  908. { "FORMAT_FAILED", "Rilevata eccezione durante la chiamata messageFormat"},
  909. { "version", ">>>>>>> Versione Xalan "},
  910. { "version2", "<<<<<<<"},
  911. { "yes", "s\u00ec"},
  912. { "line", "Riga #"},
  913. { "column", "Colonna #"},
  914. { "xsldone", "XSLProcessor: eseguito"},
  915. { "xpath_option", "opzioni xpath: "},
  916. { "optionIN", " [-in inputXMLURL]"},
  917. { "optionSelect", " [-select espressione xpath]"},
  918. { "optionMatch", " [-match associa il modello (per le diagnostiche di corrispondenza)]"},
  919. { "optionAnyExpr", "Oppure per un'espressione xpath eseguir\u00e0 un dump diagnostico"},
  920. { "noParsermsg1", "Elaborazione XSL non riuscita."},
  921. { "noParsermsg2", "** Impossibile trovare il parser **"},
  922. { "noParsermsg3", "Controllare il classpath."},
  923. { "noParsermsg4", "Se non si possiede IBM XML Parser per Java, \u00e8 possibile scaricarlo da"},
  924. { "noParsermsg5", "IBM AlphaWorks: http://www.alphaworks.ibm.com/formula/xml"},
  925. { "gtone", ">1" },
  926. { "zero", "0" },
  927. { "one", "1" },
  928. { "two" , "2" },
  929. { "three", "3" }
  930. };
  931. // ================= INFRASTRUCTURE ======================
  932. /** Field BAD_CODE */
  933. public static final String BAD_CODE = "BAD_CODE";
  934. /** Field FORMAT_FAILED */
  935. public static final String FORMAT_FAILED = "FORMAT_FAILED";
  936. /** Field ERROR_RESOURCES */
  937. public static final String ERROR_RESOURCES =
  938. "com.sun.org.apache.xpath.internal.res.XPATHErrorResources";
  939. /** Field ERROR_STRING */
  940. public static final String ERROR_STRING = "#errore";
  941. /** Field ERROR_HEADER */
  942. public static final String ERROR_HEADER = "Errore: ";
  943. /** Field WARNING_HEADER */
  944. public static final String WARNING_HEADER = "Avvertenza: ";
  945. /** Field XSL_HEADER */
  946. public static final String XSL_HEADER = "XSL ";
  947. /** Field XML_HEADER */
  948. public static final String XML_HEADER = "XML ";
  949. /** Field QUERY_HEADER */
  950. public static final String QUERY_HEADER = "MODELLO ";
  951. /**
  952. * Get the association list.
  953. *
  954. * @return The association list.
  955. */
  956. public Object[][] getContents()
  957. {
  958. return contents;
  959. }
  960. /**
  961. * Return a named ResourceBundle for a particular locale. This method mimics the behavior
  962. * of ResourceBundle.getBundle().
  963. *
  964. * @param res the name of the resource to load.
  965. * @param locale the locale to prefer when searching for the bundle
  966. *
  967. * @param className Name of local-specific subclass.
  968. * @return the ResourceBundle
  969. * @throws MissingResourceException
  970. */
  971. public static final XPATHErrorResources loadResourceBundle(String className)
  972. throws MissingResourceException
  973. {
  974. Locale locale = Locale.getDefault();
  975. String suffix = getResourceSuffix(locale);
  976. try
  977. {
  978. // first try with the given locale
  979. return (XPATHErrorResources) ResourceBundle.getBundle(className
  980. + suffix, locale);
  981. }
  982. catch (MissingResourceException e)
  983. {
  984. try // try to fall back to en_US if we can't load
  985. {
  986. // Since we can't find the localized property file,
  987. // fall back to en_US.
  988. return (XPATHErrorResources) ResourceBundle.getBundle(className,
  989. new Locale("it", "IT"));
  990. }
  991. catch (MissingResourceException e2)
  992. {
  993. // Now we are really in trouble.
  994. // very bad, definitely very bad...not going to get very far
  995. throw new MissingResourceException(
  996. "Could not load any resource bundles.", className, "");
  997. }
  998. }
  999. }
  1000. /**
  1001. * Return the resource file suffic for the indicated locale
  1002. * For most locales, this will be based the language code. However
  1003. * for Chinese, we do distinguish between Taiwan and PRC
  1004. *
  1005. * @param locale the locale
  1006. * @return an String suffix which canbe appended to a resource name
  1007. */
  1008. private static final String getResourceSuffix(Locale locale)
  1009. {
  1010. String suffix = "_" + locale.getLanguage();
  1011. String country = locale.getCountry();
  1012. if (country.equals("TW"))
  1013. suffix += "_" + country;
  1014. return suffix;
  1015. }
  1016. }