/*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 1999-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: XSLTErrorResources.java,v 1.2.4.1 2005/09/13 09:55:37 pvedula Exp $
*/
/**
* Set up error messages.
* We build a two dimensional array of message keys and
* message strings. In order to add a new message here,
* you need to first add a String constant. And
* you need to enter key , value pair as part of contents
* Array. You also need to update MAX_CODE for error strings
* and MAX_WARNING for warnings ( Needed for only information
* purpose )
*/
{
/*
* This file contains error and warning messages related to Xalan Error
* Handling.
*
* General notes to translators:
*
* 1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of
* components.
* XSLT is an acronym for "XML Stylesheet Language: Transformations".
* XSLTC is an acronym for XSLT Compiler.
*
* 2) A stylesheet is a description of how to transform an input XML document
* into a resultant XML document (or HTML document or text). The
* stylesheet itself is described in the form of an XML document.
*
* 3) A template is a component of a stylesheet that is used to match a
* particular portion of an input document and specifies the form of the
* corresponding portion of the output document.
*
* 4) An element is a mark-up tag in an XML document; an attribute is a
* modifier on the tag. For example, in <elem attr='val' attr2='val2'>
* "elem" is an element name, "attr" and "attr2" are attribute names with
* the values "val" and "val2", respectively.
*
* 5) A namespace declaration is a special attribute that is used to associate
* a prefix with a URI (the namespace). The meanings of element names and
* attribute names that use that prefix are defined with respect to that
* namespace.
*
* 6) "Translet" is an invented term that describes the class file that
* results from compiling an XML stylesheet into a Java class.
*
* 7) XPath is a specification that describes a notation for identifying
* nodes in a tree-structured representation of an XML document. An
* instance of that notation is referred to as an XPath expression.
*
*/
/*
* Static variables
*/
"ER_INVALID_SET_NAMESPACE_URI_VALUE_FOR_RESULT_PREFIX";
"ER_INVALID_NAMESPACE_URI_VALUE_FOR_RESULT_PREFIX_FOR_DEFAULT";
public static final String ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES="ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES";
"ER_BAD_VAL_ON_LEVEL_ATTRIB";
"ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML";
"ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME";
"ER_NEED_NAME_OR_MATCH_ATTRIB";
"ER_CANT_RESOLVE_NSPREFIX";
"ER_COULD_NOT_CREATE_XML_PROC_LIAISON";
"ER_PROCESS_NOT_SUCCESSFUL";
"ER_ENCODING_NOT_SUPPORTED";
"ER_COULD_NOT_CREATE_TRACELISTENER";
"ER_KEY_REQUIRES_NAME_ATTRIB";
"ER_KEY_REQUIRES_MATCH_ATTRIB";
"ER_KEY_REQUIRES_USE_ATTRIB";
"ER_REQUIRES_ELEMENTS_ATTRIB";
"ER_MISSING_PREFIX_ATTRIB";
"ER_STYLESHEET_INCLUDES_ITSELF";
"ER_MISSING_CONTAINER_ELEMENT_COMPONENT";
"ER_CAN_ONLY_OUTPUT_TO_ELEMENT";
"ER_CANNOT_SERIALIZE_XSLPROCESSOR";
"ER_FAILED_PROCESS_STYLESHEET";
"ER_COULDNT_FIND_FRAGMENT";
"ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB";
"ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB";
"ER_NO_CLONE_OF_DOCUMENT_FRAG";
"ER_XMLSPACE_ILLEGAL_VALUE";
"ER_NO_XSLKEY_DECLARATION";
"ER_XSLFUNCTIONS_UNSUPPORTED";
"ER_NOT_ALLOWED_INSIDE_STYLESHEET";
"ER_RESULTNS_NOT_SUPPORTED";
"ER_DEFAULTSPACE_NOT_SUPPORTED";
"ER_INDENTRESULT_NOT_SUPPORTED";
"ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE";
"ER_MISPLACED_XSLOTHERWISE";
"ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE";
"ER_NOT_ALLOWED_INSIDE_TEMPLATE";
"ER_UNKNOWN_EXT_NS_PREFIX";
"ER_IMPORTS_AS_FIRST_ELEM";
"ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL";
"ER_CURRENCY_SIGN_ILLEGAL";
"ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM";
"ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER";
"ER_REDIRECT_COULDNT_GET_FILENAME";
"ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT";
"ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX";
"ER_MISSING_ARG_FOR_OPTION";
"ER_MALFORMED_FORMAT_STRING";
"ER_STYLESHEET_REQUIRES_VERSION_ATTRIB";
"ER_ILLEGAL_ATTRIBUTE_VALUE";
"ER_NO_APPLY_IMPORT_IN_FOR_EACH";
"ER_CANT_USE_DTM_FOR_OUTPUT";
"ER_CANT_USE_DTM_FOR_INPUT";
"ER_INVALID_UTF16_SURROGATE";
"ER_XSLATTRSET_USED_ITSELF";
"ER_IN_ELEMTEMPLATEELEM_READOBJECT";
"ER_DUPLICATE_NAMED_TEMPLATE";
"ER_ILLEGAL_DOMSOURCE_INPUT";
"ER_CLASS_NOT_FOUND_FOR_OPTION";
"ER_REQUIRED_ELEM_NOT_FOUND";
"ER_SOURCE_CANNOT_BE_NULL";
"ER_CANNOT_CREATE_EXTENSN";
"ER_INSTANCE_MTHD_CALL_REQUIRES";
"ER_ELEMENT_NAME_METHOD_STATIC";
"ER_EXTENSION_FUNC_UNKNOWN";
"ER_MORE_MATCH_CONSTRUCTOR";
"ER_INVALID_CONTEXT_PASSED";
"ER_POOL_SIZE_LESSTHAN_ONE";
"ER_ILLEGAL_XMLSPACE_VALUE";
"ER_PROCESSFROMNODE_FAILED";
"ER_RESOURCE_COULD_NOT_LOAD";
"ER_BUFFER_SIZE_LESSTHAN_ZERO";
"ER_UNKNOWN_ERROR_CALLING_EXTENSION";
"ER_ELEM_CONTENT_NOT_ALLOWED";
"ER_STYLESHEET_DIRECTED_TERMINATION";
"ER_COULD_NOT_LOAD_RESOURCE";
"ER_CANNOT_INIT_DEFAULT_TEMPLATES";
"ER_RESULT_COULD_NOT_BE_SET";
"ER_CANNOT_TRANSFORM_TO_RESULT_TYPE";
"ER_CANNOT_TRANSFORM_SOURCE_TYPE";
"ER_NO_STYLESHEET_IN_MEDIA";
"ER_PROPERTY_VALUE_BOOLEAN";
"ER_COULD_NOT_FIND_EXTERN_SCRIPT";
"ER_RESOURCE_COULD_NOT_FIND";
"ER_OUTPUT_PROPERTY_NOT_RECOGNIZED";
"ER_FAILED_CREATING_ELEMLITRSLT";
"ER_VALUE_SHOULD_BE_NUMBER";
"ER_FAILED_CALLING_METHOD";
"ER_FAILED_CREATING_ELEMTMPL";
"ER_ATTRIB_VALUE_NOT_FOUND";
"ER_ATTRIB_VALUE_NOT_RECOGNIZED";
"ER_CANNOT_FIND_SAX1_DRIVER";
"ER_SAX1_DRIVER_NOT_LOADED";
"ER_SAX1_DRIVER_NOT_INSTANTIATED" ;
"ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER";
"ER_PARSER_PROPERTY_NOT_SPECIFIED";
"ER_PARSER_ARG_CANNOT_BE_NULL" ;
"ER_NO_DRIVER_NAME_SPECIFIED";
"ER_POOLSIZE_LESS_THAN_ONE";
"ER_ASSERT_NO_TEMPLATE_PARENT";
"ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR";
"ER_NOT_ALLOWED_IN_POSITION";
"ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION";
"ER_NAMESPACE_CONTEXT_NULL_NAMESPACE";
"ER_NAMESPACE_CONTEXT_NULL_PREFIX";
"ER_XPATH_RESOLVER_NULL_QNAME";
"ER_XPATH_RESOLVER_NEGATIVE_ARITY";
"ER_FUNCTION_NOT_FOUND";
"ER_CANT_HAVE_CONTENT_AND_SELECT";
"ER_SET_FEATURE_NULL_NAME";
"ER_GET_FEATURE_NULL_NAME";
"ER_UNSUPPORTED_FEATURE";
"ER_EXTENSION_ELEMENT_NOT_ALLOWED_IN_SECURE_PROCESSING";
"WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR";
"WG_EXPR_ATTRIB_CHANGED_TO_SELECT";
"WG_NO_LOCALE_IN_FORMATNUMBER";
"WG_CANNOT_LOAD_REQUESTED_DOC";
"WG_FUNCTIONS_SHOULD_USE_URL";
"WG_ENCODING_NOT_SUPPORTED_USING_UTF8";
"WG_ENCODING_NOT_SUPPORTED_USING_JAVA";
"WG_SPECIFICITY_CONFLICTS";
"WG_PARSING_AND_PREPARING";
public static final String WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE = "WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESP";
"WG_NO_DECIMALFORMAT_DECLARATION";
"WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED";
"WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE";
"WG_COULD_NOT_RESOLVE_PREFIX";
"WG_STYLESHEET_REQUIRES_VERSION_ATTRIB";
"WG_ILLEGAL_ATTRIBUTE_NAME";
"WG_ILLEGAL_ATTRIBUTE_VALUE";
"WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML";
"WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME";
"WG_ILLEGAL_ATTRIBUTE_POSITION";
"NO_MODIFICATION_ALLOWED_ERR";
/*
* Now fill in the message text.
* Then fill in the message text for that message code in the
* array. Use the new error code as the index into the array.
*/
// Error messages...
/** Error message ID that has a null message, but takes in a single object. */
{"ER0000" , "{0}" },
"Error: Can not have '{' within expression"},
"{0} has an illegal attribute: {1}"},
"sourceNode is null in xsl:apply-imports!"},
"Can not add {0} to {1}"},
"sourceNode is null in handleApplyTemplatesInstruction!"},
"{0} must have a name attribute."},
"Could not find template named: {0}"},
"Could not resolve name AVT in xsl:call-template."},
"{0} requires attribute: {1}"},
"{0} must have a ''test'' attribute."},
"Bad value on level attribute: {0}"},
"processing-instruction name can not be 'xml'"},
"processing-instruction name must be a valid NCName: {0}"},
"{0} must have a match attribute if it has a mode."},
"{0} requires either a name or a match attribute."},
"Can not resolve namespace prefix: {0}"},
"xml:space has an illegal value: {0}"},
"Child node does not have an owner document!"},
"ElemTemplateElement error: {0}"},
"Trying to add a null child!"},
"{0} requires a select attribute."},
"xsl:when must have a 'test' attribute."},
"xsl:with-param must have a 'name' attribute."},
"context does not have an owner document!"},
"Could not create XML TransformerFactory Liaison: {0}"},
"Xalan: Process was not successful."},
"Xalan: was not successful."},
"Encoding not supported: {0}"},
"Could not create TraceListener: {0}"},
"xsl:key requires a 'name' attribute!"},
"xsl:key requires a 'match' attribute!"},
"xsl:key requires a 'use' attribute!"},
"(StylesheetHandler) {0} requires an ''elements'' attribute!"},
"(StylesheetHandler) {0} attribute ''prefix'' is missing"},
"Stylesheet URL is bad: {0}"},
"Stylesheet file was not found: {0}"},
"Had IO Exception with stylesheet file: {0}"},
"(StylesheetHandler) Could not find href attribute for {0}"},
"(StylesheetHandler) {0} is directly or indirectly including itself!"},
"StylesheetHandler.processInclude error, {0}"},
"(StylesheetHandler) {0} attribute ''lang'' is missing"},
"(StylesheetHandler) misplaced {0} element?? Missing container element ''component''"},
"Can only output to an Element, DocumentFragment, Document, or PrintWriter."},
"StylesheetRoot.process error"},
"UnImplNode error: {0}"},
"Error! Did not find xpath select expression (-select)."},
"Can not serialize an XSLProcessor!"},
"Stylesheet input was not specified!"},
"Failed to process stylesheet!"},
"Could not parse {0} document!"},
"Could not find fragment: {0}"},
"Node pointed to by fragment identifier was not an element: {0}"},
"for-each must have either a match or name attribute"},
"templates must have either a match or name attribute"},
"No clone of a document fragment!"},
"Can not create item in result tree: {0}"},
"xml:space in the source XML has an illegal value: {0}"},
"There is no xsl:key declaration for {0}!"},
"Error! Cannot create url for: {0}"},
"xsl:functions is unsupported"},
"XSLT TransformerFactory Error"},
"(StylesheetHandler) {0} not allowed inside a stylesheet!"},
"result-ns no longer supported! Use xsl:output instead."},
"default-space no longer supported! Use xsl:strip-space or xsl:preserve-space instead."},
"indent-result no longer supported! Use xsl:output instead."},
"(StylesheetHandler) {0} has an illegal attribute: {1}"},
"Unknown XSL element: {0}"},
"(StylesheetHandler) xsl:sort can only be used with xsl:apply-templates or xsl:for-each."},
"(StylesheetHandler) misplaced xsl:when!"},
"(StylesheetHandler) xsl:when not parented by xsl:choose!"},
"(StylesheetHandler) misplaced xsl:otherwise!"},
"(StylesheetHandler) xsl:otherwise not parented by xsl:choose!"},
"(StylesheetHandler) {0} is not allowed inside a template!"},
"(StylesheetHandler) {0} extension namespace prefix {1} unknown"},
"(StylesheetHandler) Imports can only occur as the first elements in the stylesheet!"},
"(StylesheetHandler) {0} is directly or indirectly importing itself!"},
"(StylesheetHandler) " + "xml:space has an illegal value: {0}"},
"processStylesheet not succesfull!"},
"SAX Exception"},
// add this message to fix bug 21478
"Function not supported!"},
"XSLT Error"},
"currency sign is not allowed in format pattern string"},
"Document function not supported in Stylesheet DOM!"},
"Can't resolve prefix of non-Prefix resolver!"},
"Redirect extension: Could not get filename - file or select attribute must return vald string."},
"Can not build FormatterListener in Redirect extension!"},
"Prefix in exclude-result-prefixes is not valid: {0}"},
"Missing namespace URI for specified prefix"},
"Missing argument for option: {0}"},
"Invalid option: {0}"},
"Malformed format string: {0}"},
"xsl:stylesheet requires a 'version' attribute!"},
"Attribute: {0} has an illegal value: {1}"},
"xsl:choose requires an xsl:when"},
"xsl:apply-imports not allowed in a xsl:for-each"},
"Cannot use a DTMLiaison for an output DOM node... pass a com.sun.org.apache.xpath.internal.DOM2Helper instead!"},
"Cannot use a DTMLiaison for a input DOM node... pass a com.sun.org.apache.xpath.internal.DOM2Helper instead!"},
"Call to extension element failed: {0}"},
"Prefix must resolve to a namespace: {0}"},
"Invalid UTF-16 surrogate detected: {0} ?"},
"xsl:attribute-set {0} used itself, which will cause an infinite loop."},
"Can not mix non Xerces-DOM input with Xerces-DOM output!"},
"addTraceListenersToStylesheet - TooManyListenersException"},
"In ElemTemplateElement.readObject: {0}"},
"Found more than one template named: {0}"},
"Invalid function call: recursive key() calls are not allowed"},
"Variable {0} is directly or indirectly referencing itself!"},
"The input node can not be null for a DOMSource for newTemplates!"},
"Class file not found for option {0}"},
"Required Element not found: {0}"},
"InputStream cannot be null"},
"URI cannot be null"},
"File cannot be null"},
"InputSource cannot be null"},
"Could not initialize BSF Manager"},
"Could not compile extension"},
"Could not create extension: {0} because of: {1}"},
"Instance method call to method {0} requires an Object instance as first argument"},
"Invalid element name specified {0}"},
"Element name method must be static {0}"},
"Extension function {0} : {1} is unknown"},
"More than one best match for constructor for {0}"},
"More than one best match for method {0}"},
"More than one best match for element method {0}"},
"Invalid context passed to evaluate {0}"},
"Pool already exists"},
"No driver Name specified"},
{ ER_NO_URL,
"No URL specified"},
"Pool size is less than one!"},
"Invalid driver name specified!"},
"Did not find the stylesheet root!"},
"Illegal value for xml:space"},
"processFromNode failed"},
"The resource [ {0} ] could not load: {1} \n {2} \t {3}"},
"Buffer size <=0"},
"Unknown error when calling extension"},
"Prefix {0} does not have a corresponding namespace declaration"},
"Element content not allowed for lang=javaclass {0}"},
"Stylesheet directed termination"},
"1 or 2"},
"2 or 3"},
"Could not load {0} (check CLASSPATH), now using just the defaults"},
"Cannot initialize default templates"},
"Result should not be null"},
"Result could not be set"},
"No output specified"},
"Can''t transform to a Result of type {0}"},
"Can''t transform a Source of type {0}"},
"Null content handler"},
"Null error handler"},
"parse can not be called if the ContentHandler has not been set"},
"No parent for filter"},
"No stylesheet found in: {0}, media= {1}"},
"No xml-stylesheet PI found in: {0}"},
"Not supported: {0}"},
"Value for property {0} should be a Boolean instance"},
"Could not get to external script at {0}"},
"The resource [ {0} ] could not be found.\n {1}"},
"Output property not recognized: {0}"},
"Failed creating ElemLiteralResult instance"},
//Earlier (JDK 1.4 XALAN 2.2-D11) at key code '204' the key name was ER_PRIORITY_NOT_PARSABLE
// In latest Xalan code base key name is ER_VALUE_SHOULD_BE_NUMBER. This should also be taken care
//in locale specific files like XSLTErrorResources_de.java, XSLTErrorResources_fr.java etc.
//NOTE: Not only the key name but message has also been changed.
"Value for {0} should contain a parsable number"},
"Value for {0} should equal yes or no"},
"Failed calling {0} method"},
"Failed creating ElemTemplateElement instance"},
"Characters are not allowed at this point in the document"},
"\"{0}\" attribute is not allowed on the {1} element!"},
{ ER_BAD_VALUE,
"{0} bad value {1} "},
"{0} attribute value not found "},
"{0} attribute value not recognized "},
"Attempting to generate a namespace prefix with a null URI"},
"Attempting to format a number bigger than the largest Long integer"},
"Cannot find SAX1 driver class {0}"},
"SAX1 driver class {0} found but cannot be loaded"},
"SAX1 driver class {0} loaded but cannot be instantiated"},
"SAX1 driver class {0} does not implement org.xml.sax.Parser"},
"System property org.xml.sax.parser not specified"},
"Parser argument must not be null"},
{ ER_FEATURE,
"Feature: {0}"},
{ ER_PROPERTY,
"Property: {0}"},
"Null entity resolver"},
"Null DTD handler"},
"No Driver Name Specified!"},
"No URL Specified!"},
"Pool size is less than 1!"},
"Invalid Driver Name Specified!"},
"ErrorListener"},
// Note to translators: The following message should not normally be displayed
// to users. It describes a situation in which the processor has detected
// an internal consistency problem in itself, and it provides this message
// for the developer to help diagnose the problem. The name
// 'ElemTemplateElement' is the name of a class, and should not be
// translated.
"Programmer's error! The expression has no ElemTemplateElement parent!"},
// Note to translators: The following message should not normally be displayed
// to users. It describes a situation in which the processor has detected
// an internal consistency problem in itself, and it provides this message
// for the developer to help diagnose the problem. The substitution text
// provides further information in order to diagnose the problem. The name
// 'RedundentExprEliminator' is the name of a class, and should not be
// translated.
"Programmer''s assertion in RedundentExprEliminator: {0}"},
"{0} is not allowed in this position in the stylesheet!"},
"Non-whitespace text is not allowed in this position in the stylesheet!"},
// This code is shared with warning codes.
// SystemId Unknown
"Illegal value: {1} used for CHAR attribute: {0}. An attribute of type CHAR must be only 1 character!"},
// Note to translators: The following message is used if the value of
// an attribute in a stylesheet is invalid. "QNAME" is the XML data-type of
// the attribute, and should not be translated. The substitution text {1} is
// the attribute value and {0} is the attribute name.
//The following codes are shared with the warning codes...
"Illegal value: {1} used for QNAME attribute: {0}"},
// Note to translators: The following message is used if the value of
// an attribute in a stylesheet is invalid. "ENUM" is the XML data-type of
// the attribute, and should not be translated. The substitution text {1} is
// the attribute value, {0} is the attribute name, and {2} is a list of valid
// values.
{ INVALID_ENUM,
"Illegal value: {1} used for ENUM attribute: {0}. Valid values are: {2}."},
// Note to translators: The following message is used if the value of
// an attribute in a stylesheet is invalid. "NMTOKEN" is the XML data-type
// of the attribute, and should not be translated. The substitution text {1} is
// the attribute value and {0} is the attribute name.
"Illegal value: {1} used for NMTOKEN attribute: {0} "},
// Note to translators: The following message is used if the value of
// an attribute in a stylesheet is invalid. "NCNAME" is the XML data-type
// of the attribute, and should not be translated. The substitution text {1} is
// the attribute value and {0} is the attribute name.
"Illegal value: {1} used for NCNAME attribute: {0} "},
// Note to translators: The following message is used if the value of
// an attribute in a stylesheet is invalid. "boolean" is the XSLT data-type
// of the attribute, and should not be translated. The substitution text {1} is
// the attribute value and {0} is the attribute name.
"Illegal value: {1} used for boolean attribute: {0} "},
// Note to translators: The following message is used if the value of
// an attribute in a stylesheet is invalid. "number" is the XSLT data-type
// of the attribute, and should not be translated. The substitution text {1} is
// the attribute value and {0} is the attribute name.
"Illegal value: {1} used for number attribute: {0} "},
// End of shared codes...
// Note to translators: A "match pattern" is a special form of XPath expression
// that is used for matching patterns. The substitution text is the name of
// a function. The message indicates that when this function is referenced in
// a match pattern, its argument must be a string literal (or constant.)
// ER_ARG_LITERAL - new error message for bugzilla //5202
"Argument to {0} in match pattern must be a literal."},
// Note to translators: The following message indicates that two definitions of
// a variable. A "global variable" is a variable that is accessible everywher
// in the stylesheet.
// ER_DUPLICATE_GLOBAL_VAR - new error message for bugzilla #790
"Duplicate global variable declaration."},
// Note to translators: The following message indicates that two definitions of
// a variable were encountered.
// ER_DUPLICATE_VAR - new error message for bugzilla #790
"Duplicate variable declaration."},
// Note to translators: "xsl:template, "name" and "match" are XSLT keywords
// which must not be translated.
// ER_TEMPLATE_NAME_MATCH - new error message for bugzilla #789
"xsl:template must have a name or match attribute (or both)"},
// Note to translators: "exclude-result-prefixes" is an XSLT keyword which
// should not be translated. The message indicates that a namespace prefix
// encountered as part of the value of the exclude-result-prefixes attribute
// was in error.
// ER_INVALID_PREFIX - new error message for bugzilla #788
"Prefix in exclude-result-prefixes is not valid: {0}"},
// Note to translators: An "attribute set" is a set of attributes that can
// be added to an element in the output document as a group. The message
// indicates that there was a reference to an attribute set named {0} that
// was never defined.
// ER_NO_ATTRIB_SET - new error message for bugzilla #782
"attribute-set named {0} does not exist"},
// Note to translators: This message indicates that there was a reference
// to a function named {0} for which no function definition could be found.
"The function named {0} does not exist"},
// Note to translators: This message indicates that the XSLT instruction
// that is named by the substitution text {0} must not contain other XSLT
// instructions (content) or a "select" attribute. The word "select" is
// an XSLT keyword in this case and must not be translated.
"The {0} element must not have both content and a select attribute."},
// Note to translators: This message indicates that the value argument
// of setParameter must be a valid Java Object.
"The value of param {0} must be a valid Java Object"},
"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"},
"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."},
"The feature name cannot be null in TransformerFactory.setFeature(String name, boolean value)."},
"The feature name cannot be null in TransformerFactory.getFeature(String name)."},
"Cannot set the feature ''{0}'' on this TransformerFactory."},
"Use of the extension element ''{0}'' is not allowed when the secure processing feature is set to true."},
"Cannot get the prefix for a null namespace uri."},
"Cannot get the namespace uri for null prefix."},
"The function name cannot be null."},
"The arity cannot be negative."},
// Warnings...
"Found '}' but no attribute template open!"},
"Warning: count attribute does not match an ancestor in xsl:number! Target = {0}"},
"Old syntax: The name of the 'expr' attribute has been changed to 'select'."},
"Xalan doesn't yet handle the locale name in the format-number function."},
"Warning: Could not find locale for xml:lang={0}"},
"Can not make URL from: {0}"},
"Can not load requested doc: {0}"},
"Could not find Collator for <sort xml:lang={0}"},
"Old syntax: the functions instruction should use a url of {0}"},
"encoding not supported: {0}, using UTF-8"},
"encoding not supported: {0}, using Java {1}"},
"Specificity conflicts found: {0} Last found in stylesheet will be used."},
"========= Parsing and preparing {0} =========="},
"Attr Template, {0}"},
"Match conflict between xsl:strip-space and xsl:preserve-space"},
"Xalan does not yet handle the {0} attribute!"},
"No declaration found for decimal format: {0}"},
"Missing or incorrect XSLT Namespace. "},
"Only one default xsl:decimal-format declaration is allowed."},
"xsl:decimal-format names must be unique. Name \"{0}\" has been duplicated."},
"{0} has an illegal attribute: {1}"},
"Could not resolve namespace prefix: {0}. The node will be ignored."},
"xsl:stylesheet requires a 'version' attribute!"},
"Illegal attribute name: {0}"},
"Illegal value used for attribute {0}: {1}"},
"Resulting nodeset from second argument of document function is empty. Return an empty node-set."},
//Following are the new WARNING keys added in XALAN code base after Jdk 1.4 (Xalan 2.2-D11)
// Note to translators: "name" and "xsl:processing-instruction" are keywords
// and must not be translated.
"The value of the 'name' attribute of xsl:processing-instruction name must not be 'xml'"},
// Note to translators: "name" and "xsl:processing-instruction" are keywords
// and must not be translated. "NCName" is an XML data-type and must not be
// translated.
"The value of the ''name'' attribute of xsl:processing-instruction must be a valid NCName: {0}"},
// Note to translators: This message is reported if the stylesheet that is
// being processed attempted to construct an XML document with an attribute in a
// place other than on an element. The substitution text specifies the name of
// the attribute.
"Cannot add attribute {0} after child nodes or before an element is produced. Attribute will be ignored."},
"An attempt is made to modify an object where modifications are not allowed."
},
//Check: WHY THERE IS A GAP B/W NUMBERS in the XSLTErrorResources properties file?
// Other miscellaneous text used inside the code...
{ "ui_language", "en"},
{ "help_language", "en" },
{ "language", "en" },
{ "BAD_CODE", "Parameter to createMessage was out of bounds"},
{ "FORMAT_FAILED", "Exception thrown during messageFormat call"},
{ "version", ">>>>>>> Xalan Version "},
{ "version2", "<<<<<<<"},
{ "yes", "yes"},
{ "line", "Line #"},
{ "column","Column #"},
{ "xsldone", "XSLProcessor: done"},
// Note to translators: The following messages provide usage information
// for the Xalan Process command line. "Process" is the name of a Java class,
// and should not be translated.
{ "xslProc_option", "Xalan-J command line Process class options:"},
{ "xslProc_option", "Xalan-J command line Process class options\u003a"},
{ "xslProc_invalid_xsltc_option", "The option {0} is not supported in XSLTC mode."},
{ "xslProc_invalid_xalan_option", "The option {0} can only be used with -XSLTC."},
{ "xslProc_no_input", "Error: No stylesheet or input xml is specified. Run this command without any option for usage instructions."},
{ "xslProc_common_options", "-Common Options-"},
{ "xslProc_xalan_options", "-Options for Xalan-"},
{ "xslProc_xsltc_options", "-Options for XSLTC-"},
{ "xslProc_return_to_continue", "(press <return> to continue)"},
// Note to translators: The option name and the parameter name do not need to
// be translated. Only translate the messages in parentheses. Note also that
// leading whitespace in the messages is used to indent the usage information
// for each option in the English messages.
// Do not translate the keywords: XSLTC, SAX, DOM and DTM.
{ "optionXSLTC", " [-XSLTC (use XSLTC for transformation)]"},
{ "optionIN", " [-IN inputXMLURL]"},
{ "optionXSL", " [-XSL XSLTransformationURL]"},
{ "optionOUT", " [-OUT outputFileName]"},
{ "optionLXCIN", " [-LXCIN compiledStylesheetFileNameIn]"},
{ "optionLXCOUT", " [-LXCOUT compiledStylesheetFileNameOutOut]"},
{ "optionPARSER", " [-PARSER fully qualified class name of parser liaison]"},
{ "optionE", " [-E (Do not expand entity refs)]"},
{ "optionV", " [-E (Do not expand entity refs)]"},
{ "optionQC", " [-QC (Quiet Pattern Conflicts Warnings)]"},
{ "optionQ", " [-Q (Quiet Mode)]"},
{ "optionESCAPE", " [-ESCAPE (Which characters to escape {default is <>&\"\'\\r\\n}]"},
{ "optionINDENT", " [-INDENT (Control how many spaces to indent {default is 0})]"},
{ "optionTT", " [-TT (Trace the templates as they are being called.)]"},
{ "optionTG", " [-TG (Trace each generation event.)]"},
{ "optionTS", " [-TS (Trace each selection event.)]"},
{ "optionTTC", " [-TTC (Trace the template children as they are being processed.)]"},
{ "optionTCLASS", " [-TCLASS (TraceListener class for trace extensions.)]"},
{ "optionVALIDATE", " [-VALIDATE (Set whether validation occurs. Validation is off by default.)]"},
{ "optionEDUMP", " [-EDUMP {optional filename} (Do stackdump on error.)]"},
{ "optionXML", " [-XML (Use XML formatter and add XML header.)]"},
{ "optionTEXT", " [-TEXT (Use simple Text formatter.)]"},
{ "optionHTML", " [-HTML (Use HTML formatter.)]"},
{ "optionPARAM", " [-PARAM name expression (Set a stylesheet parameter)]"},
{ "noParsermsg1", "XSL Process was not successful."},
{ "noParsermsg2", "** Could not find parser **"},
{ "noParsermsg3", "Please check your classpath."},
{ "noParsermsg4", "If you don't have IBM's XML Parser for Java, you can download it from"},
{ "noParsermsg5", "IBM's AlphaWorks: http://www.alphaworks.ibm.com/formula/xml"},
{ "optionURIRESOLVER", " [-URIRESOLVER full class name (URIResolver to be used to resolve URIs)]"},
{ "optionENTITYRESOLVER", " [-ENTITYRESOLVER full class name (EntityResolver to be used to resolve entities)]"},
{ "optionCONTENTHANDLER", " [-CONTENTHANDLER full class name (ContentHandler to be used to serialize output)]"},
{ "optionLINENUMBERS", " [-L use line numbers for source document]"},
{ "optionSECUREPROCESSING", " [-SECURE (set the secure processing feature to true.)]"},
// Following are the new options added in XSLTErrorResources.properties files after Jdk 1.4 (Xalan 2.2-D11)
{ "optionMEDIA", " [-MEDIA mediaType (use media attribute to find stylesheet associated with a document.)]"},
{ "optionFLAVOR", " [-FLAVOR flavorName (Explicitly use s2s=SAX or d2d=DOM to do transform.)] "}, // Added by sboag/scurcuru; experimental
{ "optionDIAG", " [-DIAG (Print overall milliseconds transform took.)]"},
{ "optionINCREMENTAL", " [-INCREMENTAL (request incremental DTM construction by setting http://xml.apache.org/xalan/features/incremental true.)]"},
{ "optionNOOPTIMIMIZE", " [-NOOPTIMIMIZE (request no stylesheet optimization processing by setting http://xml.apache.org/xalan/features/optimize false.)]"},
{ "optionRL", " [-RL recursionlimit (assert numeric limit on stylesheet recursion depth.)]"},
{ "optionXO", " [-XO [transletName] (assign the name to the generated translet)]"},
{ "optionXD", " [-XD destinationDirectory (specify a destination directory for translet)]"},
{ "optionXJ", " [-XJ jarfile (packages translet classes into a jar file of name <jarfile>)]"},
{ "optionXP", " [-XP package (specifies a package name prefix for all generated translet classes)]"},
//AddITIONAL STRINGS that need L10n
// Note to translators: The following message describes usage of a particular
// command-line option that is used to enable the "template inlining"
// optimization. The optimization involves making a copy of the code
// generated for a template in another template that refers to it.
{ "optionXN", " [-XN (enables template inlining)]" },
{ "optionXX", " [-XX (turns on additional debugging message output)]"},
{ "optionXT" , " [-XT (use translet to transform if possible)]"},
{ "diagTiming"," --------- Transform of {0} via {1} took {2} ms" },
{ "recursionTooDeep","Template nesting too deep. nesting = {0}, template {1} {2}" },
{ "nameIs", "name is" },
{ "matchPatternIs", "match pattern is" }
};
/** Get the lookup table for error messages.
*
* @return The int to message lookup table.
*/
{
return _contents;
}
// ================= INFRASTRUCTURE ======================
/** String for use when a bad error code was encountered. */
/** String for use when formatting of the error string failed. */
/** General error string. */
/** String to prepend to error messages. */
/** String to prepend to warning messages. */
/** String to specify the XSLT module. */
/** String to specify the XML parser module. */
/** I don't think this is used any more.
* @deprecated */
}