public Sort(Compiler c) { c.CheckExtraAttributes("sort", "select", "lang", "data-type", "order", "case-order"); expr = c.CompileExpression(c.GetAttribute("select")); if (expr == null) { expr = c.CompileExpression("string(.)"); } langAvt = c.ParseAvtAttribute("lang"); dataTypeAvt = c.ParseAvtAttribute("data-type"); orderAvt = c.ParseAvtAttribute("order"); caseOrderAvt = c.ParseAvtAttribute("case-order"); // Precalc whatever we can lang = ParseLang(XslAvt.AttemptPreCalc(ref langAvt)); dataType = ParseDataType(XslAvt.AttemptPreCalc(ref dataTypeAvt)); order = ParseOrder(XslAvt.AttemptPreCalc(ref orderAvt)); caseOrder = ParseCaseOrder(XslAvt.AttemptPreCalc(ref caseOrderAvt)); }
public Sort(Compiler c) { c.CheckExtraAttributes("sort", new string[] { "select", "lang", "data-type", "order", "case-order" }); this.expr = c.CompileExpression(c.GetAttribute("select")); if (this.expr == null) { this.expr = c.CompileExpression("string(.)"); } this.langAvt = c.ParseAvtAttribute("lang"); this.dataTypeAvt = c.ParseAvtAttribute("data-type"); this.orderAvt = c.ParseAvtAttribute("order"); this.caseOrderAvt = c.ParseAvtAttribute("case-order"); this.lang = this.ParseLang(XslAvt.AttemptPreCalc(ref this.langAvt)); this.dataType = this.ParseDataType(XslAvt.AttemptPreCalc(ref this.dataTypeAvt)); this.order = this.ParseOrder(XslAvt.AttemptPreCalc(ref this.orderAvt)); this.caseOrder = this.ParseCaseOrder(XslAvt.AttemptPreCalc(ref this.caseOrderAvt)); }
public Sort (Compiler c) { c.CheckExtraAttributes ("sort", "select", "lang", "data-type", "order", "case-order"); expr = c.CompileExpression (c.GetAttribute ("select")); if (expr == null) expr = c.CompileExpression ("string(.)"); langAvt = c.ParseAvtAttribute ("lang"); dataTypeAvt = c.ParseAvtAttribute ("data-type"); orderAvt = c.ParseAvtAttribute ("order"); caseOrderAvt = c.ParseAvtAttribute ("case-order"); // Precalc whatever we can lang = ParseLang (XslAvt.AttemptPreCalc (ref langAvt)); dataType = ParseDataType (XslAvt.AttemptPreCalc (ref dataTypeAvt)); order = ParseOrder (XslAvt.AttemptPreCalc (ref orderAvt)); caseOrder = ParseCaseOrder (XslAvt.AttemptPreCalc (ref caseOrderAvt)); }