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

◆ LoadMsScript()

void System.Xml.Xsl.Xslt.XsltLoader.LoadMsScript ( NsDecl stylesheetNsList)
inlineprivate

Definition at line 1151 of file XsltLoader.cs.

1152 {
1155 string text = null;
1156 if (_input.MoveToXsltAttribute(0, "implements-prefix"))
1157 {
1158 if (_input.Value.Length == 0)
1159 {
1160 ReportError(System.SR.Xslt_EmptyAttrValue, "implements-prefix", _input.Value);
1161 }
1162 else
1163 {
1165 if (text == "http://www.w3.org/1999/XSL/Transform")
1166 {
1168 text = null;
1169 }
1170 }
1171 }
1172 if (text == null)
1173 {
1175 }
1176 string text2 = ParseStringAttribute(1, "language");
1177 if (text2 == null)
1178 {
1179 text2 = "jscript";
1180 }
1182 {
1184 _input.SkipNode();
1185 return;
1186 }
1187 throw new PlatformNotSupportedException(System.SR.CompilingScriptsNotSupported);
1188 }
static string Xslt_EmptyAttrValue
Definition SR.cs:1910
static string Xslt_ScriptXsltNamespace
Definition SR.cs:1928
static string CompilingScriptsNotSupported
Definition SR.cs:2148
Definition SR.cs:7
TrimSafeDictionary ScriptClasses
Definition Scripts.cs:50
string LookupXmlNamespace(string prefix)
bool MoveToXsltAttribute(int attNum, string attName)
Definition XsltInput.cs:681
readonly XsltInput.XsltAttribute[] _scriptAttributes
void ReportError(string res, params string[] args)
static NsDecl MergeNamespaces(NsDecl thisList, NsDecl parentList)
string ParseStringAttribute(int attNum, string attName)

References System.Xml.Xsl.Xslt.XsltLoader._compiler, System.Xml.Xsl.Xslt.XsltLoader._input, System.Xml.Xsl.Xslt.XsltLoader._scriptAttributes, System.SR.CompilingScriptsNotSupported, System.Xml.Xsl.Xslt.Compiler.CreatePhantomNamespace(), System.Xml.Dictionary, System.Xml.Xsl.XsltSettings.EnableScript, System.Xml.Xsl.Xslt.XsltInput.GetAttributes(), System.Xml.Xsl.Xslt.XsltInput.LookupXmlNamespace(), System.Xml.Xsl.Xslt.XsltLoader.MergeNamespaces(), System.Xml.Xsl.Xslt.XsltInput.MoveToXsltAttribute(), System.Xml.Xsl.Xslt.XsltInput.ContextInfo.nsList, System.Xml.Xsl.Xslt.XsltLoader.ParseStringAttribute(), System.Xml.Xsl.Xslt.XsltLoader.ReportError(), System.Xml.Xsl.Xslt.Scripts.ScriptClasses, System.Xml.Xsl.Xslt.Compiler.Scripts, System.Xml.Xsl.Xslt.Compiler.Settings, System.Xml.Xsl.Xslt.XsltInput.SkipNode(), System.text, System.Xml.Xsl.Xslt.XsltInput.Value, System.SR.Xslt_EmptyAttrValue, and System.SR.Xslt_ScriptXsltNamespace.

Referenced by System.Xml.Xsl.Xslt.XsltLoader.LoadRealStylesheet().