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

◆ XslMessage()

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

Definition at line 1506 of file XsltLoader.cs.

1507 {
1509 string text = ParseStringAttribute(0, "select");
1510 bool term = ParseYesNoAttribute(1, "terminate") == TriState.True;
1512 if (list.Count != 0)
1513 {
1514 list = LoadEndTag(list);
1515 }
1516 if (text != null)
1517 {
1518 list.Insert(0, AstFactory.CopyOf(text, _input.XslVersion));
1519 }
1520 return SetInfo(AstFactory.Message(term), list, attributes);
1521 }
readonly XsltInput.XsltAttribute[] _messageAttributes
TriState ParseYesNoAttribute(int attNum, string attName)
string ParseStringAttribute(int attNum, string attName)
List< XslNode > LoadInstructions()
static XslNode SetInfo(XslNode to, List< XslNode > content, XsltInput.ContextInfo info)
List< XslNode > LoadEndTag(List< XslNode > content)

References System.Xml.Xsl.Xslt.XsltLoader._input, System.Xml.Xsl.Xslt.XsltLoader._messageAttributes, System.Xml.Xsl.Xslt.AstFactory.CopyOf(), System.Xml.Xsl.Xslt.XsltInput.GetAttributes(), System.list, System.Xml.Xsl.Xslt.XsltLoader.LoadEndTag(), System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(), System.Xml.Xsl.Xslt.AstFactory.Message(), System.Xml.Xsl.Xslt.XsltLoader.ParseStringAttribute(), System.Xml.Xsl.Xslt.XsltLoader.ParseYesNoAttribute(), System.Xml.Xsl.Xslt.XsltLoader.SetInfo(), System.text, and System.Xml.Xsl.Xslt.XsltInput.XslVersion.

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