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

◆ ParseModeAttribute()

QilName System.Xml.Xsl.Xslt.XsltLoader.ParseModeAttribute ( int attNum)
inlineprivate

Definition at line 1895 of file XsltLoader.cs.

1896 {
1897 if (!_input.MoveToXsltAttribute(attNum, "mode"))
1898 {
1899 return nullMode;
1900 }
1902 string value = _input.Value;
1903 QilName result;
1904 if (!V1 && value == "#default")
1905 {
1906 result = nullMode;
1907 }
1908 else if (!V1 && value == "#current")
1909 {
1910 ReportNYI("xsl:apply-templates[@mode='#current']");
1911 result = nullMode;
1912 }
1913 else if (!V1 && value == "#all")
1914 {
1916 result = nullMode;
1917 }
1918 else
1919 {
1920 result = CreateXPathQName(value);
1921 }
1923 {
1924 result = nullMode;
1925 }
1926 return result;
1927 }
static string Xslt_ModeListAll
Definition SR.cs:1950
Definition SR.cs:7
bool ExitForwardsCompatible(bool fwdCompat)
Definition Compiler.cs:315
bool MoveToXsltAttribute(int attNum, string attName)
Definition XsltInput.cs:681
void ReportError(string res, params string[] args)
QilName CreateXPathQName(string qname)

References System.Xml.Xsl.Xslt.XsltLoader._compiler, System.Xml.Xsl.Xslt.XsltLoader._input, System.Xml.Xsl.Xslt.XsltLoader.CreateXPathQName(), System.Xml.Xsl.Xslt.Compiler.EnterForwardsCompatible(), System.Xml.Xsl.Xslt.Compiler.ExitForwardsCompatible(), System.Xml.Xsl.Xslt.XsltInput.ForwardCompatibility, System.Xml.Xsl.Xslt.XsltInput.MoveToXsltAttribute(), System.Xml.Xsl.Xslt.XsltLoader.nullMode, System.Xml.Xsl.Xslt.XsltLoader.ReportError(), System.Xml.Xsl.Xslt.XsltLoader.ReportNYI(), System.Xml.Xsl.Xslt.XsltLoader.V1, System.value, System.Xml.Xsl.Xslt.XsltInput.Value, and System.SR.Xslt_ModeListAll.

Referenced by System.Xml.Xsl.Xslt.XsltLoader.LoadTemplate(), and System.Xml.Xsl.Xslt.XsltLoader.XslApplyTemplates().