1 /* 2 * reserved comment block 3 * DO NOT REMOVE OR ALTER! 4 */ 5 /* 6 * Copyright 2001-2004 The Apache Software Foundation. 7 * 8 * Licensed under the Apache License, Version 2.0 (the "License"); 9 * you may not use this file except in compliance with the License. 10 * You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, software 15 * distributed under the License is distributed on an "AS IS" BASIS, 16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 * See the License for the specific language governing permissions and 18 * limitations under the License. 19 */ 20 21 package com.sun.org.apache.xalan.internal.xsltc.compiler.util; 22 23 import java.util.ListResourceBundle; 24 25 /** 26 * @author Morten Jorgensen 27 */ 28 public class ErrorMessages extends ListResourceBundle { 29 30 /* 31 * XSLTC compile-time error messages. 32 * 33 * General notes to translators and definitions: 34 * 35 * 1) XSLTC is the name of the product. It is an acronym for "XSLT Compiler". 36 * XSLT is an acronym for "XML Stylesheet Language: Transformations". 37 * 38 * 2) A stylesheet is a description of how to transform an input XML document 39 * into a resultant XML document (or HTML document or text). The 40 * stylesheet itself is described in the form of an XML document. 41 * 42 * 3) A template is a component of a stylesheet that is used to match a 43 * particular portion of an input document and specifies the form of the 44 * corresponding portion of the output document. 45 * 46 * 4) An axis is a particular "dimension" in a tree representation of an XML 47 * document; the nodes in the tree are divided along different axes. 48 * Traversing the "child" axis, for instance, means that the program 49 * would visit each child of a particular node; traversing the "descendant" 50 * axis means that the program would visit the child nodes of a particular 51 * node, their children, and so on until the leaf nodes of the tree are 52 * reached. 53 * 54 * 5) An iterator is an object that traverses nodes in a tree along a 55 * particular axis, one at a time. 56 * 57 * 6) An element is a mark-up tag in an XML document; an attribute is a 58 * modifier on the tag. For example, in <elem attr='val' attr2='val2'> 59 * "elem" is an element name, "attr" and "attr2" are attribute names with 60 * the values "val" and "val2", respectively. 61 * 62 * 7) A namespace declaration is a special attribute that is used to associate 63 * a prefix with a URI (the namespace). The meanings of element names and 64 * attribute names that use that prefix are defined with respect to that 65 * namespace. 66 * 67 * 8) DOM is an acronym for Document Object Model. It is a tree 68 * representation of an XML document. 69 * 70 * SAX is an acronym for the Simple API for XML processing. It is an API 71 * used inform an XML processor (in this case XSLTC) of the structure and 72 * content of an XML document. 73 * 74 * Input to the stylesheet processor can come from an XML parser in the 75 * form of a DOM tree or through the SAX API. 76 * 77 * 9) DTD is a document type declaration. It is a way of specifying the 78 * grammar for an XML file, the names and types of elements, attributes, 79 * etc. 80 * 81 * 10) XPath is a specification that describes a notation for identifying 82 * nodes in a tree-structured representation of an XML document. An 83 * instance of that notation is referred to as an XPath expression. 84 * 85 * 11) Translet is an invented term that refers to the class file that contains 86 * the compiled form of a stylesheet. 87 */ 88 89 // These message should be read from a locale-specific resource bundle 90 /** Get the lookup table for error messages. 91 * 92 * @return The message lookup table. 93 */ 94 public Object[][] getContents() 95 { 96 return new Object[][] { 97 {ErrorMsg.MULTIPLE_STYLESHEET_ERR, 98 "More than one stylesheet defined in the same file."}, 99 100 /* 101 * Note to translators: The substitution text is the name of a 102 * template. The same name was used on two different templates in the 103 * same stylesheet. 104 */ 105 {ErrorMsg.TEMPLATE_REDEF_ERR, 106 "Template ''{0}'' already defined in this stylesheet."}, 107 108 109 /* 110 * Note to translators: The substitution text is the name of a 111 * template. A reference to the template name was encountered, but the 112 * template is undefined. 113 */ 114 {ErrorMsg.TEMPLATE_UNDEF_ERR, 115 "Template ''{0}'' not defined in this stylesheet."}, 116 117 /* 118 * Note to translators: The substitution text is the name of a variable 119 * that was defined more than once. 120 */ 121 {ErrorMsg.VARIABLE_REDEF_ERR, 122 "Variable ''{0}'' is multiply defined in the same scope."}, 123 124 /* 125 * Note to translators: The substitution text is the name of a variable 126 * or parameter. A reference to the variable or parameter was found, 127 * but it was never defined. 128 */ 129 {ErrorMsg.VARIABLE_UNDEF_ERR, 130 "Variable or parameter ''{0}'' is undefined."}, 131 132 /* 133 * Note to translators: The word "class" here refers to a Java class. 134 * Processing the stylesheet required a class to be loaded, but it could 135 * not be found. The substitution text is the name of the class. 136 */ 137 {ErrorMsg.CLASS_NOT_FOUND_ERR, 138 "Cannot find class ''{0}''."}, 139 140 /* 141 * Note to translators: The word "method" here refers to a Java method. 142 * Processing the stylesheet required a reference to the method named by 143 * the substitution text, but it could not be found. "public" is the 144 * Java keyword. 145 */ 146 {ErrorMsg.METHOD_NOT_FOUND_ERR, 147 "Cannot find external method ''{0}'' (must be public)."}, 148 149 /* 150 * Note to translators: The word "method" here refers to a Java method. 151 * Processing the stylesheet required a reference to the method named by 152 * the substitution text, but no method with the required types of 153 * arguments or return type could be found. 154 */ 155 {ErrorMsg.ARGUMENT_CONVERSION_ERR, 156 "Cannot convert argument/return type in call to method ''{0}''"}, 157 158 /* 159 * Note to translators: The file or URI named in the substitution text 160 * is missing. 161 */ 162 {ErrorMsg.FILE_NOT_FOUND_ERR, 163 "File or URI ''{0}'' not found."}, 164 165 /* 166 * Note to translators: This message is displayed when the URI 167 * mentioned in the substitution text is not well-formed syntactically. 168 */ 169 {ErrorMsg.INVALID_URI_ERR, 170 "Invalid URI ''{0}''."}, 171 172 /* 173 * Note to translators: The file or URI named in the substitution text 174 * exists but could not be opened. 175 */ 176 {ErrorMsg.FILE_ACCESS_ERR, 177 "Cannot open file or URI ''{0}''."}, 178 179 /* 180 * Note to translators: <xsl:stylesheet> and <xsl:transform> are 181 * keywords that should not be translated. 182 */ 183 {ErrorMsg.MISSING_ROOT_ERR, 184 "<xsl:stylesheet> or <xsl:transform> element expected."}, 185 186 /* 187 * Note to translators: The stylesheet contained a reference to a 188 * namespace prefix that was undefined. The value of the substitution 189 * text is the name of the prefix. 190 */ 191 {ErrorMsg.NAMESPACE_UNDEF_ERR, 192 "Namespace prefix ''{0}'' is undeclared."}, 193 194 /* 195 * Note to translators: The Java function named in the stylesheet could 196 * not be found. 197 */ 198 {ErrorMsg.FUNCTION_RESOLVE_ERR, 199 "Unable to resolve call to function ''{0}''."}, 200 201 /* 202 * Note to translators: The substitution text is the name of a 203 * function. A literal string here means a constant string value. 204 */ 205 {ErrorMsg.NEED_LITERAL_ERR, 206 "Argument to ''{0}'' must be a literal string."}, 207 208 /* 209 * Note to translators: This message indicates there was a syntactic 210 * error in the form of an XPath expression. The substitution text is 211 * the expression. 212 */ 213 {ErrorMsg.XPATH_PARSER_ERR, 214 "Error parsing XPath expression ''{0}''."}, 215 216 /* 217 * Note to translators: An element in the stylesheet requires a 218 * particular attribute named by the substitution text, but that 219 * attribute was not specified in the stylesheet. 220 */ 221 {ErrorMsg.REQUIRED_ATTR_ERR, 222 "Required attribute ''{0}'' is missing."}, 223 224 /* 225 * Note to translators: This message indicates that a character not 226 * permitted in an XPath expression was encountered. The substitution 227 * text is the offending character. 228 */ 229 {ErrorMsg.ILLEGAL_CHAR_ERR, 230 "Illegal character ''{0}'' in XPath expression."}, 231 232 /* 233 * Note to translators: A processing instruction is a mark-up item in 234 * an XML document that request some behaviour of an XML processor. The 235 * form of the name of was invalid in this case, and the substitution 236 * text is the name. 237 */ 238 {ErrorMsg.ILLEGAL_PI_ERR, 239 "Illegal name ''{0}'' for processing instruction."}, 240 241 /* 242 * Note to translators: This message is reported if the stylesheet 243 * being processed attempted to construct an XML document with an 244 * attribute in a place other than on an element. The substitution text 245 * specifies the name of the attribute. 246 */ 247 {ErrorMsg.STRAY_ATTRIBUTE_ERR, 248 "Attribute ''{0}'' outside of element."}, 249 250 /* 251 * Note to translators: An attribute that wasn't recognized was 252 * specified on an element in the stylesheet. The attribute is named 253 * by the substitution 254 * text. 255 */ 256 {ErrorMsg.ILLEGAL_ATTRIBUTE_ERR, 257 "Illegal attribute ''{0}''."}, 258 259 /* 260 * Note to translators: "import" and "include" are keywords that should 261 * not be translated. This messages indicates that the stylesheet 262 * named in the substitution text imported or included itself either 263 * directly or indirectly. 264 */ 265 {ErrorMsg.CIRCULAR_INCLUDE_ERR, 266 "Circular import/include. Stylesheet ''{0}'' already loaded."}, 267 268 /* 269 * Note to translators: A result-tree fragment is a portion of a 270 * resulting XML document represented as a tree. "<xsl:sort>" is a 271 * keyword and should not be translated. 272 */ 273 {ErrorMsg.RESULT_TREE_SORT_ERR, 274 "Result-tree fragments cannot be sorted (<xsl:sort> elements are " + 275 "ignored). You must sort the nodes when creating the result tree."}, 276 277 /* 278 * Note to translators: A name can be given to a particular style to be 279 * used to format decimal values. The substitution text gives the name 280 * of such a style for which more than one declaration was encountered. 281 */ 282 {ErrorMsg.SYMBOLS_REDEF_ERR, 283 "Decimal formatting ''{0}'' is already defined."}, 284 285 /* 286 * Note to translators: The stylesheet version named in the 287 * substitution text is not supported. 288 */ 289 {ErrorMsg.XSL_VERSION_ERR, 290 "XSL version ''{0}'' is not supported by XSLTC."}, 291 292 /* 293 * Note to translators: The definitions of one or more variables or 294 * parameters depend on one another. 295 */ 296 {ErrorMsg.CIRCULAR_VARIABLE_ERR, 297 "Circular variable/parameter reference in ''{0}''."}, 298 299 /* 300 * Note to translators: The operator in an expresion with two operands was 301 * not recognized. 302 */ 303 {ErrorMsg.ILLEGAL_BINARY_OP_ERR, 304 "Unknown operator for binary expression."}, 305 306 /* 307 * Note to translators: This message is produced if a reference to a 308 * function has too many or too few arguments. 309 */ 310 {ErrorMsg.ILLEGAL_ARG_ERR, 311 "Illegal argument(s) for function call."}, 312 313 /* 314 * Note to translators: "document()" is the name of function and must 315 * not be translated. A node-set is a set of the nodes in the tree 316 * representation of an XML document. 317 */ 318 {ErrorMsg.DOCUMENT_ARG_ERR, 319 "Second argument to document() function must be a node-set."}, 320 321 /* 322 * Note to translators: "<xsl:when>" and "<xsl:choose>" are keywords 323 * and should not be translated. This message describes a syntax error 324 * in the stylesheet. 325 */ 326 {ErrorMsg.MISSING_WHEN_ERR, 327 "At least one <xsl:when> element required in <xsl:choose>."}, 328 329 /* 330 * Note to translators: "<xsl:otherwise>" and "<xsl:choose>" are 331 * keywords and should not be translated. This message describes a 332 * syntax error in the stylesheet. 333 */ 334 {ErrorMsg.MULTIPLE_OTHERWISE_ERR, 335 "Only one <xsl:otherwise> element allowed in <xsl:choose>."}, 336 337 /* 338 * Note to translators: "<xsl:otherwise>" and "<xsl:choose>" are 339 * keywords and should not be translated. This message describes a 340 * syntax error in the stylesheet. 341 */ 342 {ErrorMsg.STRAY_OTHERWISE_ERR, 343 "<xsl:otherwise> can only be used within <xsl:choose>."}, 344 345 /* 346 * Note to translators: "<xsl:when>" and "<xsl:choose>" are keywords 347 * and should not be translated. This message describes a syntax error 348 * in the stylesheet. 349 */ 350 {ErrorMsg.STRAY_WHEN_ERR, 351 "<xsl:when> can only be used within <xsl:choose>."}, 352 353 /* 354 * Note to translators: "<xsl:when>", "<xsl:otherwise>" and 355 * "<xsl:choose>" are keywords and should not be translated. This 356 * message describes a syntax error in the stylesheet. 357 */ 358 {ErrorMsg.WHEN_ELEMENT_ERR, 359 "Only <xsl:when> and <xsl:otherwise> elements allowed in <xsl:choose>."}, 360 361 /* 362 * Note to translators: "<xsl:attribute-set>" and "name" are keywords 363 * that should not be translated. 364 */ 365 {ErrorMsg.UNNAMED_ATTRIBSET_ERR, 366 "<xsl:attribute-set> is missing the 'name' attribute."}, 367 368 /* 369 * Note to translators: An element in the stylesheet contained an 370 * element of a type that it was not permitted to contain. 371 */ 372 {ErrorMsg.ILLEGAL_CHILD_ERR, 373 "Illegal child element."}, 374 375 /* 376 * Note to translators: The stylesheet tried to create an element with 377 * a name that was not a valid XML name. The substitution text contains 378 * the name. 379 */ 380 {ErrorMsg.ILLEGAL_ELEM_NAME_ERR, 381 "You cannot call an element ''{0}''"}, 382 383 /* 384 * Note to translators: The stylesheet tried to create an attribute 385 * with a name that was not a valid XML name. The substitution text 386 * contains the name. 387 */ 388 {ErrorMsg.ILLEGAL_ATTR_NAME_ERR, 389 "You cannot call an attribute ''{0}''"}, 390 391 /* 392 * Note to translators: The children of the outermost element of a 393 * stylesheet are referred to as top-level elements. No text should 394 * occur within that outermost element unless it is within a top-level 395 * element. This message indicates that that constraint was violated. 396 * "<xsl:stylesheet>" is a keyword that should not be translated. 397 */ 398 {ErrorMsg.ILLEGAL_TEXT_NODE_ERR, 399 "Text data outside of top-level <xsl:stylesheet> element."}, 400 401 /* 402 * Note to translators: JAXP is an acronym for the Java API for XML 403 * Processing. This message indicates that the XML parser provided to 404 * XSLTC to process the XML input document had a configuration problem. 405 */ 406 {ErrorMsg.SAX_PARSER_CONFIG_ERR, 407 "JAXP parser not configured correctly"}, 408 409 /* 410 * Note to translators: The substitution text names the internal error 411 * encountered. 412 */ 413 {ErrorMsg.INTERNAL_ERR, 414 "Unrecoverable XSLTC-internal error: ''{0}''"}, 415 416 /* 417 * Note to translators: The stylesheet contained an element that was 418 * not recognized as part of the XSL syntax. The substitution text 419 * gives the element name. 420 */ 421 {ErrorMsg.UNSUPPORTED_XSL_ERR, 422 "Unsupported XSL element ''{0}''."}, 423 424 /* 425 * Note to translators: The stylesheet referred to an extension to the 426 * XSL syntax and indicated that it was defined by XSLTC, but XSTLC does 427 * not recognized the particular extension named. The substitution text 428 * gives the extension name. 429 */ 430 {ErrorMsg.UNSUPPORTED_EXT_ERR, 431 "Unrecognised XSLTC extension ''{0}''."}, 432 433 /* 434 * Note to translators: The XML document given to XSLTC as a stylesheet 435 * was not, in fact, a stylesheet. XSLTC is able to detect that in this 436 * case because the outermost element in the stylesheet has to be 437 * declared with respect to the XSL namespace URI, but no declaration 438 * for that namespace was seen. 439 */ 440 {ErrorMsg.MISSING_XSLT_URI_ERR, 441 "The input document is not a stylesheet (the XSL namespace is not "+ 442 "declared in the root element)."}, 443 444 /* 445 * Note to translators: XSLTC could not find the stylesheet document 446 * with the name specified by the substitution text. 447 */ 448 {ErrorMsg.MISSING_XSLT_TARGET_ERR, 449 "Could not find stylesheet target ''{0}''."}, 450 451 /* 452 * Note to translators: access to the stylesheet target is denied 453 */ 454 {ErrorMsg.ACCESSING_XSLT_TARGET_ERR, 455 "Could not read stylesheet target ''{0}'', because ''{1}'' access is not allowed due to restriction set by the accessExternalStylesheet property."}, 456 457 /* 458 * Note to translators: This message represents an internal error in 459 * condition in XSLTC. The substitution text is the class name in XSLTC 460 * that is missing some functionality. 461 */ 462 {ErrorMsg.NOT_IMPLEMENTED_ERR, 463 "Not implemented: ''{0}''."}, 464 465 /* 466 * Note to translators: The XML document given to XSLTC as a stylesheet 467 * was not, in fact, a stylesheet. 468 */ 469 {ErrorMsg.NOT_STYLESHEET_ERR, 470 "The input document does not contain an XSL stylesheet."}, 471 472 /* 473 * Note to translators: The element named in the substitution text was 474 * encountered in the stylesheet but is not recognized. 475 */ 476 {ErrorMsg.ELEMENT_PARSE_ERR, 477 "Could not parse element ''{0}''"}, 478 479 /* 480 * Note to translators: "use", "<key>", "node", "node-set", "string" 481 * and "number" are keywords in this context and should not be 482 * translated. This message indicates that the value of the "use" 483 * attribute was not one of the permitted values. 484 */ 485 {ErrorMsg.KEY_USE_ATTR_ERR, 486 "The use attribute of <key> must be node, node-set, string or number."}, 487 488 /* 489 * Note to translators: An XML document can specify the version of the 490 * XML specification to which it adheres. This message indicates that 491 * the version specified for the output document was not valid. 492 */ 493 {ErrorMsg.OUTPUT_VERSION_ERR, 494 "Output XML document version should be 1.0"}, 495 496 /* 497 * Note to translators: The operator in a comparison operation was 498 * not recognized. 499 */ 500 {ErrorMsg.ILLEGAL_RELAT_OP_ERR, 501 "Unknown operator for relational expression"}, 502 503 /* 504 * Note to translators: An attribute set defines as a set of XML 505 * attributes that can be added to an element in the output XML document 506 * as a group. This message is reported if the name specified was not 507 * used to declare an attribute set. The substitution text is the name 508 * that is in error. 509 */ 510 {ErrorMsg.ATTRIBSET_UNDEF_ERR, 511 "Attempting to use non-existing attribute set ''{0}''."}, 512 513 /* 514 * Note to translators: The term "attribute value template" is a term 515 * defined by XSLT which describes the value of an attribute that is 516 * determined by an XPath expression. The message indicates that the 517 * expression was syntactically incorrect; the substitution text 518 * contains the expression that was in error. 519 */ 520 {ErrorMsg.ATTR_VAL_TEMPLATE_ERR, 521 "Cannot parse attribute value template ''{0}''."}, 522 523 /* 524 * Note to translators: ??? 525 */ 526 {ErrorMsg.UNKNOWN_SIG_TYPE_ERR, 527 "Unknown data-type in signature for class ''{0}''."}, 528 529 /* 530 * Note to translators: The substitution text refers to data types. 531 * The message is displayed if a value in a particular context needs to 532 * be converted to type {1}, but that's not possible for a value of 533 * type {0}. 534 */ 535 {ErrorMsg.DATA_CONVERSION_ERR, 536 "Cannot convert data-type ''{0}'' to ''{1}''."}, 537 538 /* 539 * Note to translators: "Templates" is a Java class name that should 540 * not be translated. 541 */ 542 {ErrorMsg.NO_TRANSLET_CLASS_ERR, 543 "This Templates does not contain a valid translet class definition."}, 544 545 /* 546 * Note to translators: "Templates" is a Java class name that should 547 * not be translated. 548 */ 549 {ErrorMsg.NO_MAIN_TRANSLET_ERR, 550 "This Templates does not contain a class with the name ''{0}''."}, 551 552 /* 553 * Note to translators: The substitution text is the name of a class. 554 */ 555 {ErrorMsg.TRANSLET_CLASS_ERR, 556 "Could not load the translet class ''{0}''."}, 557 558 {ErrorMsg.TRANSLET_OBJECT_ERR, 559 "Translet class loaded, but unable to create translet instance."}, 560 561 /* 562 * Note to translators: "ErrorListener" is a Java interface name that 563 * should not be translated. The message indicates that the user tried 564 * to set an ErrorListener object on object of the class named in the 565 * substitution text with "null" Java value. 566 */ 567 {ErrorMsg.ERROR_LISTENER_NULL_ERR, 568 "Attempting to set ErrorListener for ''{0}'' to null"}, 569 570 /* 571 * Note to translators: StreamSource, SAXSource and DOMSource are Java 572 * interface names that should not be translated. 573 */ 574 {ErrorMsg.JAXP_UNKNOWN_SOURCE_ERR, 575 "Only StreamSource, SAXSource and DOMSource are supported by XSLTC"}, 576 577 /* 578 * Note to translators: "Source" is a Java class name that should not 579 * be translated. The substitution text is the name of Java method. 580 */ 581 {ErrorMsg.JAXP_NO_SOURCE_ERR, 582 "Source object passed to ''{0}'' has no contents."}, 583 584 /* 585 * Note to translators: The message indicates that XSLTC failed to 586 * compile the stylesheet into a translet (class file). 587 */ 588 {ErrorMsg.JAXP_COMPILE_ERR, 589 "Could not compile stylesheet"}, 590 591 /* 592 * Note to translators: "TransformerFactory" is a class name. In this 593 * context, an attribute is a property or setting of the 594 * TransformerFactory object. The substitution text is the name of the 595 * unrecognised attribute. The method used to retrieve the attribute is 596 * "getAttribute", so it's not clear whether it would be best to 597 * translate the term "attribute". 598 */ 599 {ErrorMsg.JAXP_INVALID_ATTR_ERR, 600 "TransformerFactory does not recognise attribute ''{0}''."}, 601 602 {ErrorMsg.JAXP_INVALID_ATTR_VALUE_ERR, 603 "Incorrect value specified for ''{0}'' attribute."}, 604 605 /* 606 * Note to translators: "setResult()" and "startDocument()" are Java 607 * method names that should not be translated. 608 */ 609 {ErrorMsg.JAXP_SET_RESULT_ERR, 610 "setResult() must be called prior to startDocument()."}, 611 612 /* 613 * Note to translators: "Transformer" is a Java interface name that 614 * should not be translated. A Transformer object should contained a 615 * reference to a translet object in order to be used for 616 * transformations; this message is produced if that requirement is not 617 * met. 618 */ 619 {ErrorMsg.JAXP_NO_TRANSLET_ERR, 620 "The Transformer has no encapsulated translet object."}, 621 622 /* 623 * Note to translators: The XML document that results from a 624 * transformation needs to be sent to an output handler object; this 625 * message is produced if that requirement is not met. 626 */ 627 {ErrorMsg.JAXP_NO_HANDLER_ERR, 628 "No defined output handler for transformation result."}, 629 630 /* 631 * Note to translators: "Result" is a Java interface name in this 632 * context. The substitution text is a method name. 633 */ 634 {ErrorMsg.JAXP_NO_RESULT_ERR, 635 "Result object passed to ''{0}'' is invalid."}, 636 637 /* 638 * Note to translators: "Transformer" is a Java interface name. The 639 * user's program attempted to access an unrecognized property with the 640 * name specified in the substitution text. The method used to retrieve 641 * the property is "getOutputProperty", so it's not clear whether it 642 * would be best to translate the term "property". 643 */ 644 {ErrorMsg.JAXP_UNKNOWN_PROP_ERR, 645 "Attempting to access invalid Transformer property ''{0}''."}, 646 647 /* 648 * Note to translators: SAX2DOM is the name of a Java class that should 649 * not be translated. This is an adapter in the sense that it takes a 650 * DOM object and converts it to something that uses the SAX API. 651 */ 652 {ErrorMsg.SAX2DOM_ADAPTER_ERR, 653 "Could not create SAX2DOM adapter: ''{0}''."}, 654 655 /* 656 * Note to translators: "XSLTCSource.build()" is a Java method name. 657 * "systemId" is an XML term that is short for "system identification". 658 */ 659 {ErrorMsg.XSLTC_SOURCE_ERR, 660 "XSLTCSource.build() called without systemId being set."}, 661 662 { ErrorMsg.ER_RESULT_NULL, 663 "Result should not be null"}, 664 665 /* 666 * Note to translators: This message indicates that the value argument 667 * of setParameter must be a valid Java Object. 668 */ 669 {ErrorMsg.JAXP_INVALID_SET_PARAM_VALUE, 670 "The value of param {0} must be a valid Java Object"}, 671 672 673 {ErrorMsg.COMPILE_STDIN_ERR, 674 "The -i option must be used with the -o option."}, 675 676 677 /* 678 * Note to translators: This message contains usage information for a 679 * means of invoking XSLTC from the command-line. The message is 680 * formatted for presentation in English. The strings <output>, 681 * <directory>, etc. indicate user-specified argument values, and can 682 * be translated - the argument <package> refers to a Java package, so 683 * it should be handled in the same way the term is handled for JDK 684 * documentation. 685 */ 686 {ErrorMsg.COMPILE_USAGE_STR, 687 "SYNOPSIS\n"+ 688 " java com.sun.org.apache.xalan.internal.xsltc.cmdline.Compile [-o <output>]\n"+ 689 " [-d <directory>] [-j <jarfile>] [-p <package>]\n"+ 690 " [-n] [-x] [-u] [-v] [-h] { <stylesheet> | -i }\n\n"+ 691 "OPTIONS\n"+ 692 " -o <output> assigns the name <output> to the generated\n"+ 693 " translet. By default the translet name is\n"+ 694 " derived from the <stylesheet> name. This option\n"+ 695 " is ignored if compiling multiple stylesheets.\n"+ 696 " -d <directory> specifies a destination directory for translet\n"+ 697 " -j <jarfile> packages translet classes into a jar file of the\n"+ 698 " name specified as <jarfile>\n"+ 699 " -p <package> specifies a package name prefix for all generated\n"+ 700 " translet classes.\n"+ 701 " -n enables template inlining (default behavior better\n"+ 702 " on average).\n"+ 703 " -x turns on additional debugging message output\n"+ 704 " -u interprets <stylesheet> arguments as URLs\n"+ 705 " -i forces compiler to read stylesheet from stdin\n"+ 706 " -v prints the version of the compiler\n"+ 707 " -h prints this usage statement\n"}, 708 709 /* 710 * Note to translators: This message contains usage information for a 711 * means of invoking XSLTC from the command-line. The message is 712 * formatted for presentation in English. The strings <jarfile>, 713 * <document>, etc. indicate user-specified argument values, and can 714 * be translated - the argument <class> refers to a Java class, so it 715 * should be handled in the same way the term is handled for JDK 716 * documentation. 717 */ 718 {ErrorMsg.TRANSFORM_USAGE_STR, 719 "SYNOPSIS \n"+ 720 " java com.sun.org.apache.xalan.internal.xsltc.cmdline.Transform [-j <jarfile>]\n"+ 721 " [-x] [-n <iterations>] {-u <document_url> | <document>}\n"+ 722 " <class> [<param1>=<value1> ...]\n\n"+ 723 " uses the translet <class> to transform an XML document \n"+ 724 " specified as <document>. The translet <class> is either in\n"+ 725 " the user's CLASSPATH or in the optionally specified <jarfile>.\n"+ 726 "OPTIONS\n"+ 727 " -j <jarfile> specifies a jarfile from which to load translet\n"+ 728 " -x turns on additional debugging message output\n"+ 729 " -n <iterations> runs the transformation <iterations> times and\n"+ 730 " displays profiling information\n"+ 731 " -u <document_url> specifies XML input document as a URL\n"}, 732 733 734 735 /* 736 * Note to translators: "<xsl:sort>", "<xsl:for-each>" and 737 * "<xsl:apply-templates>" are keywords that should not be translated. 738 * The message indicates that an xsl:sort element must be a child of 739 * one of the other kinds of elements mentioned. 740 */ 741 {ErrorMsg.STRAY_SORT_ERR, 742 "<xsl:sort> can only be used within <xsl:for-each> or <xsl:apply-templates>."}, 743 744 /* 745 * Note to translators: The message indicates that the encoding 746 * requested for the output document was on that requires support that 747 * is not available from the Java Virtual Machine being used to execute 748 * the program. 749 */ 750 {ErrorMsg.UNSUPPORTED_ENCODING, 751 "Output encoding ''{0}'' is not supported on this JVM."}, 752 753 /* 754 * Note to translators: The message indicates that the XPath expression 755 * named in the substitution text was not well formed syntactically. 756 */ 757 {ErrorMsg.SYNTAX_ERR, 758 "Syntax error in ''{0}''."}, 759 760 /* 761 * Note to translators: The substitution text is the name of a Java 762 * class. The term "constructor" here is the Java term. The message is 763 * displayed if XSLTC could not find a constructor for the specified 764 * class. 765 */ 766 {ErrorMsg.CONSTRUCTOR_NOT_FOUND, 767 "Cannot find external constructor ''{0}''."}, 768 769 /* 770 * Note to translators: "static" is the Java keyword. The substitution 771 * text is the name of a function. The first argument of that function 772 * is not of the required type. 773 */ 774 {ErrorMsg.NO_JAVA_FUNCT_THIS_REF, 775 "The first argument to the non-static Java function ''{0}'' is not a "+ 776 "valid object reference."}, 777 778 /* 779 * Note to translators: An XPath expression was not of the type 780 * required in a particular context. The substitution text is the 781 * expression that was in error. 782 */ 783 {ErrorMsg.TYPE_CHECK_ERR, 784 "Error checking type of the expression ''{0}''."}, 785 786 /* 787 * Note to translators: An XPath expression was not of the type 788 * required in a particular context. However, the location of the 789 * problematic expression is unknown. 790 */ 791 {ErrorMsg.TYPE_CHECK_UNK_LOC_ERR, 792 "Error checking type of an expression at an unknown location."}, 793 794 /* 795 * Note to translators: The substitution text is the name of a command- 796 * line option that was not recognized. 797 */ 798 {ErrorMsg.ILLEGAL_CMDLINE_OPTION_ERR, 799 "The command-line option ''{0}'' is not valid."}, 800 801 /* 802 * Note to translators: The substitution text is the name of a command- 803 * line option. 804 */ 805 {ErrorMsg.CMDLINE_OPT_MISSING_ARG_ERR, 806 "The command-line option ''{0}'' is missing a required argument."}, 807 808 /* 809 * Note to translators: This message is used to indicate the severity 810 * of another message. The substitution text contains two error 811 * messages. The spacing before the second substitution text indents 812 * it the same amount as the first in English. 813 */ 814 {ErrorMsg.WARNING_PLUS_WRAPPED_MSG, 815 "WARNING: ''{0}''\n :{1}"}, 816 817 /* 818 * Note to translators: This message is used to indicate the severity 819 * of another message. The substitution text is an error message. 820 */ 821 {ErrorMsg.WARNING_MSG, 822 "WARNING: ''{0}''"}, 823 824 /* 825 * Note to translators: This message is used to indicate the severity 826 * of another message. The substitution text contains two error 827 * messages. The spacing before the second substitution text indents 828 * it the same amount as the first in English. 829 */ 830 {ErrorMsg.FATAL_ERR_PLUS_WRAPPED_MSG, 831 "FATAL ERROR: ''{0}''\n :{1}"}, 832 833 /* 834 * Note to translators: This message is used to indicate the severity 835 * of another message. The substitution text is an error message. 836 */ 837 {ErrorMsg.FATAL_ERR_MSG, 838 "FATAL ERROR: ''{0}''"}, 839 840 /* 841 * Note to translators: This message is used to indicate the severity 842 * of another message. The substitution text contains two error 843 * messages. The spacing before the second substitution text indents 844 * it the same amount as the first in English. 845 */ 846 {ErrorMsg.ERROR_PLUS_WRAPPED_MSG, 847 "ERROR: ''{0}''\n :{1}"}, 848 849 /* 850 * Note to translators: This message is used to indicate the severity 851 * of another message. The substitution text is an error message. 852 */ 853 {ErrorMsg.ERROR_MSG, 854 "ERROR: ''{0}''"}, 855 856 /* 857 * Note to translators: The substitution text is the name of a class. 858 */ 859 {ErrorMsg.TRANSFORM_WITH_TRANSLET_STR, 860 "Transform using translet ''{0}'' "}, 861 862 /* 863 * Note to translators: The first substitution is the name of a class, 864 * while the second substitution is the name of a jar file. 865 */ 866 {ErrorMsg.TRANSFORM_WITH_JAR_STR, 867 "Transform using translet ''{0}'' from jar file ''{1}''"}, 868 869 /* 870 * Note to translators: "TransformerFactory" is the name of a Java 871 * interface and must not be translated. The substitution text is 872 * the name of the class that could not be instantiated. 873 */ 874 {ErrorMsg.COULD_NOT_CREATE_TRANS_FACT, 875 "Could not create an instance of the TransformerFactory class ''{0}''."}, 876 877 /* 878 * Note to translators: This message is produced when the user 879 * specified a name for the translet class that contains characters 880 * that are not permitted in a Java class name. The substitution 881 * text "{0}" specifies the name the user requested, while "{1}" 882 * specifies the name the processor used instead. 883 */ 884 {ErrorMsg.TRANSLET_NAME_JAVA_CONFLICT, 885 "The name ''{0}'' could not be used as the name of the translet "+ 886 "class because it contains characters that are not permitted in the "+ 887 "name of Java class. The name ''{1}'' was used instead."}, 888 889 /* 890 * Note to translators: The following message is used as a header. 891 * All the error messages are collected together and displayed beneath 892 * this message. 893 */ 894 {ErrorMsg.COMPILER_ERROR_KEY, 895 "Compiler errors:"}, 896 897 /* 898 * Note to translators: The following message is used as a header. 899 * All the warning messages are collected together and displayed 900 * beneath this message. 901 */ 902 {ErrorMsg.COMPILER_WARNING_KEY, 903 "Compiler warnings:"}, 904 905 /* 906 * Note to translators: The following message is used as a header. 907 * All the error messages that are produced when the stylesheet is 908 * applied to an input document are collected together and displayed 909 * beneath this message. A 'translet' is the compiled form of a 910 * stylesheet (see above). 911 */ 912 {ErrorMsg.RUNTIME_ERROR_KEY, 913 "Translet errors:"}, 914 915 /* 916 * Note to translators: An attribute whose value is constrained to 917 * be a "QName" or a list of "QNames" had a value that was incorrect. 918 * 'QName' is an XML syntactic term that must not be translated. The 919 * substitution text contains the actual value of the attribute. 920 */ 921 {ErrorMsg.INVALID_QNAME_ERR, 922 "An attribute whose value must be a QName or whitespace-separated list of QNames had the value ''{0}''"}, 923 924 /* 925 * Note to translators: An attribute whose value is required to 926 * be an "NCName". 927 * 'NCName' is an XML syntactic term that must not be translated. The 928 * substitution text contains the actual value of the attribute. 929 */ 930 {ErrorMsg.INVALID_NCNAME_ERR, 931 "An attribute whose value must be an NCName had the value ''{0}''"}, 932 933 /* 934 * Note to translators: An attribute with an incorrect value was 935 * encountered. The permitted value is one of the literal values 936 * "xml", "html" or "text"; it is also permitted to have the form of 937 * a QName that is not also an NCName. The terms "method", 938 * "xsl:output", "xml", "html" and "text" are keywords that must not 939 * be translated. The term "qname-but-not-ncname" is an XML syntactic 940 * term. The substitution text contains the actual value of the 941 * attribute. 942 */ 943 {ErrorMsg.INVALID_METHOD_IN_OUTPUT, 944 "The method attribute of an <xsl:output> element had the value ''{0}''. The value must be one of ''xml'', ''html'', ''text'', or qname-but-not-ncname"}, 945 946 {ErrorMsg.JAXP_GET_FEATURE_NULL_NAME, 947 "The feature name cannot be null in TransformerFactory.getFeature(String name)."}, 948 949 {ErrorMsg.JAXP_SET_FEATURE_NULL_NAME, 950 "The feature name cannot be null in TransformerFactory.setFeature(String name, boolean value)."}, 951 952 {ErrorMsg.JAXP_UNSUPPORTED_FEATURE, 953 "Cannot set the feature ''{0}'' on this TransformerFactory."}, 954 955 {ErrorMsg.JAXP_SECUREPROCESSING_FEATURE, 956 "FEATURE_SECURE_PROCESSING: Cannot set the feature to false when security manager is present."}, 957 958 /* 959 * Note to translators: This message describes an internal error in the 960 * processor. The term "byte code" is a Java technical term for the 961 * executable code in a Java method, and "try-catch-finally block" 962 * refers to the Java keywords with those names. "Outlined" is a 963 * technical term internal to XSLTC and should not be translated. 964 */ 965 {ErrorMsg.OUTLINE_ERR_TRY_CATCH, 966 "Internal XSLTC error: the generated byte code contains a " + 967 "try-catch-finally block and cannot be outlined."}, 968 969 /* 970 * Note to translators: This message describes an internal error in the 971 * processor. The terms "OutlineableChunkStart" and 972 * "OutlineableChunkEnd" are the names of classes internal to XSLTC and 973 * should not be translated. The message indicates that for every 974 * "start" there must be a corresponding "end", and vice versa, and 975 * that if one of a pair of "start" and "end" appears between another 976 * pair of corresponding "start" and "end", then the other half of the 977 * pair must also be between that same enclosing pair. 978 */ 979 {ErrorMsg.OUTLINE_ERR_UNBALANCED_MARKERS, 980 "Internal XSLTC error: OutlineableChunkStart and " + 981 "OutlineableChunkEnd markers must be balanced and properly nested."}, 982 983 /* 984 * Note to translators: This message describes an internal error in the 985 * processor. The term "byte code" is a Java technical term for the 986 * executable code in a Java method. The "method" that is being 987 * referred to is a Java method in a translet that XSLTC is generating 988 * in processing a stylesheet. The "instruction" that is being 989 * referred to is one of the instrutions in the Java byte code in that 990 * method. "Outlined" is a technical term internal to XSLTC and 991 * should not be translated. 992 */ 993 {ErrorMsg.OUTLINE_ERR_DELETED_TARGET, 994 "Internal XSLTC error: an instruction that was part of a block of " + 995 "byte code that was outlined is still referred to in the original " + 996 "method." 997 }, 998 999 1000 /* 1001 * Note to translators: This message describes an internal error in the 1002 * processor. The "method" that is being referred to is a Java method 1003 * in a translet that XSLTC is generating. 1004 * 1005 */ 1006 {ErrorMsg.OUTLINE_ERR_METHOD_TOO_BIG, 1007 "Internal XSLTC error: a method in the translet exceeds the Java " + 1008 "Virtual Machine limitation on the length of a method of 64 " + 1009 "kilobytes. This is usually caused by templates in a stylesheet " + 1010 "that are very large. Try restructuring your stylesheet to use " + 1011 "smaller templates." 1012 }, 1013 1014 {ErrorMsg.DESERIALIZE_TRANSLET_ERR, "When Java security is enabled, " + 1015 "support for deserializing TemplatesImpl is disabled." + 1016 "This can be overridden by setting the jdk.xml.enableTemplatesImplDeserialization" + 1017 " system property to true."} 1018 1019 }; 1020 1021 } 1022 }