I checked the attached xslt with nxslt.exe and the
following error occured:
System.Xml.Xsl.XsltException: Custom function reported
an error. --->
System.Reflection.TargetInvocationException: Exception
has been thrown by the target of an invocation. --->
System.ArgumentNullException: Argument cannot be null.
Parameter name: type
in <0x0006e> System.Activator:CheckType (System.Type type)
in <0x00039> System.Activator:CreateInstance
(System.Type type, BindingFlags bindingAttr,
System.Reflection.Binder binder, System.Object[] args,
System.Globalization.CultureInfo culture,
System.Object[] activationAttributes)
in <0x00029> System.Activator:CreateInstance
(System.Type type, BindingFlags bindingAttr,
System.Reflection.Binder binder, System.Object[] args,
System.Globalization.CultureInfo culture)
in <0x0006d>
Mvp.Xml.Exslt.ExsltCommon:ExsltNodeListToXPathNodeIterator
(Mvp.Xml.Exslt.ExsltNodeList list)
in <0x000cd> Mvp.Xml.Exslt.ExsltSets:distinct
(System.Xml.XPath.XPathNodeIterator nodeset)
in <0x00000> <unknown method>
in (wrapper managed-to-native)
System.Reflection.MonoMethod:InternalInvoke
(object,object[])
in <0x0008d> System.Reflection.MonoMethod:Invoke
(System.Object obj, BindingFlags invokeAttr,
System.Reflection.Binder binder, System.Object[]
parameters, System.Globalization.CultureInfo
culture)--- End of inner exception stack trace ---
in <0x0010e> System.Reflection.MonoMethod:Invoke
(System.Object obj, BindingFlags invokeAttr,
System.Reflection.Binder binder, System.Object[]
parameters, System.Globalization.CultureInfo culture)
in <0x0001a> System.Reflection.MethodBase:Invoke
(System.Object obj, System.Object[] parameters)
in <0x00243> Mono.Xml.Xsl.XsltExtensionFunction:Invoke
(Mono.Xml.Xsl.XsltCompiledContext xsltContext,
System.Object[] args, System.Xml.XPath.XPathNavigator
docContext)--- End of inner exception stack trace ---
in <0x00332> Mono.Xml.Xsl.XsltExtensionFunction:Invoke
(Mono.Xml.Xsl.XsltCompiledContext xsltContext,
System.Object[] args, System.Xml.XPath.XPathNavigator
docContext)
in <0x00032> Mono.Xml.Xsl.XPFuncImpl:Invoke
(System.Xml.Xsl.XsltContext xsltContext,
System.Object[] args, System.Xml.XPath.XPathNavigator
docContext)
in <0x00236> System.Xml.XPath.ExprFunctionCall:Evaluate
(System.Xml.XPath.BaseIterator iter)
in <0x00060>
System.Xml.XPath.Expression:EvaluateNodeSet
(System.Xml.XPath.BaseIterator iter)
in <0x00014>
System.Xml.XPath.CompiledExpression:EvaluateNodeSet
(System.Xml.XPath.BaseIterator iter)
in <0x00067> System.Xml.XPath.XPathNavigator:Select
(System.Xml.XPath.XPathExpression expr,
System.Xml.XmlNamespaceManager ctx)
in <0x00050> Mono.Xml.Xsl.XslTransformProcessor:Select
(System.Xml.XPath.XPathExpression expr)
in <0x00025>
Mono.Xml.Xsl.Operations.XslForEach:Evaluate
(Mono.Xml.Xsl.XslTransformProcessor p)
in <0x00078>
Mono.Xml.Xsl.Operations.XslTemplateContent:Evaluate
(Mono.Xml.Xsl.XslTransformProcessor p)
in <0x0017a>
Mono.Xml.Xsl.Operations.XslLiteralElement:Evaluate
(Mono.Xml.Xsl.XslTransformProcessor p)
in <0x00078>
Mono.Xml.Xsl.Operations.XslTemplateContent:Evaluate
(Mono.Xml.Xsl.XslTransformProcessor p)
in <0x00189> Mono.Xml.Xsl.XslTemplate:Evaluate
(Mono.Xml.Xsl.XslTransformProcessor p,
System.Collections.Hashtable withParams)
in <0x00064>
Mono.Xml.Xsl.XslTransformProcessor:ApplyTemplates
(System.Xml.XPath.XPathNodeIterator nodes,
System.Xml.XmlQualifiedName mode,
System.Collections.ArrayList withParams)
in <0x00496> Mono.Xml.Xsl.XslTransformProcessor:Process
(System.Xml.XPath.XPathNavigator root,
Mono.Xml.Xsl.Outputter outputtter,
System.Xml.Xsl.XsltArgumentList args,
System.Xml.XmlResolver resolver)
in <0x0008b> System.Xml.Xsl.XslTransform:Transform
(System.Xml.XPath.XPathNavigator input,
System.Xml.Xsl.XsltArgumentList args,
System.IO.TextWriter output, System.Xml.XmlResolver
resolver)
in <0x00037> System.Xml.Xsl.XslTransform:Transform
(IXPathNavigable input, System.Xml.Xsl.XsltArgumentList
args, System.IO.TextWriter output)
in <0x0008a> Mvp.Xml.Exslt.ExsltTransform:Transform
(IXPathNavigable ixn, System.Xml.Xsl.XsltArgumentList
arglist, System.IO.TextWriter writer)
in <0x03711> NXslt.NXslt:Process ()
Tested with Mono JIT compiler version 1.1.13.2 and Linux
following error occured:
System.Xml.Xsl.XsltException: Custom function reported
an error. --->
System.Reflection.TargetInvocationException: Exception
has been thrown by the target of an invocation. --->
System.ArgumentNullException: Argument cannot be null.
Parameter name: type
in <0x0006e> System.Activator:CheckType (System.Type type)
in <0x00039> System.Activator:CreateInstance
(System.Type type, BindingFlags bindingAttr,
System.Reflection.Binder binder, System.Object[] args,
System.Globalization.CultureInfo culture,
System.Object[] activationAttributes)
in <0x00029> System.Activator:CreateInstance
(System.Type type, BindingFlags bindingAttr,
System.Reflection.Binder binder, System.Object[] args,
System.Globalization.CultureInfo culture)
in <0x0006d>
Mvp.Xml.Exslt.ExsltCommon:ExsltNodeListToXPathNodeIterator
(Mvp.Xml.Exslt.ExsltNodeList list)
in <0x000cd> Mvp.Xml.Exslt.ExsltSets:distinct
(System.Xml.XPath.XPathNodeIterator nodeset)
in <0x00000> <unknown method>
in (wrapper managed-to-native)
System.Reflection.MonoMethod:InternalInvoke
(object,object[])
in <0x0008d> System.Reflection.MonoMethod:Invoke
(System.Object obj, BindingFlags invokeAttr,
System.Reflection.Binder binder, System.Object[]
parameters, System.Globalization.CultureInfo
culture)--- End of inner exception stack trace ---
in <0x0010e> System.Reflection.MonoMethod:Invoke
(System.Object obj, BindingFlags invokeAttr,
System.Reflection.Binder binder, System.Object[]
parameters, System.Globalization.CultureInfo culture)
in <0x0001a> System.Reflection.MethodBase:Invoke
(System.Object obj, System.Object[] parameters)
in <0x00243> Mono.Xml.Xsl.XsltExtensionFunction:Invoke
(Mono.Xml.Xsl.XsltCompiledContext xsltContext,
System.Object[] args, System.Xml.XPath.XPathNavigator
docContext)--- End of inner exception stack trace ---
in <0x00332> Mono.Xml.Xsl.XsltExtensionFunction:Invoke
(Mono.Xml.Xsl.XsltCompiledContext xsltContext,
System.Object[] args, System.Xml.XPath.XPathNavigator
docContext)
in <0x00032> Mono.Xml.Xsl.XPFuncImpl:Invoke
(System.Xml.Xsl.XsltContext xsltContext,
System.Object[] args, System.Xml.XPath.XPathNavigator
docContext)
in <0x00236> System.Xml.XPath.ExprFunctionCall:Evaluate
(System.Xml.XPath.BaseIterator iter)
in <0x00060>
System.Xml.XPath.Expression:EvaluateNodeSet
(System.Xml.XPath.BaseIterator iter)
in <0x00014>
System.Xml.XPath.CompiledExpression:EvaluateNodeSet
(System.Xml.XPath.BaseIterator iter)
in <0x00067> System.Xml.XPath.XPathNavigator:Select
(System.Xml.XPath.XPathExpression expr,
System.Xml.XmlNamespaceManager ctx)
in <0x00050> Mono.Xml.Xsl.XslTransformProcessor:Select
(System.Xml.XPath.XPathExpression expr)
in <0x00025>
Mono.Xml.Xsl.Operations.XslForEach:Evaluate
(Mono.Xml.Xsl.XslTransformProcessor p)
in <0x00078>
Mono.Xml.Xsl.Operations.XslTemplateContent:Evaluate
(Mono.Xml.Xsl.XslTransformProcessor p)
in <0x0017a>
Mono.Xml.Xsl.Operations.XslLiteralElement:Evaluate
(Mono.Xml.Xsl.XslTransformProcessor p)
in <0x00078>
Mono.Xml.Xsl.Operations.XslTemplateContent:Evaluate
(Mono.Xml.Xsl.XslTransformProcessor p)
in <0x00189> Mono.Xml.Xsl.XslTemplate:Evaluate
(Mono.Xml.Xsl.XslTransformProcessor p,
System.Collections.Hashtable withParams)
in <0x00064>
Mono.Xml.Xsl.XslTransformProcessor:ApplyTemplates
(System.Xml.XPath.XPathNodeIterator nodes,
System.Xml.XmlQualifiedName mode,
System.Collections.ArrayList withParams)
in <0x00496> Mono.Xml.Xsl.XslTransformProcessor:Process
(System.Xml.XPath.XPathNavigator root,
Mono.Xml.Xsl.Outputter outputtter,
System.Xml.Xsl.XsltArgumentList args,
System.Xml.XmlResolver resolver)
in <0x0008b> System.Xml.Xsl.XslTransform:Transform
(System.Xml.XPath.XPathNavigator input,
System.Xml.Xsl.XsltArgumentList args,
System.IO.TextWriter output, System.Xml.XmlResolver
resolver)
in <0x00037> System.Xml.Xsl.XslTransform:Transform
(IXPathNavigable input, System.Xml.Xsl.XsltArgumentList
args, System.IO.TextWriter output)
in <0x0008a> Mvp.Xml.Exslt.ExsltTransform:Transform
(IXPathNavigable ixn, System.Xml.Xsl.XsltArgumentList
arglist, System.IO.TextWriter writer)
in <0x03711> NXslt.NXslt:Process ()
Tested with Mono JIT compiler version 1.1.13.2 and Linux