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

◆ ResolvePrefix() [1/2]

string System.Xml.Xsl.Xslt.QilGenerator.ResolvePrefix ( bool ignoreDefaultNs,
string prefix )
inlineprivate

Definition at line 2132 of file QilGenerator.cs.

2133 {
2134 if (ignoreDefaultNs && prefix.Length == 0)
2135 {
2136 return string.Empty;
2137 }
2139 if (text == null)
2140 {
2141 if (prefix.Length == 0)
2142 {
2143 text = string.Empty;
2144 }
2145 else
2146 {
2149 }
2150 }
2151 return text;
2152 }
static string Xslt_InvalidPrefix
Definition SR.cs:1926
Definition SR.cs:7
string LookupNamespace(string prefix, int from, int to)
readonly CompilerScopeManager< QilIterator > _scope
void ReportError(string res, params string[] args)

References System.Xml.Xsl.Xslt.QilGenerator._compiler, System.Xml.Xsl.Xslt.QilGenerator._scope, System.Xml.Xsl.Xslt.Compiler.CreatePhantomNamespace(), System.Xml.Xsl.Xslt.CompilerScopeManager< V >.LookupNamespace(), System.prefix, System.Xml.Xsl.Xslt.QilGenerator.ReportError(), System.text, and System.SR.Xslt_InvalidPrefix.

Referenced by System.Xml.Xsl.Xslt.QilGenerator.CompileAttribute(), System.Xml.Xsl.Xslt.QilGenerator.CompileDataTypeAttribute(), and System.Xml.Xsl.Xslt.QilGenerator.CompileElement().