當前位置: 首頁>>代碼示例>>C#>>正文


C# XsltContext.LookupNamespace方法代碼示例

本文整理匯總了C#中System.Xml.Xsl.XsltContext.LookupNamespace方法的典型用法代碼示例。如果您正苦於以下問題:C# XsltContext.LookupNamespace方法的具體用法?C# XsltContext.LookupNamespace怎麽用?C# XsltContext.LookupNamespace使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在System.Xml.Xsl.XsltContext的用法示例。


在下文中一共展示了XsltContext.LookupNamespace方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: SetXsltContext

        internal override void SetXsltContext(XsltContext context){
            System.Diagnostics.Debug.Assert(context != null);
            m_URN = context.LookupNamespace(m_Prefix);
            if (m_qyInput != null)
                m_qyInput.SetXsltContext(context);

        }
開發者ID:ArildF,項目名稱:masters,代碼行數:7,代碼來源:baseaxisquery.cs

示例2: resolveNsPrefix

 /// <summary>
 /// This method resolves the prefix of an argument.
 /// If a prefix is found, the corresponding namespace URI is looked up 
 /// and substituted.
 /// </summary>
 /// <param name="args">An argument of the function to be resolved</param>
 /// <param name="xsltContext">The Xslt context for namespace resolving</param>
 private string resolveNsPrefix(string args, XsltContext xsltContext)
 {
     string prefix;
     string ns;
     if (args.Contains(":"))
     {
         prefix = args.Substring(0, args.IndexOf(":"));
         if (!string.IsNullOrEmpty((ns = xsltContext.LookupNamespace(prefix))))
             args = args.Replace(prefix + ":", ns);
     }
     return args;
 }
開發者ID:HackatonArGP,項目名稱:Guardianes,代碼行數:19,代碼來源:XPathQueryManager.cs

示例3: SetXsltContext

 public override void SetXsltContext(XsltContext context) {
     Debug.Assert(context != null);
     nsUri = context.LookupNamespace(prefix);
     qyInput.SetXsltContext(context);
 }
開發者ID:iskiselev,項目名稱:JSIL.NetFramework,代碼行數:5,代碼來源:BaseAxisQuery.cs

示例4: Invoke

            public override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext) {
                XsltCompileContext xsltCompileContext = (XsltCompileContext) xsltContext;
                ArrayList ResultList = new ArrayList();
                string local, prefix;
                PrefixQName.ParseQualifiedName(ToString(args[0]), out prefix, out local);
                string ns = xsltContext.LookupNamespace(prefix);
                XmlQualifiedName qname = new XmlQualifiedName(local, ns);
                XPathNodeIterator it = args[1] as XPathNodeIterator;
                if (it != null) {
                    while (it.MoveNext()) {
                        xsltCompileContext.FindKeyMatch(qname, it.Current.Value, ResultList, docContext);
                    }
                }
                else {
                    xsltCompileContext.FindKeyMatch(qname, ToString(args[1]), ResultList, docContext);
                }

                return new XPathArrayIterator(ResultList);
            }
開發者ID:ArildF,項目名稱:masters,代碼行數:19,代碼來源:xsltcompilecontext.cs

示例5: SetXsltContext

 public override void SetXsltContext(XsltContext context)
 {
     this.nsUri = context.LookupNamespace(this.prefix);
     this.qyInput.SetXsltContext(context);
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:5,代碼來源:BaseAxisQuery.cs


注:本文中的System.Xml.Xsl.XsltContext.LookupNamespace方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。