ErrorMessages.java revision 559
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * reserved comment block
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * DO NOT REMOVE OR ALTER!
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Copyright 2001-2004 The Apache Software Foundation.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Licensed under the Apache License, Version 2.0 (the "License");
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * you may not use this file except in compliance with the License.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * You may obtain a copy of the License at
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Unless required by applicable law or agreed to in writing, software
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * distributed under the License is distributed on an "AS IS" BASIS,
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * See the License for the specific language governing permissions and
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * limitations under the License.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * $Id: ErrorMessages.java,v 1.2.4.1 2005/09/15 09:59:41 pvedula Exp $
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkpackage com.sun.org.apache.xalan.internal.xsltc.compiler.util;
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * @author Morten Jorgensen
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkpublic class ErrorMessages extends ListResourceBundle {
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * XSLTC compile-time error messages.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * General notes to translators and definitions:
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * 1) XSLTC is the name of the product. It is an acronym for "XSLT Compiler".
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * XSLT is an acronym for "XML Stylesheet Language: Transformations".
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * 2) A stylesheet is a description of how to transform an input XML document
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * into a resultant XML document (or HTML document or text). The
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * stylesheet itself is described in the form of an XML document.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * 3) A template is a component of a stylesheet that is used to match a
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * particular portion of an input document and specifies the form of the
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * corresponding portion of the output document.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * 4) An axis is a particular "dimension" in a tree representation of an XML
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * document; the nodes in the tree are divided along different axes.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Traversing the "child" axis, for instance, means that the program
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * would visit each child of a particular node; traversing the "descendant"
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * axis means that the program would visit the child nodes of a particular
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * node, their children, and so on until the leaf nodes of the tree are
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * 5) An iterator is an object that traverses nodes in a tree along a
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * particular axis, one at a time.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * 6) An element is a mark-up tag in an XML document; an attribute is a
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * modifier on the tag. For example, in <elem attr='val' attr2='val2'>
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * "elem" is an element name, "attr" and "attr2" are attribute names with
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * the values "val" and "val2", respectively.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * 7) A namespace declaration is a special attribute that is used to associate
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * a prefix with a URI (the namespace). The meanings of element names and
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * attribute names that use that prefix are defined with respect to that
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * namespace.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * 8) DOM is an acronym for Document Object Model. It is a tree
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * representation of an XML document.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * SAX is an acronym for the Simple API for XML processing. It is an API
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * used inform an XML processor (in this case XSLTC) of the structure and
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * content of an XML document.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Input to the stylesheet processor can come from an XML parser in the
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * form of a DOM tree or through the SAX API.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * 9) DTD is a document type declaration. It is a way of specifying the
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * grammar for an XML file, the names and types of elements, attributes,
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * 10) XPath is a specification that describes a notation for identifying
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * nodes in a tree-structured representation of an XML document. An
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * instance of that notation is referred to as an XPath expression.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * 11) Translet is an invented term that refers to the class file that contains
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * the compiled form of a stylesheet.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk // These message should be read from a locale-specific resource bundle
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk private static final Object[][] _contents = new Object[][] {
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk "More than one stylesheet defined in the same file."},
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Note to translators: The substitution text is the name of a
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * template. The same name was used on two different templates in the
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * same stylesheet.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk "Template ''{0}'' already defined in this stylesheet."},
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Note to translators: The substitution text is the name of a
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * template. A reference to the template name was encountered, but the
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * template is undefined.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk "Template ''{0}'' not defined in this stylesheet."},
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Note to translators: The substitution text is the name of a variable
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * that was defined more than once.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk "Variable ''{0}'' is multiply defined in the same scope."},
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Note to translators: The substitution text is the name of a variable
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * or parameter. A reference to the variable or parameter was found,
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * but it was never defined.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk "Variable or parameter ''{0}'' is undefined."},
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Note to translators: The word "class" here refers to a Java class.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Processing the stylesheet required a class to be loaded, but it could
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * not be found. The substitution text is the name of the class.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk "Cannot find class ''{0}''."},
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Note to translators: The word "method" here refers to a Java method.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Processing the stylesheet required a reference to the method named by
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * the substitution text, but it could not be found. "public" is the
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Java keyword.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk "Cannot find external method ''{0}'' (must be public)."},
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Note to translators: The word "method" here refers to a Java method.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Processing the stylesheet required a reference to the method named by
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * the substitution text, but no method with the required types of
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * arguments or return type could be found.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk "Cannot convert argument/return type in call to method ''{0}''"},
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Note to translators: The file or URI named in the substitution text
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * is missing.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk "File or URI ''{0}'' not found."},
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Note to translators: This message is displayed when the URI
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * mentioned in the substitution text is not well-formed syntactically.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk "Invalid URI ''{0}''."},
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Note to translators: The file or URI named in the substitution text
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * exists but could not be opened.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk "Cannot open file or URI ''{0}''."},
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Note to translators: <xsl:stylesheet> and <xsl:transform> are
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * keywords that should not be translated.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk "<xsl:stylesheet> or <xsl:transform> element expected."},
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Note to translators: The stylesheet contained a reference to a
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * namespace prefix that was undefined. The value of the substitution
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * text is the name of the prefix.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk "Namespace prefix ''{0}'' is undeclared."},
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Note to translators: The Java function named in the stylesheet could
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * not be found.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk "Unable to resolve call to function ''{0}''."},
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Note to translators: The substitution text is the name of a
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * function. A literal string here means a constant string value.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk "Argument to ''{0}'' must be a literal string."},
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Note to translators: This message indicates there was a syntactic
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * error in the form of an XPath expression. The substitution text is
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * the expression.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk "Error parsing XPath expression ''{0}''."},
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Note to translators: An element in the stylesheet requires a
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * particular attribute named by the substitution text, but that
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * attribute was not specified in the stylesheet.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk "Required attribute ''{0}'' is missing."},
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Note to translators: This message indicates that a character not
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * permitted in an XPath expression was encountered. The substitution
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * text is the offending character.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk "Illegal character ''{0}'' in XPath expression."},
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Note to translators: A processing instruction is a mark-up item in
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * an XML document that request some behaviour of an XML processor. The
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * form of the name of was invalid in this case, and the substitution
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * text is the name.
"An attribute whose value must be a QName or whitespace-separated list of QNames had the value ''{0}''"},
"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"},
"This can be overridden by setting the jdk.xml.enableTemplatesImplDeserialization" +
return _contents;