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

◆ ResolveNamespace() [2/2]

string System.Xml.Xsl.XsltOld.OutputScopeManager.ResolveNamespace ( string prefix,
out bool thisScope )
inlinepackage

Definition at line 76 of file OutputScopeManager.cs.

77 {
78 thisScope = true;
79 if (prefix == null || prefix.Length == 0)
80 {
81 return _defaultNS;
82 }
83 if (Ref.Equal(prefix, _atoms.Xml))
84 {
85 return _atoms.XmlNamespace;
86 }
87 if (Ref.Equal(prefix, _atoms.Xmlns))
88 {
90 }
91 for (int num = _elementScopesStack.Length - 1; num >= 0; num--)
92 {
93 OutputScope outputScope = (OutputScope)_elementScopesStack[num];
94 string text = outputScope.ResolveAtom(prefix);
95 if (text != null)
96 {
98 return text;
99 }
100 }
101 return null;
102 }

References System.Xml.Xsl.XsltOld.OutputScopeManager._atoms, System.Xml.Xsl.XsltOld.OutputScopeManager._defaultNS, System.Xml.Xsl.XsltOld.OutputScopeManager._elementScopesStack, System.Xml.Dictionary, System.Xml.Ref.Equal(), System.Xml.HWStack.Length, System.prefix, System.text, System.Xml.Xsl.XsltOld.OutKeywords.Xml, System.Xml.Xsl.XsltOld.OutKeywords.XmlNamespace, System.Xml.Xsl.XsltOld.OutKeywords.Xmlns, and System.Xml.Xsl.XsltOld.OutKeywords.XmlnsNamespace.