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

◆ XslSort()

XslNode System.Xml.Xsl.Xslt.XsltLoader.XslSort ( int sortNumber)
inlineprivate

Definition at line 1759 of file XsltLoader.cs.

1760 {
1762 string text = ParseStringAttribute(0, "select");
1763 string lang = ParseStringAttribute(1, "lang");
1764 string order = ParseStringAttribute(2, "order");
1766 TriState triState = ParseYesNoAttribute(4, "stable");
1767 string caseOrder = ParseStringAttribute(5, "case-order");
1768 string dataType = ParseStringAttribute(6, "data-type");
1769 if (triState != TriState.Unknown)
1770 {
1772 }
1773 List<XslNode> list = null;
1774 if (V1)
1775 {
1777 }
1778 else
1779 {
1780 list = LoadContent(text != null);
1781 if (list.Count != 0)
1782 {
1783 ReportNYI("xsl:sort/*");
1784 list = null;
1785 }
1786 }
1787 if (text == null)
1788 {
1789 text = ".";
1790 }
1791 return SetInfo(AstFactory.Sort(text, lang, dataType, order, caseOrder, _input.XslVersion), null, attributes);
1792 }
static string Xslt_SortStable
Definition SR.cs:2012
Definition SR.cs:7
List< XslNode > LoadContent(bool hasSelect)
readonly XsltInput.XsltAttribute[] _sortAttributes
TriState ParseYesNoAttribute(int attNum, string attName)
void CheckError(bool cond, string res, params string[] args)
string ParseStringAttribute(int attNum, string attName)
static XslNode SetInfo(XslNode to, List< XslNode > content, XsltInput.ContextInfo info)
string ParseCollationAttribute(int attNum)

References System.Xml.Xsl.Xslt.XsltLoader._input, System.Xml.Xsl.Xslt.XsltLoader._sortAttributes, System.Xml.Xsl.Xslt.XsltLoader.CheckError(), System.Xml.Xsl.Xslt.XsltLoader.CheckNoContent(), System.Xml.Xsl.Xslt.XsltInput.GetAttributes(), System.list, System.Xml.Xsl.Xslt.XsltLoader.LoadContent(), System.Xml.Xsl.Xslt.XsltLoader.ParseCollationAttribute(), System.Xml.Xsl.Xslt.XsltLoader.ParseStringAttribute(), System.Xml.Xsl.Xslt.XsltLoader.ParseYesNoAttribute(), System.Xml.Xsl.Xslt.XsltLoader.ReportNYI(), System.Xml.Xsl.Xslt.XsltLoader.SetInfo(), System.Xml.Xsl.Xslt.AstFactory.Sort(), System.text, System.Xml.Xsl.Xslt.XsltLoader.V1, System.SR.Xslt_SortStable, and System.Xml.Xsl.Xslt.XsltInput.XslVersion.

Referenced by System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(), and System.Xml.Xsl.Xslt.XsltLoader.LoadWithParams().