1. /*
  2. * @(#)XPATHErrorResources_it.java 1.4 03/05/01
  3. * The Apache Software License, Version 1.1
  4. *
  5. *
  6. * Copyright (c) 1999 The Apache Software Foundation. All rights
  7. * reserved.
  8. *
  9. * Redistribution and use in source and binary forms, with or without
  10. * modification, are permitted provided that the following conditions
  11. * are met:
  12. *
  13. * 1. Redistributions of source code must retain the above copyright
  14. * notice, this list of conditions and the following disclaimer.
  15. *
  16. * 2. Redistributions in binary form must reproduce the above copyright
  17. * notice, this list of conditions and the following disclaimer in
  18. * the documentation and/or other materials provided with the
  19. * distribution.
  20. *
  21. * 3. The end-user documentation included with the redistribution,
  22. * if any, must include the following acknowledgment:
  23. * "This product includes software developed by the
  24. * Apache Software Foundation (http://www.apache.org/)."
  25. * Alternately, this acknowledgment may appear in the software itself,
  26. * if and wherever such third-party acknowledgments normally appear.
  27. *
  28. * 4. The names "Xalan" and "Apache Software Foundation" must
  29. * not be used to endorse or promote products derived from this
  30. * software without prior written permission. For written
  31. * permission, please contact apache@apache.org.
  32. *
  33. * 5. Products derived from this software may not be called "Apache",
  34. * nor may "Apache" appear in their name, without prior written
  35. * permission of the Apache Software Foundation.
  36. *
  37. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  38. * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  39. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  40. * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  41. * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  42. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  43. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  44. * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  45. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  46. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  47. * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  48. * SUCH DAMAGE.
  49. * ====================================================================
  50. *
  51. * This software consists of voluntary contributions made by many
  52. * individuals on behalf of the Apache Software Foundation and was
  53. * originally based on software copyright (c) 2002, Sun Microsystems,
  54. * Inc., http://www.sun.com. For more
  55. * information on the Apache Software Foundation, please see
  56. * <http://www.apache.org/>.
  57. */
  58. package org.apache.xpath.res;
  59. import org.apache.xml.utils.res.XResourceBundleBase;
  60. import java.util.*;
  61. import java.text.DecimalFormat;
  62. /**
  63. * <meta name="usage" content="advanced"/>
  64. * Set up error messages.
  65. * We build a two dimensional array of message keys and
  66. * message strings. In order to add a new message here,
  67. * you need to first add a Static string constant for the
  68. * Key and update the contents array with Key, Value pair
  69. * Also you need to update the count of messages(MAX_CODE)or
  70. * the count of warnings(MAX_WARNING) [ Information purpose only]
  71. */
  72. public class XPATHErrorResources_it extends XPATHErrorResources
  73. {
  74. /** Field MAX_CODE */
  75. public static final int MAX_CODE = 116; // this is needed to keep track of the number of messages
  76. /** Field MAX_WARNING */
  77. public static final int MAX_WARNING = 11; // this is needed to keep track of the number of warnings
  78. /** Field MAX_OTHERS */
  79. public static final int MAX_OTHERS = 20;
  80. /** Field MAX_MESSAGES */
  81. public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;
  82. // Error messages...
  83. public static final Object[][] contents = {
  84. /** Field ERROR0000 */
  85. //public static final int ERROR0000 = 0;
  86. {
  87. "ERROR0000", "{0}"},
  88. /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH */
  89. //public static final int ER_CURRENT_NOT_ALLOWED_IN_MATCH = 1;
  90. {
  91. ER_CURRENT_NOT_ALLOWED_IN_MATCH,
  92. "La funzione current() non \u00e8 consentita in un criterio di corrispondenza."},
  93. /** Field ER_CURRENT_TAKES_NO_ARGS */
  94. //public static final int ER_CURRENT_TAKES_NO_ARGS = 2;
  95. {
  96. ER_CURRENT_TAKES_NO_ARGS,
  97. "La funzione current() non accetta argomenti."},
  98. /** Field ER_DOCUMENT_REPLACED */
  99. //public static final int ER_DOCUMENT_REPLACED = 3;
  100. {
  101. ER_DOCUMENT_REPLACED,
  102. "L'implementazione della funzione document() \u00e8 stata sostituita da org.apache.xalan.xslt.FuncDocument."},
  103. /** Field ER_CONTEXT_HAS_NO_OWNERDOC */
  104. //public static final int ER_CONTEXT_HAS_NO_OWNERDOC = 4;
  105. {
  106. ER_CONTEXT_HAS_NO_OWNERDOC,
  107. "Il contesto non ha un documento proprietario."},
  108. /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS */
  109. //public static final int ER_LOCALNAME_HAS_TOO_MANY_ARGS = 5;
  110. {
  111. ER_LOCALNAME_HAS_TOO_MANY_ARGS,
  112. "local-name() ha troppi argomenti."},
  113. /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS */
  114. //public static final int ER_NAMESPACEURI_HAS_TOO_MANY_ARGS = 6;
  115. {
  116. ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,
  117. "namespace-uri() ha troppi argomenti."},
  118. /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS */
  119. //public static final int ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS = 7;
  120. {
  121. ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,
  122. "normalize-space() ha troppi argomenti."},
  123. /** Field ER_NUMBER_HAS_TOO_MANY_ARGS */
  124. //public static final int ER_NUMBER_HAS_TOO_MANY_ARGS = 8;
  125. {
  126. ER_NUMBER_HAS_TOO_MANY_ARGS,
  127. "number() ha troppi argomenti."},
  128. /** Field ER_NAME_HAS_TOO_MANY_ARGS */
  129. //public static final int ER_NAME_HAS_TOO_MANY_ARGS = 9;
  130. {
  131. ER_NAME_HAS_TOO_MANY_ARGS, "name() ha troppi argomenti."},
  132. /** Field ER_STRING_HAS_TOO_MANY_ARGS */
  133. //public static final int ER_STRING_HAS_TOO_MANY_ARGS = 10;
  134. {
  135. ER_STRING_HAS_TOO_MANY_ARGS,
  136. "string() ha troppi argomenti."},
  137. /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS */
  138. //public static final int ER_STRINGLENGTH_HAS_TOO_MANY_ARGS = 11;
  139. {
  140. ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,
  141. "string-length() ha troppi argomenti."},
  142. /** Field ER_TRANSLATE_TAKES_3_ARGS */
  143. //public static final int ER_TRANSLATE_TAKES_3_ARGS = 12;
  144. {
  145. ER_TRANSLATE_TAKES_3_ARGS,
  146. "La funzione translate() richiede tre argomenti."},
  147. /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG */
  148. //public static final int ER_UNPARSEDENTITYURI_TAKES_1_ARG = 13;
  149. {
  150. ER_UNPARSEDENTITYURI_TAKES_1_ARG,
  151. "La funzione unparsed-entity-uri richiede un argomento."},
  152. /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED */
  153. //public static final int ER_NAMESPACEAXIS_NOT_IMPLEMENTED = 14;
  154. {
  155. ER_NAMESPACEAXIS_NOT_IMPLEMENTED,
  156. "Asse namespace non ancora implementato."},
  157. /** Field ER_UNKNOWN_AXIS */
  158. //public static final int ER_UNKNOWN_AXIS = 15;
  159. {
  160. ER_UNKNOWN_AXIS, "Asse sconosciuto: {0}"},
  161. /** Field ER_UNKNOWN_MATCH_OPERATION */
  162. //public static final int ER_UNKNOWN_MATCH_OPERATION = 16;
  163. {
  164. ER_UNKNOWN_MATCH_OPERATION, "Operazione di corrispondenza sconosciuta."},
  165. /** Field ER_INCORRECT_ARG_LENGTH */
  166. //public static final int ER_INCORRECT_ARG_LENGTH = 17;
  167. {
  168. ER_INCORRECT_ARG_LENGTH,
  169. "La lunghezza argomento del test di nodo di processing-instruction() non \u00e8 corretta."},
  170. /** Field ER_CANT_CONVERT_TO_NUMBER */
  171. //public static final int ER_CANT_CONVERT_TO_NUMBER = 18;
  172. {
  173. ER_CANT_CONVERT_TO_NUMBER,
  174. "Impossibile convertire {0} in un numero."},
  175. /** Field ER_CANT_CONVERT_TO_NODELIST */
  176. //public static final int ER_CANT_CONVERT_TO_NODELIST = 19;
  177. {
  178. ER_CANT_CONVERT_TO_NODELIST,
  179. "Impossibile convertire {0} in NodeList."},
  180. /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST */
  181. //public static final int ER_CANT_CONVERT_TO_MUTABLENODELIST = 20;
  182. {
  183. ER_CANT_CONVERT_TO_MUTABLENODELIST,
  184. "Impossibile convertire {0} in NodeSetDTM."},
  185. /** Field ER_CANT_CONVERT_TO_TYPE */
  186. //public static final int ER_CANT_CONVERT_TO_TYPE = 21;
  187. {
  188. ER_CANT_CONVERT_TO_TYPE,
  189. "Impossibile convertire {0} in tipo//{1}"},
  190. /** Field ER_EXPECTED_MATCH_PATTERN */
  191. //public static final int ER_EXPECTED_MATCH_PATTERN = 22;
  192. {
  193. ER_EXPECTED_MATCH_PATTERN,
  194. "Previsto criterio di corrispondenza in getMatchScore."},
  195. /** Field ER_COULDNOT_GET_VAR_NAMED */
  196. //public static final int ER_COULDNOT_GET_VAR_NAMED = 23;
  197. {
  198. ER_COULDNOT_GET_VAR_NAMED,
  199. "Impossibile trovare la variabile denominata {0}"},
  200. /** Field ER_UNKNOWN_OPCODE */
  201. //public static final int ER_UNKNOWN_OPCODE = 24;
  202. {
  203. ER_UNKNOWN_OPCODE, "ERRORE. Codice operativo sconosciuto: {0}"},
  204. /** Field ER_EXTRA_ILLEGAL_TOKENS */
  205. //public static final int ER_EXTRA_ILLEGAL_TOKENS = 25;
  206. {
  207. ER_EXTRA_ILLEGAL_TOKENS, "Altri token non validi: {0}"},
  208. /** Field ER_EXPECTED_DOUBLE_QUOTE */
  209. //public static final int ER_EXPECTED_DOUBLE_QUOTE = 26;
  210. {
  211. ER_EXPECTED_DOUBLE_QUOTE,
  212. "Letterale non corretto... previste le doppie virgolette."},
  213. /** Field ER_EXPECTED_SINGLE_QUOTE */
  214. //public static final int ER_EXPECTED_SINGLE_QUOTE = 27;
  215. {
  216. ER_EXPECTED_SINGLE_QUOTE,
  217. "Letterale non corretto... previste le virgolette singole."},
  218. /** Field ER_EMPTY_EXPRESSION */
  219. //public static final int ER_EMPTY_EXPRESSION = 28;
  220. {
  221. ER_EMPTY_EXPRESSION, "Espressione vuota."},
  222. /** Field ER_EXPECTED_BUT_FOUND */
  223. //public static final int ER_EXPECTED_BUT_FOUND = 29;
  224. {
  225. ER_EXPECTED_BUT_FOUND, "Previsto {0}, trovato: {1}"},
  226. /** Field ER_INCORRECT_PROGRAMMER_ASSERTION */
  227. //public static final int ER_INCORRECT_PROGRAMMER_ASSERTION = 30;
  228. {
  229. ER_INCORRECT_PROGRAMMER_ASSERTION,
  230. "L''asserzione di programmazione non \u00e8 corretta. - {0}"},
  231. /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL */
  232. //public static final int ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL = 31;
  233. {
  234. ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,
  235. "L'argomento booleano(...) non \u00e8 pi\u00f9 opzionale con 19990709 XPath draft."},
  236. /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG */
  237. //public static final int ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG = 32;
  238. {
  239. ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,
  240. "Trovato ',' ma senza argomento precedente."},
  241. /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG */
  242. //public static final int ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG = 33;
  243. {
  244. ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,
  245. "Trovato ',' ma senza argomento successivo."},
  246. /** Field ER_PREDICATE_ILLEGAL_SYNTAX */
  247. //public static final int ER_PREDICATE_ILLEGAL_SYNTAX = 34;
  248. {
  249. ER_PREDICATE_ILLEGAL_SYNTAX,
  250. "'.. la sintassi [predicato]' o '.[predicato]' non \u00e8 valida. Utilizzare 'self::node()[predicato]'."},
  251. /** Field ER_ILLEGAL_AXIS_NAME */
  252. //public static final int ER_ILLEGAL_AXIS_NAME = 35;
  253. {
  254. ER_ILLEGAL_AXIS_NAME, "Nome di asse non valido: {0}"},
  255. /** Field ER_UNKNOWN_NODETYPE */
  256. //public static final int ER_UNKNOWN_NODETYPE = 36;
  257. {
  258. ER_UNKNOWN_NODETYPE, "Tipo di nodo sconosciuto: {0}"},
  259. /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED */
  260. //public static final int ER_PATTERN_LITERAL_NEEDS_BE_QUOTED = 37;
  261. {
  262. ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,
  263. "Il criterio letterale ({0}) deve essere tra virgolette."},
  264. /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER */
  265. //public static final int ER_COULDNOT_BE_FORMATTED_TO_NUMBER = 38;
  266. {
  267. ER_COULDNOT_BE_FORMATTED_TO_NUMBER,
  268. "Impossibile formattare {0} in un numero."},
  269. /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON */
  270. //public static final int ER_COULDNOT_CREATE_XMLPROCESSORLIAISON = 39;
  271. {
  272. ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,
  273. "Impossibile creare il collegamento XML TransformerFactory: {0}"},
  274. /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP */
  275. //public static final int ER_DIDNOT_FIND_XPATH_SELECT_EXP = 40;
  276. {
  277. ER_DIDNOT_FIND_XPATH_SELECT_EXP,
  278. "Errore. Impossibile trovare l'espressione di selezione xpath (-select)."},
  279. /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH */
  280. //public static final int ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH = 41;
  281. {
  282. ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,
  283. "ERRORE. Impossibile trovare ENDOP dopo OP_LOCATIONPATH"},
  284. /** Field ER_ERROR_OCCURED */
  285. //public static final int ER_ERROR_OCCURED = 42;
  286. {
  287. ER_ERROR_OCCURED, "Errore"},
  288. /** Field ER_ILLEGAL_VARIABLE_REFERENCE */
  289. //public static final int ER_ILLEGAL_VARIABLE_REFERENCE = 43;
  290. {
  291. ER_ILLEGAL_VARIABLE_REFERENCE,
  292. "VariableReference fornito per la variabile \u00e8 esterno al contesto o senza definizione. Nome = {0}"},
  293. /** Field ER_AXES_NOT_ALLOWED */
  294. //public static final int ER_AXES_NOT_ALLOWED = 44;
  295. {
  296. ER_AXES_NOT_ALLOWED,
  297. "Nei criteri di corrispondenza sono consentiti solo gli assi child:: e attribute::. Assi non validi = {0}"},
  298. /** Field ER_KEY_HAS_TOO_MANY_ARGS */
  299. //public static final int ER_KEY_HAS_TOO_MANY_ARGS = 45;
  300. {
  301. ER_KEY_HAS_TOO_MANY_ARGS,
  302. "key() ha un numero di argomenti non valido."},
  303. /** Field ER_COUNT_TAKES_1_ARG */
  304. //public static final int ER_COUNT_TAKES_1_ARG = 46;
  305. {
  306. ER_COUNT_TAKES_1_ARG,
  307. "La funzione di conteggio deve prendere un argomento."},
  308. /** Field ER_COULDNOT_FIND_FUNCTION */
  309. //public static final int ER_COULDNOT_FIND_FUNCTION = 47;
  310. {
  311. ER_COULDNOT_FIND_FUNCTION, "Impossibile trovare la funzione: {0}"},
  312. /** Field ER_UNSUPPORTED_ENCODING */
  313. //public static final int ER_UNSUPPORTED_ENCODING = 48;
  314. {
  315. ER_UNSUPPORTED_ENCODING, "Codifica non supportata: {0}"},
  316. /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING */
  317. //public static final int ER_PROBLEM_IN_DTM_NEXTSIBLING = 49;
  318. {
  319. ER_PROBLEM_IN_DTM_NEXTSIBLING,
  320. "Problema in DTM in getNextSibling... Tentativo di recupero in corso."},
  321. /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL */
  322. //public static final int ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL = 50;
  323. {
  324. ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,
  325. "Errore di programmazione: impossibile scrivere in EmptyNodeList."},
  326. /** Field ER_SETDOMFACTORY_NOT_SUPPORTED */
  327. //public static final int ER_SETDOMFACTORY_NOT_SUPPORTED = 51;
  328. {
  329. ER_SETDOMFACTORY_NOT_SUPPORTED,
  330. "setDOMFactory non \u00e8 supportato da XPathContext."},
  331. /** Field ER_PREFIX_MUST_RESOLVE */
  332. //public static final int ER_PREFIX_MUST_RESOLVE = 52;
  333. {
  334. ER_PREFIX_MUST_RESOLVE,
  335. "Il prefisso deve risolvere in namespace: {0}"},
  336. /** Field ER_PARSE_NOT_SUPPORTED */
  337. //public static final int ER_PARSE_NOT_SUPPORTED = 53;
  338. {
  339. ER_PARSE_NOT_SUPPORTED,
  340. "analisi (sorgente InputSource) non supportata in XPathContext. Impossibile aprire {0}"},
  341. /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED */
  342. //public static final int ER_CREATEDOCUMENT_NOT_SUPPORTED = 54;
  343. {
  344. ER_CREATEDOCUMENT_NOT_SUPPORTED,
  345. "createDocument() non supportato in XPathContext."},
  346. /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT */
  347. //public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT = 55;
  348. {
  349. ER_CHILD_HAS_NO_OWNER_DOCUMENT,
  350. "L'elemento secondario dell'attributo non ha un documento di propriet\u00e0."},
  351. /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT */
  352. //public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = 56;
  353. {
  354. ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,
  355. "L'elemento secondario dell'attributo non ha un elemento del documento di propriet\u00e0."},
  356. /** Field ER_SAX_API_NOT_HANDLED */
  357. //public static final int ER_SAX_API_NOT_HANDLED = 57;
  358. {
  359. ER_SAX_API_NOT_HANDLED,
  360. "Caratteri SAX API (char ch[]... non gestiti da DTM."},
  361. /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED */
  362. //public static final int ER_IGNORABLE_WHITESPACE_NOT_HANDLED = 58;
  363. {
  364. ER_IGNORABLE_WHITESPACE_NOT_HANDLED,
  365. "ignorableWhitespace(char ch[]... non \u00e8 gestito da DTM."},
  366. /** Field ER_DTM_CANNOT_HANDLE_NODES */
  367. //public static final int ER_DTM_CANNOT_HANDLE_NODES = 59;
  368. {
  369. ER_DTM_CANNOT_HANDLE_NODES,
  370. "DTMLiaison non pu\u00f2 gestire nodi di tipo {0}"},
  371. /** Field ER_XERCES_CANNOT_HANDLE_NODES */
  372. //public static final int ER_XERCES_CANNOT_HANDLE_NODES = 60;
  373. {
  374. ER_XERCES_CANNOT_HANDLE_NODES,
  375. "DOM2Helper non pu\u00f2 gestire nodi di tipo {0}"},
  376. /** Field ER_XERCES_PARSE_ERROR_DETAILS */
  377. //public static final int ER_XERCES_PARSE_ERROR_DETAILS = 61;
  378. {
  379. ER_XERCES_PARSE_ERROR_DETAILS,
  380. "Errore DOM2Helper.parse: SystemID - {0} linea - {1}"},
  381. /** Field ER_XERCES_PARSE_ERROR */
  382. //public static final int ER_XERCES_PARSE_ERROR = 62;
  383. {
  384. ER_XERCES_PARSE_ERROR, "Errore DOM2Helper.parse"},
  385. /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC */
  386. //public static final int ER_CANT_OUTPUT_TEXT_BEFORE_DOC = 63;
  387. {
  388. ER_CANT_OUTPUT_TEXT_BEFORE_DOC,
  389. "Avvertenza: impossibile generare un output di testo prima dell'elemento documento. Richiesta ignorata..."},
  390. /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT */
  391. //public static final int ER_CANT_HAVE_MORE_THAN_ONE_ROOT = 64;
  392. {
  393. ER_CANT_HAVE_MORE_THAN_ONE_ROOT,
  394. "Impossibile avere pi\u00f9 di una root su un DOM."},
  395. /** Field ER_INVALID_UTF16_SURROGATE */
  396. //public static final int ER_INVALID_UTF16_SURROGATE = 65;
  397. {
  398. ER_INVALID_UTF16_SURROGATE,
  399. "Rilevato surrogato di UTF-16 non valido: {0} ?"},
  400. /** Field ER_OIERROR */
  401. //public static final int ER_OIERROR = 66;
  402. {
  403. ER_OIERROR, "Errore IO"},
  404. /** Field ER_CANNOT_CREATE_URL */
  405. //public static final int ER_CANNOT_CREATE_URL = 67;
  406. {
  407. ER_CANNOT_CREATE_URL, "Impossibile creare URL per: {0}"},
  408. /** Field ER_XPATH_READOBJECT */
  409. //public static final int ER_XPATH_READOBJECT = 68;
  410. {
  411. ER_XPATH_READOBJECT, "In XPath.readObject: {0}"},
  412. /** Field ER_XPATH_READOBJECT */
  413. //public static final int ER_FUNCTION_TOKEN_NOT_FOUND = 69;
  414. {
  415. ER_FUNCTION_TOKEN_NOT_FOUND,
  416. "token di funzione non trovato."},
  417. /** Argument 'localName' is null */
  418. //public static final int ER_ARG_LOCALNAME_NULL = 70;
  419. {
  420. ER_ARG_LOCALNAME_NULL,
  421. "L'argomento 'localName' \u00e8 nullo"},
  422. /** Can not deal with XPath type: */
  423. //public static final int ER_CANNOT_DEAL_XPATH_TYPE = 71;
  424. {
  425. ER_CANNOT_DEAL_XPATH_TYPE,
  426. "Impossibile gestire il tipo XPath: {0}"},
  427. /** This NodeSet is not mutable */
  428. //public static final int ER_NODESET_NOT_MUTABLE = 72;
  429. {
  430. ER_NODESET_NOT_MUTABLE,
  431. "Questo NodeSet non \u00e8 mutabile"},
  432. /** This NodeSetDTM is not mutable */
  433. //public static final int ER_NODESETDTM_NOT_MUTABLE = 73;
  434. {
  435. ER_NODESETDTM_NOT_MUTABLE,
  436. "Questo NodeSetDTM non \u00e8 mutabile"},
  437. /** Variable not resolvable: */
  438. //public static final int ER_VAR_NOT_RESOLVABLE = 74;
  439. {
  440. ER_VAR_NOT_RESOLVABLE,
  441. "Variabile non risolvibile: {0}"},
  442. /** Null error handler */
  443. //public static final int ER_NULL_ERROR_HANDLER = 75;
  444. {
  445. ER_NULL_ERROR_HANDLER,
  446. "Errore gestore nullo"},
  447. /** Programmer's assertion: unknown opcode */
  448. //public static final int ER_PROG_ASSERT_UNKNOWN_OPCODE = 76;
  449. {
  450. ER_PROG_ASSERT_UNKNOWN_OPCODE,
  451. "Asserzione di programmazione: codice operativo sconosciuto: {0}"},
  452. /** 0 or 1 */
  453. //public static final int ER_ZERO_OR_ONE = 77;
  454. {
  455. ER_ZERO_OR_ONE,
  456. "0 o 1"},
  457. /** rtf() not supported by XRTreeFragSelectWrapper */
  458. //public static final int ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 78;
  459. {
  460. ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
  461. "rtf() non supportato da XRTreeFragSelectWrapper"},
  462. /** asNodeIterator() not supported by XRTreeFragSelectWrapper */
  463. //public static final int ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 79;
  464. {
  465. ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
  466. "asNodeIterator() non supportato da XRTreeFragSelectWrapper"},
  467. /** fsb() not supported for XStringForChars */
  468. //public static final int ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS = 80;
  469. {
  470. ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,
  471. "fsb() non supportato per XStringForChars"},
  472. /** Could not find variable with the name of */
  473. //public static final int ER_COULD_NOT_FIND_VAR = 81;
  474. {
  475. ER_COULD_NOT_FIND_VAR,
  476. "Impossibile trovare la variabile denominata {0}"},
  477. /** XStringForChars can not take a string for an argument */
  478. //public static final int ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING = 82;
  479. {
  480. ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,
  481. "XStringForChars non pu\u00f2 prendere una stringa per un argomento"},
  482. /** The FastStringBuffer argument can not be null */
  483. //public static final int ER_FASTSTRINGBUFFER_CANNOT_BE_NULL = 83;
  484. {
  485. ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,
  486. "L'argomento FastStringBuffer non pu\u00f2 essere nullo"},
  487. /** 2 or 3 */
  488. //public static final int ER_TWO_OR_THREE = 84;
  489. {
  490. ER_TWO_OR_THREE,
  491. "2 o 3"},
  492. /** Variable accessed before it is bound! */
  493. //public static final int ER_VARIABLE_ACCESSED_BEFORE_BIND = 85;
  494. {
  495. ER_VARIABLE_ACCESSED_BEFORE_BIND,
  496. "Accesso alla variabile prima della delimitazione."},
  497. /** XStringForFSB can not take a string for an argument! */
  498. //public static final int ER_FSB_CANNOT_TAKE_STRING = 86;
  499. {
  500. ER_FSB_CANNOT_TAKE_STRING,
  501. "XStringForFSB non pu\u00f2 avere una stringa per argomento."},
  502. /** Error! Setting the root of a walker to null! */
  503. //public static final int ER_SETTING_WALKER_ROOT_TO_NULL = 87;
  504. {
  505. ER_SETTING_WALKER_ROOT_TO_NULL,
  506. "\n !!!! Errore! Impostazione radice walker a zero."},
  507. /** This NodeSetDTM can not iterate to a previous node! */
  508. //public static final int ER_NODESETDTM_CANNOT_ITERATE = 88;
  509. {
  510. ER_NODESETDTM_CANNOT_ITERATE,
  511. "Questo NodeSetDTM non \u00e8 in grado di eseguire iterazione in un nodo precedente."},
  512. /** This NodeSet can not iterate to a previous node! */
  513. //public static final int ER_NODESET_CANNOT_ITERATE = 89;
  514. {
  515. ER_NODESET_CANNOT_ITERATE,
  516. "Questo NodeSet non \u00e8 in grado di eseguire iterazione in un nodo precedente."},
  517. /** This NodeSetDTM can not do indexing or counting functions! */
  518. //public static final int ER_NODESETDTM_CANNOT_INDEX = 90;
  519. {
  520. ER_NODESETDTM_CANNOT_INDEX,
  521. "Questo NodeSetDTM non \u00e8 in grado di indicizzare o calcolare le funzioni."},
  522. /** This NodeSet can not do indexing or counting functions! */
  523. //public static final int ER_NODESET_CANNOT_INDEX = 91;
  524. {
  525. ER_NODESET_CANNOT_INDEX,
  526. "Questo NodeSet non \u00e8 in grado di indicizzare o calcolare le funzioni."},
  527. /** Can not call setShouldCacheNodes after nextNode has been called! */
  528. //public static final int ER_CANNOT_CALL_SETSHOULDCACHENODE = 92;
  529. {
  530. ER_CANNOT_CALL_SETSHOULDCACHENODE,
  531. "Impossibile richiamare setShouldCacheNodes dopo aver richiamato nextNode."},
  532. /** {0} only allows {1} arguments */
  533. //public static final int ER_ONLY_ALLOWS = 93;
  534. {
  535. ER_ONLY_ALLOWS,
  536. "{0} consente solo argomenti {1}"},
  537. /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */
  538. //public static final int ER_UNKNOWN_STEP = 94;
  539. {
  540. ER_UNKNOWN_STEP,
  541. "Conferma del programmatore in getNextStepPos: stepType sconosciuto: {0}"},
  542. //Note to translators: A relative location path is a form of XPath expression.
  543. // The message indicates that such an expression was expected following the
  544. // characters '/' or '//', but was not found.
  545. /** Problem with RelativeLocationPath */
  546. //public static final int ER_EXPECTED_REL_LOC_PATH = 95;
  547. {
  548. ER_EXPECTED_REL_LOC_PATH,
  549. "Atteso percorso ubicazione relativo dopo il token '/' o '//'."},
  550. // Note to translators: A location path is a form of XPath expression.
  551. // The message indicates that syntactically such an expression was expected,but
  552. // the characters specified by the substitution text were encountered instead.
  553. /** Problem with LocationPath */
  554. //public static final int ER_EXPECTED_LOC_PATH = 96;
  555. {
  556. ER_EXPECTED_LOC_PATH,
  557. "Atteso percorso ubicazione, ma \u00e8 stato incontrato il token seguente: {0}"},
  558. // Note to translators: A location step is part of an XPath expression.
  559. // The message indicates that syntactically such an expression was expected
  560. // following the specified characters.
  561. /** Problem with Step */
  562. //public static final int ER_EXPECTED_LOC_STEP = 97;
  563. {
  564. ER_EXPECTED_LOC_STEP,
  565. "Atteso step ubicazione dopo il token '/' o '//'."},
  566. // Note to translators: A node test is part of an XPath expression that is
  567. // used to test for particular kinds of nodes. In this case, a node test that
  568. // consists of an NCName followed by a colon and an asterisk or that consists
  569. // of a QName was expected, but was not found.
  570. /** Problem with NodeTest */
  571. //public static final int ER_EXPECTED_NODE_TEST = 98;
  572. {
  573. ER_EXPECTED_NODE_TEST,
  574. "Atteso test nodo corrispondente a NCName:* o QName."},
  575. // Note to translators: A step pattern is part of an XPath expression.
  576. // The message indicates that syntactically such an expression was expected,
  577. // but the specified character was found in the expression instead.
  578. /** Expected step pattern */
  579. //public static final int ER_EXPECTED_STEP_PATTERN = 99;
  580. {
  581. ER_EXPECTED_STEP_PATTERN,
  582. "Atteso pattern step, ma \u00e8 stato incontrato '/'."},
  583. // Note to translators: A relative path pattern is part of an XPath expression.
  584. // The message indicates that syntactically such an expression was expected,
  585. // but was not found.
  586. /** Expected relative path pattern */
  587. //public static final int ER_EXPECTED_REL_PATH_PATTERN = 100;
  588. {
  589. ER_EXPECTED_REL_PATH_PATTERN,
  590. "Atteso pattern percorso relativo."},
  591. // Note to translators: A QNAME has the syntactic form [NCName:]NCName
  592. // The localname is the portion after the optional colon; the message indicates
  593. // that there is a problem with that part of the QNAME.
  594. /** localname in QNAME should be a valid NCName */
  595. //public static final int ER_ARG_LOCALNAME_INVALID = 101;
  596. {
  597. ER_ARG_LOCALNAME_INVALID,
  598. "Localname in QNAME deve essere un NCName valido"},
  599. // Note to translators: A QNAME has the syntactic form [NCName:]NCName
  600. // The prefix is the portion before the optional colon; the message indicates
  601. // that there is a problem with that part of the QNAME.
  602. /** prefix in QNAME should be a valid NCName */
  603. //public static final int ER_ARG_PREFIX_INVALID = 102;
  604. {
  605. ER_ARG_PREFIX_INVALID,
  606. "Prefisso in QNAME deve essere un NCName valido"},
  607. // Note to translators: The substitution text is the name of a data type. The
  608. // message indicates that a value of a particular type could not be converted
  609. // to a value of type string.
  610. /** Field ER_CANT_CONVERT_TO_BOOLEAN */
  611. //public static final int ER_CANT_CONVERT_TO_BOOLEAN = 103;
  612. {
  613. ER_CANT_CONVERT_TO_BOOLEAN,
  614. "Impossibile convertire {0} in booleano."},
  615. // Note to translators: Do not translate ANY_UNORDERED_NODE_TYPE and
  616. // FIRST_ORDERED_NODE_TYPE.
  617. /** Field ER_CANT_CONVERT_TO_SINGLENODE */
  618. //public static final int ER_CANT_CONVERT_TO_SINGLENODE = 104;
  619. {
  620. ER_CANT_CONVERT_TO_SINGLENODE,
  621. "Impossibile convertire {0} in nodo singolo. Questo getter si applica ai tipi ANY_UNORDERED_NODE_TYPE e FIRST_ORDERED_NODE_TYPE."},
  622. // Note to translators: Do not translate UNORDERED_NODE_SNAPSHOT_TYPE and
  623. // ORDERED_NODE_SNAPSHOT_TYPE.
  624. /** Field ER_CANT_GET_SNAPSHOT_LENGTH */
  625. //public static final int ER_CANT_GET_SNAPSHOT_LENGTH = 105;
  626. {
  627. ER_CANT_GET_SNAPSHOT_LENGTH,
  628. "Impossibile recuperare lunghezza snapshot in tipo: {0}. Questo getter si applica ai tipi UNORDERED_NODE_SNAPSHOT_TYPE e ORDERED_NODE_SNAPSHOT_TYPE."},
  629. /** Field ER_NON_ITERATOR_TYPE */
  630. //public static final int ER_NON_ITERATOR_TYPE = 106;
  631. {
  632. ER_NON_ITERATOR_TYPE,
  633. "Impossibile eseguire iterazione su tipo non iterativo: {0}"},
  634. // Note to translators: This message indicates that the document being operated
  635. // upon changed, so the iterator object that was being used to traverse the
  636. // document has now become invalid.
  637. /** Field ER_DOC_MUTATED */
  638. //public static final int ER_DOC_MUTATED = 107;
  639. {
  640. ER_DOC_MUTATED,
  641. "Documento modificato dalla restituzione del risultato. Iteratore non valido."},
  642. /** Field ER_INVALID_XPATH_TYPE */
  643. //public static final int ER_INVALID_XPATH_TYPE = 108;
  644. {
  645. ER_INVALID_XPATH_TYPE,
  646. "Argomento tipo XPath non valido: {0}"},
  647. /** Field ER_EMPTY_XPATH_RESULT */
  648. //public static final int ER_EMPTY_XPATH_RESULT = 109;
  649. {
  650. ER_EMPTY_XPATH_RESULT,
  651. "Oggetto risultato XPath vuoto"},
  652. /** Field ER_INCOMPATIBLE_TYPES */
  653. //public static final int ER_INCOMPATIBLE_TYPES = 110;
  654. {
  655. ER_INCOMPATIBLE_TYPES,
  656. "Il tipo restituito: {0} non pu\u00f2 essere forzato nel tipo specificato: {1}"},
  657. /** Field ER_NULL_RESOLVER */
  658. //public static final int ER_NULL_RESOLVER = 111;
  659. {
  660. ER_NULL_RESOLVER,
  661. "Impossibile risolvere il prefisso con risolutore prefisso nullo."},
  662. // Note to translators: The substitution text is the name of a data type. The
  663. // message indicates that a value of a particular type could not be converted
  664. // to a value of type string.
  665. /** Field ER_CANT_CONVERT_TO_STRING */
  666. //public static final int ER_CANT_CONVERT_TO_STRING = 112;
  667. {
  668. ER_CANT_CONVERT_TO_STRING,
  669. "Impossibile convertire {0} in stringa."},
  670. // Note to translators: Do not translate snapshotItem,
  671. // UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE.
  672. /** Field ER_NON_SNAPSHOT_TYPE */
  673. //public static final int ER_NON_SNAPSHOT_TYPE = 113;
  674. {
  675. ER_NON_SNAPSHOT_TYPE,
  676. "Impossibile richiamare snapshotItem su tipo: {0}. Questo metodo \u00e8 valido per i tipi UNORDERED_NODE_SNAPSHOT_TYPE e ORDERED_NODE_SNAPSHOT_TYPE."},
  677. // Note to translators: XPathEvaluator is a Java interface name. An
  678. // XPathEvaluator is created with respect to a particular XML document, and in
  679. // this case the expression represented by this object was being evaluated with
  680. // respect to a context node from a different document.
  681. /** Field ER_WRONG_DOCUMENT */
  682. //public static final int ER_WRONG_DOCUMENT = 114;
  683. {
  684. ER_WRONG_DOCUMENT,
  685. "Il nodo contesto non appartiene al documento collegato a questo XPathEvaluator."},
  686. // Note to translators: The XPath expression cannot be evaluated with respect
  687. // to this type of node.
  688. /** Field ER_WRONG_NODETYPE */
  689. //public static final int ER_WRONG_NODETYPE = 115;
  690. {
  691. ER_WRONG_NODETYPE ,
  692. "Il tipo di nodo contesto non \u00e8 supportato."},
  693. /** Field ER_XPATH_ERROR */
  694. //public static final int ER_XPATH_ERROR = 116;
  695. {
  696. ER_XPATH_ERROR ,
  697. "Errore sconosciuto in XPath."},
  698. // Warnings...
  699. /** Field WG_LOCALE_NAME_NOT_HANDLED */
  700. //public static final int WG_LOCALE_NAME_NOT_HANDLED = 1;
  701. {
  702. WG_LOCALE_NAME_NOT_HANDLED,
  703. "Il nome locale nella funzione format-number non \u00e8 ancora gestito."},
  704. /** Field WG_PROPERTY_NOT_SUPPORTED */
  705. //public static final int WG_PROPERTY_NOT_SUPPORTED = 2;
  706. {
  707. WG_PROPERTY_NOT_SUPPORTED,
  708. "Propriet\u00e0 XSL non supportata: {0}"},
  709. /** Field WG_DONT_DO_ANYTHING_WITH_NS */
  710. //public static final int WG_DONT_DO_ANYTHING_WITH_NS = 3;
  711. {
  712. WG_DONT_DO_ANYTHING_WITH_NS,
  713. "Nulla da fare correntemente con namespace {0} in propriet\u00e0: {1}"},
  714. /** Field WG_SECURITY_EXCEPTION */
  715. //public static final int WG_SECURITY_EXCEPTION = 4;
  716. {
  717. WG_SECURITY_EXCEPTION,
  718. "Generata SecurityException al tentativo di accedere alle propriet\u00e0 di sistema XSL: {0}"},
  719. /** Field WG_QUO_NO_LONGER_DEFINED */
  720. //public static final int WG_QUO_NO_LONGER_DEFINED = 5;
  721. {
  722. WG_QUO_NO_LONGER_DEFINED,
  723. "Sintassi precedente: quo(...) non \u00e8 pi\u00f9 definita in XPath."},
  724. /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST */
  725. //public static final int WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST = 6;
  726. {
  727. WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,
  728. "XPath deve avere un oggetto derivato per implementare nodeTest."},
  729. /** Field WG_FUNCTION_TOKEN_NOT_FOUND */
  730. //public static final int WG_FUNCTION_TOKEN_NOT_FOUND = 7;
  731. {
  732. WG_FUNCTION_TOKEN_NOT_FOUND,
  733. "Token di funzione non trovato."},
  734. /** Field WG_COULDNOT_FIND_FUNCTION */
  735. //public static final int WG_COULDNOT_FIND_FUNCTION = 8;
  736. {
  737. WG_COULDNOT_FIND_FUNCTION,
  738. "Impossibile trovare la funzione: {0}"},
  739. /** Field WG_CANNOT_MAKE_URL_FROM */
  740. //public static final int WG_CANNOT_MAKE_URL_FROM = 9;
  741. {
  742. WG_CANNOT_MAKE_URL_FROM,
  743. "Impossibile creare un URL da: {0}"},
  744. /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED */
  745. //public static final int WG_EXPAND_ENTITIES_NOT_SUPPORTED = 10;
  746. {
  747. WG_EXPAND_ENTITIES_NOT_SUPPORTED,
  748. "L'opzione -E non \u00e8 supportata per il parser DTM"},
  749. /** Field WG_ILLEGAL_VARIABLE_REFERENCE */
  750. //public static final int WG_ILLEGAL_VARIABLE_REFERENCE = 11;
  751. {
  752. WG_ILLEGAL_VARIABLE_REFERENCE,
  753. "VariableReference fornita per la variabile \u00e8 esterna al contesto o senza definizione. Nome = {0}"},
  754. /** Field WG_UNSUPPORTED_ENCODING */
  755. //public static final int WG_UNSUPPORTED_ENCODING = 12;
  756. {
  757. WG_UNSUPPORTED_ENCODING, "Codifica non supportata: {0}"},
  758. // Other miscellaneous text used inside the code...
  759. { "ui_language", "it"},
  760. { "help_language", "it"},
  761. { "language", "it"},
  762. { "BAD_CODE",
  763. "Il parametro di createMessage \u00e8 esterno ai limiti"},
  764. { "FORMAT_FAILED",
  765. "Eccezione generata durante la chiamata di messageFormat"},
  766. { "version", ">>>>>>> Xalan Versione "},
  767. { "version2", "<<<<<<<"},
  768. { "yes", "s\u00ec"},
  769. { "line", "Linea //"},
  770. { "column", "Colonna //"},
  771. { "xsldone", "XSLProcessor: done"},
  772. { "xpath_option", "xpath options: "},
  773. { "optionIN", " [-in inputXMLURL]"},
  774. { "optionSelect", " [-select espressione xpath]"},
  775. { "optionMatch",
  776. " [-match match pattern (per la diagnostica di corrispondenza)]"},
  777. { "optionAnyExpr",
  778. "O solo un'espressione xpath per eseguire un dump di diagnostica"},
  779. { "noParsermsg1", "Processo XSL non riuscito."},
  780. { "noParsermsg2", "** Impossibile trovare il parser **"},
  781. { "noParsermsg3", "Verificare il classpath."},
  782. { "noParsermsg4",
  783. "Se non si dispone del parser XML IBM per Java, scaricarlo da"},
  784. { "noParsermsg5",
  785. "AlphaWorks IBM: http://www.alphaworks.ibm.com/formula/xml"},
  786. { "gtone", ">1" },
  787. { "zero", "0" },
  788. { "one", "1" },
  789. { "two" , "2" },
  790. { "three", "3" }
  791. };
  792. // ================= INFRASTRUCTURE ======================
  793. /** Field BAD_CODE */
  794. public static final String BAD_CODE = "BAD_CODE";
  795. /** Field FORMAT_FAILED */
  796. public static final String FORMAT_FAILED = "FORMAT_FAILED";
  797. /** Field ERROR_RESOURCES */
  798. public static final String ERROR_RESOURCES =
  799. "org.apache.xpath.res.XPATHErrorResources";
  800. /** Field ERROR_STRING */
  801. public static final String ERROR_STRING = "//errore";
  802. /** Field ERROR_HEADER */
  803. public static final String ERROR_HEADER = "Errore: ";
  804. /** Field WARNING_HEADER */
  805. public static final String WARNING_HEADER = "Avvertenza: ";
  806. /** Field XSL_HEADER */
  807. public static final String XSL_HEADER = "XSL ";
  808. /** Field XML_HEADER */
  809. public static final String XML_HEADER = "XML ";
  810. /** Field QUERY_HEADER */
  811. public static final String QUERY_HEADER = "PATTERN ";
  812. /**
  813. * Get the association list.
  814. *
  815. * @return The association list.
  816. */
  817. public Object[][] getContents()
  818. {
  819. return contents;
  820. }
  821. /**
  822. * Return the resource file suffic for the indicated locale
  823. * For most locales, this will be based the language code. However
  824. * for Chinese, we do distinguish between Taiwan and PRC
  825. *
  826. * @param locale the locale
  827. * @return an String suffix which canbe appended to a resource name
  828. */
  829. private static final String getResourceSuffix(Locale locale)
  830. {
  831. String suffix = "_" + locale.getLanguage();
  832. String country = locale.getCountry();
  833. if (country.equals("TW"))
  834. suffix += "_" + country;
  835. return suffix;
  836. }
  837. }