Exemple #1
0
 public static bool IsFunctionAvailable(string localName, string nsUri)
 {
     if (XPathBuilder.IsFunctionAvailable(localName, nsUri))
     {
         return(true);
     }
     if (nsUri.Length == 0)
     {
         return(FunctionTable.ContainsKey(localName) && localName != "unparsed-entity-uri");
     }
     if (nsUri == XmlReservedNs.NsMsxsl)
     {
         return(
             localName == "node-set" ||
             localName == "format-date" ||
             localName == "format-time" ||
             localName == "local-name" ||
             localName == "namespace-uri" ||
             localName == "number" ||
             localName == "string-compare" ||
             localName == "utc"
             );
     }
     if (nsUri == XmlReservedNs.NsExsltCommon)
     {
         return(localName == "node-set" || localName == "object-type");
     }
     return(false);
 }