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