73 return it.Current.Value;
179 if (
args.Length != 0)
244 string baseUri =
null;
245 if (
args.Length == 2)
286 foreach (
Key key in keyList)
293 if (hashtable ==
null)
389 int num = parameters.Length;
390 int maxArgs = parameters.Length;
401 if (parameters[
num2].IsOptional)
508 for (
int i = 0; i < num; i++)
520 if (argTypes ==
null)
525 for (
int j = 0;
j < num;
j++)
527 if (
methods[
j].GetParameters().Length == argTypes.Length)
538 for (
int k = 0;
k < num;
k++)
542 for (
int l = 0;
l < parameters.Length;
l++)
564 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2075:RequiresUnreferencedCode", Justification =
"In order for this code path to be hit, a previous call to XsltArgumentList.AddExtensionObject is required. That method is already annotated as unsafe and throwing a warning, so we can suppress here.")]
601 if (
text ==
"urn:schemas-microsoft-com:xslt" && name ==
"node-set")
629 if (baseUri.Length != 0)
647 hashtable.
Add(uri,
null);
727 string ns =
string.Empty;
728 string local =
string.Empty;
750 if (
text ==
"http://www.w3.org/1999/XSL/Transform")
755 return local ==
"variable";
756 case "apply-imports":
757 case "apply-templates":
759 case "call-template":
770 case "processing-instruction":
783 if (
text ==
"urn:schemas-microsoft-com:xslt")
785 return local ==
"node-set";
787 if (
text.Length == 0)
794 return local !=
"unparsed-entity-uri";
800 case "namespace-uri":
808 case "substring-before":
809 case "substring-after":
811 case "string-length":
812 case "normalize-space":
843 string result =
string.Empty;
846 if (
text ==
"http://www.w3.org/1999/XSL/Transform")
854 result =
"Microsoft";
857 result =
"http://www.microsoft.com";
904 hashtable[
"key"] =
new FuncKey();
static XPathEmptyIterator Instance
virtual bool ContainsKey(object key)
virtual void Add(object key, object? value)
static ? object ChangeType(object? value, TypeCode typeCode)
static bool ToBoolean([NotNullWhen(true)] object? value)
static CultureInfo InvariantCulture
object? Invoke(object? obj, object?[]? parameters)
virtual Type ParameterType
static string Xslt_UnknownXsltFunction
static string Xslt_InvalidVariable
static string Xslt_ScriptInvalidPrefix
static string Xslt_InvalidPrefix
static string Xslt_WrongNumberArgs
static string Xslt_NoNavigatorConversion
static string Xslt_NoDecimalFormat
static string Xslt_InvalidPattern
static string Xslt_NoNodeSetConversion
static string Xslt_UnsuppFunction
static TypeCode GetTypeCode(Type? type)
bool MoveToNextAttribute()
virtual XPathNodeIterator SelectDescendants(XPathNodeType type, bool matchSelf)
object ICloneable. Clone()
bool MoveToFirstAttribute()
object ICloneable. Clone()
static double ToXPathDouble(object o)
static string ToXPathString(object value)
static bool IsCatchableException(Exception e)
virtual ? string LookupNamespace(string prefix)
static XsltException Create(string res, params string[] args)
static void ParseQualifiedName(string qname, out string prefix, out string local)
object GetVariableValue(VariableAction variable)
object GetScriptObject(string nsUri)
string GetQueryExpression(int key)
Query GetCompiledQuery(int key)
object GetExtensionObject(string nsUri)
XPathNavigator GetNavigator(Uri ruri)
DecimalFormat GetDecimalFormat(XmlQualifiedName name)
bool PreserveWhiteSpace(Processor proc, XPathNavigator node)
override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
readonly object _extension
readonly MethodInfo _method
FuncExtension(object extension, MethodInfo method)
override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
static ArrayList AddToList(ArrayList resultCollection, ArrayList newList)
override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
XsltFunctionImpl(int minArgs, int maxArgs, XPathResultType returnType, XPathResultType[] argTypes)
static XPathNodeIterator ToIterator(object argument)
static double ToNumber(object argument)
XPathResultType ReturnType
static object ToNumeric(object argument, Type type)
void Init(int minArgs, int maxArgs, XPathResultType returnType, XPathResultType[] argTypes)
static bool ToBoolean(object argument)
object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
XPathResultType[] ArgTypes
XPathResultType _returnType
static string ToString(object argument)
static object ConvertToXPathType(object val, XPathResultType xt, Type type)
static XPathNavigator ToNavigator(object argument)
static string IteratorToString(XPathNodeIterator it)
XPathResultType[] _argTypes
XsltCompileContext(InputScopeManager manager, Processor processor)
static XPathResultType GetXPathType(Type type)
InputScopeManager _manager
override int CompareDocument(string baseUri, string nextbaseUri)
XPathNodeIterator Current()
override string DefaultNamespace
MethodInfo FindBestMethod(MethodInfo[] methods, bool ignoreCase, bool publicOnly, string name, XPathResultType[] argTypes)
override IXsltContextVariable ResolveVariable(string prefix, string name)
static Hashtable CreateFunctionTable()
object EvaluateVariable(VariableAction variable)
IXsltContextFunction GetExtentionMethod(string ns, string name, XPathResultType[] argTypes, out object extension)
Hashtable BuildKeyTable(Key key, XPathNavigator root)
override IXsltContextFunction ResolveFunction(string prefix, string name, XPathResultType[] argTypes)
Uri ComposeUri(string thisUri, string baseUri)
string SystemProperty(string qname)
static void AddKeyValue(Hashtable keyTable, string key, XPathNavigator value, bool checkDuplicates)
override string LookupNamespace(string prefix)
bool FunctionAvailable(string qname)
static readonly Hashtable s_FunctionTable
void Reinitialize(InputScopeManager manager, Processor processor)
XPathNodeIterator Document(object arg0, string baseUri)
DecimalFormat ResolveFormatName(string formatName)
bool ElementAvailable(string qname)
override bool PreserveWhitespace(XPathNavigator node)
static void EvaluateKey(XPathNavigator node, Query matchExpr, string matchStr, Query useExpr, Hashtable keyTable)
static readonly IXsltContextFunction s_FuncNodeSet