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

◆ ResolveNonEmptyPrefix()

string System.Xml.Xsl.XsltOld.InputScopeManager.ResolveNonEmptyPrefix ( string prefix)
inlineprivate

Definition at line 62 of file InputScopeManager.cs.

63 {
64 if (prefix == "xml")
65 {
66 return "http://www.w3.org/XML/1998/namespace";
67 }
68 if (prefix == "xmlns")
69 {
70 return "http://www.w3.org/2000/xmlns/";
71 }
72 for (InputScope inputScope = _scopeStack; inputScope != null; inputScope = inputScope.Parent)
73 {
74 string text = inputScope.ResolveNonAtom(prefix);
75 if (text != null)
76 {
77 return text;
78 }
79 }
80 throw XsltException.Create(System.SR.Xslt_InvalidPrefix, prefix);
81 }
static string Xslt_InvalidPrefix
Definition SR.cs:1926
Definition SR.cs:7

References System.Xml.Xsl.XsltOld.InputScopeManager._scopeStack, System.Xml.Xsl.XsltException.Create(), System.Xml.Dictionary, System.Xml.Xsl.XsltOld.InputScope.Parent, System.prefix, System.text, and System.SR.Xslt_InvalidPrefix.

Referenced by System.Xml.Xsl.XsltOld.InputScopeManager.ResolveXmlNamespace(), and System.Xml.Xsl.XsltOld.InputScopeManager.ResolveXPathNamespace().