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

◆ XslApplyImports()

XslNode System.Xml.Xsl.Xslt.XsltLoader.XslApplyImports ( )
inlineprivate

Definition at line 1315 of file XsltLoader.cs.

1316 {
1319 {
1321 _input.SkipNode();
1322 return null;
1323 }
1325 attributes.SaveExtendedLineInfo(_input);
1326 if (V1)
1327 {
1328 if (list.Count != 0)
1329 {
1330 ISourceLineInfo sourceLine = list[0].SourceLine;
1332 {
1333 return SetInfo(AstFactory.Error(XslLoadException.CreateMessage(sourceLine, System.SR.Xslt_NotEmptyContents, _atoms.ApplyImports)), null, attributes);
1334 }
1336 }
1337 list = null;
1338 }
1339 else
1340 {
1341 if (list.Count != 0)
1342 {
1343 ReportNYI("xsl:apply-imports/xsl:with-param");
1344 }
1345 list = null;
1346 }
1347 return SetInfo(AstFactory.ApplyImports(_curTemplate.Mode, _curStylesheet, _input.XslVersion), list, attributes);
1348 }
static string Xslt_InvalidApplyImports
Definition SR.cs:1954
static string Xslt_NotEmptyContents
Definition SR.cs:1878
Definition SR.cs:7
void ReportError(ISourceLineInfo lineInfo, string res, params string[] args)
Definition Compiler.cs:331
readonly QilName Mode
Definition Template.cs:11
void ReportError(string res, params string[] args)
List< XslNode > LoadWithParams(InstructionFlags flags)
static XslNode SetInfo(XslNode to, List< XslNode > content, XsltInput.ContextInfo info)

References System.Xml.Xsl.Xslt.XsltLoader._atoms, System.Xml.Xsl.Xslt.XsltLoader._compiler, System.Xml.Xsl.Xslt.XsltLoader._curStylesheet, System.Xml.Xsl.Xslt.XsltLoader._curTemplate, System.Xml.Xsl.Xslt.XsltLoader._input, System.Xml.Xsl.Xslt.AstFactory.ApplyImports(), System.Xml.Xsl.Xslt.KeywordsTable.ApplyImports, System.Xml.Xsl.Xslt.XsltInput.CanHaveApplyImports, System.Xml.Xsl.XslLoadException.CreateMessage(), System.Xml.Xsl.Xslt.AstFactory.Error(), System.Xml.Xsl.Xslt.XsltInput.ForwardCompatibility, System.Xml.Xsl.Xslt.XsltInput.GetAttributes(), System.list, System.Xml.Xsl.Xslt.XsltLoader.LoadWithParams(), System.Xml.Xsl.Xslt.Template.Mode, System.Xml.Xsl.Xslt.Compiler.ReportError(), System.Xml.Xsl.Xslt.XsltLoader.ReportError(), System.Xml.Xsl.Xslt.XsltLoader.ReportNYI(), System.Xml.Xsl.Xslt.XsltInput.ContextInfo.SaveExtendedLineInfo(), System.Xml.Xsl.Xslt.XsltLoader.SetInfo(), System.Xml.Xsl.Xslt.XsltInput.SkipNode(), System.Xml.Xsl.Xslt.XsltLoader.V1, System.SR.Xslt_InvalidApplyImports, System.SR.Xslt_NotEmptyContents, and System.Xml.Xsl.Xslt.XsltInput.XslVersion.

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