Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ MSNamespaceUri()

static string System.Xml.Xsl.Runtime.XsltFunctions.MSNamespaceUri ( string name,
XPathNavigator currentNode )
inlinestatic

Definition at line 439 of file XsltFunctions.cs.

440 {
441 int colonOffset;
442 int num = ValidateNames.ParseQName(name, 0, out colonOffset);
443 if (num != name.Length)
444 {
445 return string.Empty;
446 }
447 string text = name.Substring(0, colonOffset);
448 if (text == "xmlns")
449 {
450 return string.Empty;
451 }
452 string text2 = currentNode.LookupNamespace(text);
453 if (text2 != null)
454 {
455 return text2;
456 }
457 if (text == "xml")
458 {
459 return "http://www.w3.org/XML/1998/namespace";
460 }
461 return string.Empty;
462 }
virtual ? string LookupNamespace(string prefix)

References System.Xml.Dictionary, System.Xml.XPath.XPathNavigator.LookupNamespace(), System.Xml.ValidateNames.ParseQName(), and System.text.