public override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
        {
            string          str   = XPathMessageFunction.ToString(args[0]);
            string          xpath = string.Format(CultureInfo.InvariantCulture, "/s11:Envelope/s11:Header/*[@s11:actor='{0}'] | /s12:Envelope/s12:Header/*[@s12:role='{1}']", new object[] { str, str });
            XPathExpression expr  = docContext.Compile(xpath);

            expr.SetContext((XmlNamespaceManager)xsltContext);
            return(docContext.Evaluate(expr));
        }
 public override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
 {
     return(Convert(XPathMessageFunction.ToString(args[0])));
 }