System.Xml.Utils.Res.cs 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. namespace System.Xml.Utils {
  2. static partial class Res {
  3. public const string Xml_UserException = @"{0}";
  4. public const string Xml_ErrorFilePosition = @"An error occurred at {0}({1},{2}).";
  5. public const string Xml_InvalidOperation = @"Operation is not valid due to the current state of the object.";
  6. public const string Xml_EndOfInnerExceptionStack = @"--- End of inner exception stack trace ---";
  7. public const string XPath_UnclosedString = @"String literal was not closed.";
  8. public const string XPath_ScientificNotation = @"Scientific notation is not allowed.";
  9. public const string XPath_UnexpectedToken = @"Unexpected token '{0}' in the expression.";
  10. public const string XPath_NodeTestExpected = @"Expected a node test, found '{0}'.";
  11. public const string XPath_EofExpected = @"Expected end of the expression, found '{0}'.";
  12. public const string XPath_TokenExpected = @"Expected token '{0}', found '{1}'.";
  13. public const string XPath_InvalidAxisInPattern = @"Only 'child' and 'attribute' axes are allowed in a pattern outside predicates.";
  14. public const string XPath_PredicateAfterDot = @"Abbreviated step '.' cannot be followed by a predicate. Use the full form 'self::node()[predicate]' instead.";
  15. public const string XPath_PredicateAfterDotDot = @"Abbreviated step '..' cannot be followed by a predicate. Use the full form 'parent::node()[predicate]' instead.";
  16. public const string XPath_NArgsExpected = @"Function '{0}()' must have {1} argument(s).";
  17. public const string XPath_NOrMArgsExpected = @"Function '{0}()' must have {1} or {2} argument(s).";
  18. public const string XPath_AtLeastNArgsExpected = @"Function '{0}()' must have at least {1} argument(s).";
  19. public const string XPath_AtMostMArgsExpected = @"Function '{0}()' must have no more than {2} arguments.";
  20. public const string XPath_NodeSetArgumentExpected = @"Argument {1} of function '{0}()' cannot be converted to a node-set.";
  21. public const string XPath_NodeSetExpected = @"Expression must evaluate to a node-set.";
  22. public const string XPath_RtfInPathExpr = @"To use a result tree fragment in a path expression, first convert it to a node-set using the msxsl:node-set() function.";
  23. public const string Xslt_WarningAsError = @"Warning as Error: {0}";
  24. public const string Xslt_InputTooComplex = @"The stylesheet is too complex.";
  25. public const string Xslt_CannotLoadStylesheet = @"Cannot load the stylesheet object referenced by URI '{0}', because the provided XmlResolver returned an object of type '{1}'. One of Stream, XmlReader, and IXPathNavigable types was expected.";
  26. public const string Xslt_WrongStylesheetElement = @"Stylesheet must start either with an 'xsl:stylesheet' or an 'xsl:transform' element, or with a literal result element that has an 'xsl:version' attribute, where prefix 'xsl' denotes the 'http://www.w3.org/1999/XSL/Transform' namespace.";
  27. public const string Xslt_WdXslNamespace = @"The 'http://www.w3.org/TR/WD-xsl' namespace is no longer supported.";
  28. public const string Xslt_NotAtTop = @"'{0}' element children must precede all other children of the '{1}' element.";
  29. public const string Xslt_UnexpectedElement = @"'{0}' cannot be a child of the '{1}' element.";
  30. public const string Xslt_NullNsAtTopLevel = @"Top-level element '{0}' may not have a null namespace URI.";
  31. public const string Xslt_TextNodesNotAllowed = @"'{0}' element cannot have text node children.";
  32. public const string Xslt_NotEmptyContents = @"The contents of '{0}' must be empty.";
  33. public const string Xslt_InvalidAttribute = @"'{0}' is an invalid attribute for the '{1}' element.";
  34. public const string Xslt_MissingAttribute = @"Missing mandatory attribute '{0}'.";
  35. public const string Xslt_InvalidAttrValue = @"'{1}' is an invalid value for the '{0}' attribute.";
  36. public const string Xslt_BistateAttribute = @"The value of the '{0}' attribute must be '{1}' or '{2}'.";
  37. public const string Xslt_CharAttribute = @"The value of the '{0}' attribute must be a single character.";
  38. public const string Xslt_CircularInclude = @"Stylesheet '{0}' cannot directly or indirectly include or import itself.";
  39. public const string Xslt_SingleRightBraceInAvt = @"The right curly brace in an attribute value template '{0}' outside an expression must be doubled.";
  40. public const string Xslt_VariableCntSel2 = @"The variable or parameter '{0}' cannot have both a 'select' attribute and non-empty content.";
  41. public const string Xslt_KeyCntUse = @"'xsl:key' has a 'use' attribute and has non-empty content, or it has empty content and no 'use' attribute.";
  42. public const string Xslt_DupTemplateName = @"'{0}' is a duplicate template name.";
  43. public const string Xslt_BothMatchNameAbsent = @"'xsl:template' must have either a 'match' attribute or a 'name' attribute, or both.";
  44. public const string Xslt_InvalidVariable = @"The variable or parameter '{0}' is either not defined or it is out of scope.";
  45. public const string Xslt_DupGlobalVariable = @"The variable or parameter '{0}' was duplicated with the same import precedence.";
  46. public const string Xslt_DupLocalVariable = @"The variable or parameter '{0}' was duplicated within the same scope.";
  47. public const string Xslt_DupNsAlias = @"Namespace URI '{0}' is declared to be an alias for multiple different namespace URIs with the same import precedence.";
  48. public const string Xslt_EmptyAttrValue = @"The value of the '{0}' attribute cannot be empty.";
  49. public const string Xslt_EmptyNsAlias = @"The value of the '{0}' attribute cannot be empty. Use '#default' to specify the default namespace.";
  50. public const string Xslt_UnknownXsltFunction = @"'{0}()' is an unknown XSLT function.";
  51. public const string Xslt_UnsupportedXsltFunction = @"'{0}()' is an unsupported XSLT function.";
  52. public const string Xslt_NoAttributeSet = @"A reference to attribute set '{0}' cannot be resolved. An 'xsl:attribute-set' of this name must be declared at the top level of the stylesheet.";
  53. public const string Xslt_UndefinedKey = @"A reference to key '{0}' cannot be resolved. An 'xsl:key' of this name must be declared at the top level of the stylesheet.";
  54. public const string Xslt_CircularAttributeSet = @"Circular reference in the definition of attribute set '{0}'.";
  55. public const string Xslt_InvalidCallTemplate = @"The named template '{0}' does not exist.";
  56. public const string Xslt_InvalidPrefix = @"Prefix '{0}' is not defined.";
  57. public const string Xslt_ScriptXsltNamespace = @"Script block cannot implement the XSLT namespace.";
  58. public const string Xslt_ScriptInvalidLanguage = @"Scripting language '{0}' is not supported.";
  59. public const string Xslt_ScriptMixedLanguages = @"All script blocks implementing the namespace '{0}' must use the same language.";
  60. public const string Xslt_ScriptCompileException = @"Error occurred while compiling the script: {0}";
  61. public const string Xslt_ScriptNotAtTop = @"Element '{0}' must precede script code.";
  62. public const string Xslt_AssemblyNameHref = @"'msxsl:assembly' must have either a 'name' attribute or an 'href' attribute, but not both.";
  63. public const string Xslt_ScriptAndExtensionClash = @"Cannot have both an extension object and a script implementing the same namespace '{0}'.";
  64. public const string Xslt_NoDecimalFormat = @"Decimal format '{0}' is not defined.";
  65. public const string Xslt_DecimalFormatSignsNotDistinct = @"The '{0}' and '{1}' attributes of 'xsl:decimal-format' must have distinct values.";
  66. public const string Xslt_DecimalFormatRedefined = @"The '{0}' attribute of 'xsl:decimal-format' cannot be redefined with a value of '{1}'.";
  67. public const string Xslt_UnknownExtensionElement = @"'{0}' is not a recognized extension element.";
  68. public const string Xslt_ModeWithoutMatch = @"An 'xsl:template' element without a 'match' attribute cannot have a 'mode' attribute.";
  69. public const string Xslt_ModeListEmpty = @"List of modes in 'xsl:template' element can't be empty. ";
  70. public const string Xslt_ModeListDup = @"List of modes in 'xsl:template' element can't contain duplicates ('{0}'). ";
  71. public const string Xslt_ModeListAll = @"List of modes in 'xsl:template' element can't contain token '#all' together with any other value. ";
  72. public const string Xslt_PriorityWithoutMatch = @"An 'xsl:template' element without a 'match' attribute cannot have a 'priority' attribute.";
  73. public const string Xslt_InvalidApplyImports = @"An 'xsl:apply-imports' element can only occur within an 'xsl:template' element with a 'match' attribute, and cannot occur within an 'xsl:for-each' element.";
  74. public const string Xslt_DuplicateWithParam = @"Value of parameter '{0}' cannot be specified more than once within a single 'xsl:call-template' or 'xsl:apply-templates' element.";
  75. public const string Xslt_ReservedNS = @"Elements and attributes cannot belong to the reserved namespace '{0}'.";
  76. public const string Xslt_XmlnsAttr = @"An attribute with a local name 'xmlns' and a null namespace URI cannot be created.";
  77. public const string Xslt_NoWhen = @"An 'xsl:choose' element must have at least one 'xsl:when' child.";
  78. public const string Xslt_WhenAfterOtherwise = @"'xsl:when' must precede the 'xsl:otherwise' element.";
  79. public const string Xslt_DupOtherwise = @"An 'xsl:choose' element can have only one 'xsl:otherwise' child.";
  80. public const string Xslt_AttributeRedefinition = @"Attribute '{0}' of 'xsl:output' cannot be defined more than once with the same import precedence.";
  81. public const string Xslt_InvalidMethod = @"'{0}' is not a supported output method. Supported methods are 'xml', 'html', and 'text'.";
  82. public const string Xslt_InvalidEncoding = @"'{0}' is not a supported encoding name.";
  83. public const string Xslt_InvalidLanguage = @"'{0}' is not a supported language identifier.";
  84. public const string Xslt_InvalidCompareOption = @"String comparison option(s) '{0}' are either invalid or cannot be used together.";
  85. public const string Xslt_KeyNotAllowed = @"The 'key()' function cannot be used in 'use' and 'match' attributes of 'xsl:key' element.";
  86. public const string Xslt_VariablesNotAllowed = @"Variables cannot be used within this expression.";
  87. public const string Xslt_CurrentNotAllowed = @"The 'current()' function cannot be used in a pattern.";
  88. public const string Xslt_DocumentFuncProhibited = @"Execution of the 'document()' function was prohibited. Use the XsltSettings.EnableDocumentFunction property to enable it.";
  89. public const string Xslt_ScriptsProhibited = @"Execution of scripts was prohibited. Use the XsltSettings.EnableScript property to enable it.";
  90. public const string Xslt_ItemNull = @"Extension functions cannot return null values.";
  91. public const string Xslt_NodeSetNotNode = @"Cannot convert a node-set which contains zero nodes or more than one node to a single node.";
  92. public const string Xslt_UnsupportedClrType = @"Extension function parameters or return values which have Clr type '{0}' are not supported.";
  93. public const string Xslt_NotYetImplemented = @"'{0}' is not yet implemented.";
  94. public const string Xslt_SchemaDeclaration = @"'{0}' declaration is not permitted in non-schema aware processor.";
  95. public const string Xslt_SchemaAttribute = @"Attribute '{0}' is not permitted in basic XSLT processor (http://www.w3.org/TR/xslt20/#dt-basic-xslt-processor).";
  96. public const string Xslt_SchemaAttributeValue = @"Value '{1}' of attribute '{0}' is not permitted in basic XSLT processor (http://www.w3.org/TR/xslt20/#dt-basic-xslt-processor).";
  97. public const string Xslt_ElementCntSel = @"The element '{0}' cannot have both a 'select' attribute and non-empty content.";
  98. public const string Xslt_PerformSortCntSel = @"The element 'xsl:perform-sort' cannot have 'select' attribute any content other than 'xsl:sort' and 'xsl:fallback' instructions.";
  99. public const string Xslt_RequiredAndSelect = @"Mandatory parameter '{0}' must be empty and must not have a 'select' attribute.";
  100. public const string Xslt_NoSelectNoContent = @"Element '{0}' must have either 'select' attribute or non-empty content.";
  101. public const string Xslt_NonTemplateTunnel = @"Stylesheet or function parameter '{0}' cannot have attribute 'tunnel'.";
  102. public const string Xslt_RequiredOnFunction = @"The 'required' attribute must not be specified for parameter '{0}'. Function parameters are always mandatory. ";
  103. public const string Xslt_ExcludeDefault = @"Value '#default' is used within the 'exclude-result-prefixes' attribute and the parent element of this attribute has no default namespace.";
  104. public const string Xslt_CollationSyntax = @"The value of an 'default-collation' attribute contains no recognized collation URI.";
  105. public const string Xslt_AnalyzeStringDupChild = @"'xsl:analyze-string' cannot have second child with name '{0}'.";
  106. public const string Xslt_AnalyzeStringChildOrder = @"When both 'xsl:matching-string' and 'xsl:non-matching-string' elements are present, 'xsl:matching-string' element must come first.";
  107. public const string Xslt_AnalyzeStringEmpty = @"'xsl:analyze-string' must contain either 'xsl:matching-string' or 'xsl:non-matching-string' elements or both.";
  108. public const string Xslt_SortStable = @"Only the first 'xsl:sort' element may have 'stable' attribute.";
  109. public const string Xslt_InputTypeAnnotations = @"It is an error if there is a stylesheet module in the stylesheet that specifies 'input-type-annotations'=""strip"" and another stylesheet module that specifies 'input-type-annotations'=""preserve"".";
  110. public const string Coll_BadOptFormat = @"Collation option '{0}' is invalid. Options must have the following format: <option-name>=<option-value>.";
  111. public const string Coll_Unsupported = @"The collation '{0}' is not supported.";
  112. public const string Coll_UnsupportedLanguage = @"Collation language '{0}' is not supported.";
  113. public const string Coll_UnsupportedOpt = @"Unsupported option '{0}' in collation.";
  114. public const string Coll_UnsupportedOptVal = @"Collation option '{0}' cannot have the value '{1}'.";
  115. public const string Coll_UnsupportedSortOpt = @"Unsupported sort option '{0}' in collation.";
  116. public const string Qil_Validation = @"QIL Validation Error! '{0}'.";
  117. public const string XmlIl_TooManyParameters = @"Functions may not have more than 65535 parameters.";
  118. public const string XmlIl_BadXmlState = @"An item of type '{0}' cannot be constructed within a node of type '{1}'.";
  119. public const string XmlIl_BadXmlStateAttr = @"Attribute and namespace nodes cannot be added to the parent element after a text, comment, pi, or sub-element node has already been added.";
  120. public const string XmlIl_NmspAfterAttr = @"Namespace nodes cannot be added to the parent element after an attribute node has already been added.";
  121. public const string XmlIl_NmspConflict = @"Cannot construct namespace declaration xmlns{0}{1}='{2}'. Prefix '{1}' is already mapped to namespace '{3}'.";
  122. public const string XmlIl_CantResolveEntity = @"Cannot query the data source object referenced by URI '{0}', because the provided XmlResolver returned an object of type '{1}'. Only Stream, XmlReader, and IXPathNavigable data source objects are currently supported.";
  123. public const string XmlIl_NoDefaultDocument = @"Query requires a default data source, but no default was supplied to the query engine.";
  124. public const string XmlIl_UnknownDocument = @"Data source '{0}' cannot be located.";
  125. public const string XmlIl_UnknownParam = @"Supplied XsltArgumentList does not contain a parameter with local name '{0}' and namespace '{1}'.";
  126. public const string XmlIl_UnknownExtObj = @"Cannot find a script or an extension object associated with namespace '{0}'.";
  127. public const string XmlIl_CantStripNav = @"White space cannot be stripped from input documents that have already been loaded. Provide the input document as an XmlReader instead.";
  128. public const string XmlIl_ExtensionError = @"An error occurred during a call to extension function '{0}'. See InnerException for a complete description of the error.";
  129. public const string XmlIl_TopLevelAttrNmsp = @"XmlWriter cannot process the sequence returned by the query, because it contains an attribute or namespace node.";
  130. public const string XmlIl_NoExtensionMethod = @"Extension object '{0}' does not contain a matching '{1}' method that has {2} parameter(s).";
  131. public const string XmlIl_AmbiguousExtensionMethod = @"Ambiguous method call. Extension object '{0}' contains multiple '{1}' methods that have {2} parameter(s).";
  132. public const string XmlIl_NonPublicExtensionMethod = @"Method '{1}' of extension object '{0}' cannot be called because it is not public.";
  133. public const string XmlIl_GenericExtensionMethod = @"Method '{1}' of extension object '{0}' cannot be called because it is generic.";
  134. public const string XmlIl_ByRefType = @"Method '{1}' of extension object '{0}' cannot be called because it has one or more ByRef parameters.";
  135. public const string XmlIl_DocumentLoadError = @"An error occurred while loading document '{0}'. See InnerException for a complete description of the error.";
  136. public const string Xslt_CompileError = @"XSLT compile error at {0}({1},{2}). See InnerException for details.";
  137. public const string Xslt_CompileError2 = @"XSLT compile error.";
  138. public const string Xslt_UnsuppFunction = @"'{0}()' is an unsupported XSLT function.";
  139. public const string Xslt_NotFirstImport = @"'xsl:import' instructions must precede all other element children of an 'xsl:stylesheet' element.";
  140. public const string Xslt_UnexpectedKeyword = @"'{0}' cannot be a child of the '{1}' element.";
  141. public const string Xslt_InvalidContents = @"The contents of '{0}' are invalid.";
  142. public const string Xslt_CantResolve = @"Cannot resolve the referenced document '{0}'.";
  143. public const string Xslt_SingleRightAvt = @"Right curly brace in the attribute value template '{0}' must be doubled.";
  144. public const string Xslt_OpenBracesAvt = @"The braces are not closed in AVT expression '{0}'.";
  145. public const string Xslt_OpenLiteralAvt = @"The literal in AVT expression is not correctly closed '{0}'.";
  146. public const string Xslt_NestedAvt = @"AVT cannot be nested in AVT '{0}'.";
  147. public const string Xslt_EmptyAvtExpr = @"XPath Expression in AVT cannot be empty: '{0}'.";
  148. public const string Xslt_InvalidXPath = @"'{0}' is an invalid XPath expression.";
  149. public const string Xslt_InvalidQName = @"'{0}' is an invalid QName.";
  150. public const string Xslt_NoStylesheetLoaded = @"No stylesheet was loaded.";
  151. public const string Xslt_TemplateNoAttrib = @"The 'xsl:template' instruction must have the 'match' and/or 'name' attribute present.";
  152. public const string Xslt_DupVarName = @"Variable or parameter '{0}' was duplicated within the same scope.";
  153. public const string Xslt_WrongNumberArgs = @"XSLT function '{0}()' has the wrong number of arguments.";
  154. public const string Xslt_NoNodeSetConversion = @"Cannot convert the operand to a node-set.";
  155. public const string Xslt_NoNavigatorConversion = @"Cannot convert the operand to 'Result tree fragment'.";
  156. public const string Xslt_FunctionFailed = @"Function '{0}()' has failed.";
  157. public const string Xslt_InvalidFormat = @"Format cannot be empty.";
  158. public const string Xslt_InvalidFormat1 = @"Format '{0}' cannot have digit symbol after zero digit symbol before a decimal point.";
  159. public const string Xslt_InvalidFormat2 = @"Format '{0}' cannot have zero digit symbol after digit symbol after decimal point.";
  160. public const string Xslt_InvalidFormat3 = @"Format '{0}' has two pattern separators.";
  161. public const string Xslt_InvalidFormat4 = @"Format '{0}' cannot end with a pattern separator.";
  162. public const string Xslt_InvalidFormat5 = @"Format '{0}' cannot have two decimal separators.";
  163. public const string Xslt_InvalidFormat8 = @"Format string should have at least one digit or zero digit.";
  164. public const string Xslt_ScriptCompileErrors = @"Script compile errors:\n{0}";
  165. public const string Xslt_ScriptInvalidPrefix = @"Cannot find the script or external object that implements prefix '{0}'.";
  166. public const string Xslt_ScriptDub = @"Namespace '{0}' has a duplicate implementation.";
  167. public const string Xslt_ScriptEmpty = @"The 'msxsl:script' element cannot be empty.";
  168. public const string Xslt_DupDecimalFormat = @"Decimal format '{0}' has a duplicate declaration.";
  169. public const string Xslt_CircularReference = @"Circular reference in the definition of variable '{0}'.";
  170. public const string Xslt_InvalidExtensionNamespace = @"Extension namespace cannot be 'null' or an XSLT namespace URI.";
  171. public const string Xslt_InvalidModeAttribute = @"An 'xsl:template' element without a 'match' attribute cannot have a 'mode' attribute.";
  172. public const string Xslt_MultipleRoots = @"There are multiple root elements in the output XML.";
  173. public const string Xslt_ApplyImports = @"The 'xsl:apply-imports' instruction cannot be included within the content of an 'xsl:for-each' instruction or within an 'xsl:template' instruction without the 'match' attribute.";
  174. public const string Xslt_Terminate = @"Transform terminated: '{0}'.";
  175. public const string Xslt_InvalidPattern = @"'{0}' is an invalid XSLT pattern.";
  176. public const string Xslt_EmptyTagRequired = @"The tag '{0}' must be empty.";
  177. public const string Xslt_WrongNamespace = @"The wrong namespace was used for XSL. Use 'http://www.w3.org/1999/XSL/Transform'.";
  178. public const string Xslt_InvalidFormat6 = @"Format '{0}' has both '*' and '_' which is invalid. ";
  179. public const string Xslt_InvalidFormat7 = @"Format '{0}' has '{1}' which is invalid.";
  180. public const string Xslt_ScriptMixLang = @"Multiple scripting languages for the same namespace is not supported.";
  181. public const string Xslt_ScriptInvalidLang = @"The scripting language '{0}' is not supported.";
  182. public const string Xslt_InvalidExtensionPermitions = @"Extension object should not have wider permissions than the caller of the AddExtensionObject(). If wider permissions are needed, wrap the extension object. ";
  183. public const string Xslt_InvalidParamNamespace = @"Parameter cannot belong to XSLT namespace.";
  184. public const string Xslt_DuplicateParametr = @"Duplicate parameter: '{0}'.";
  185. public const string Xslt_VariableCntSel = @"The '{0}' variable has both a select attribute of '{1}' and non-empty contents.";
  186. }
  187. }