public XslKey(Compiler c) { this.name = c.ParseQNameAttribute("name"); c.KeyCompilationMode = true; this.useExpr = c.CompileExpression(c.GetAttribute("use")); if (this.useExpr == null) { this.useExpr = c.CompileExpression("."); } c.AssertAttribute("match"); string attribute = c.GetAttribute("match"); this.matchPattern = c.CompilePattern(attribute, c.Input); c.KeyCompilationMode = false; }
public XslKey (Compiler c) { this.name = c.ParseQNameAttribute ("name"); c.KeyCompilationMode = true; useExpr = c.CompileExpression (c.GetAttribute ("use")); if (useExpr == null) useExpr = c.CompileExpression ("."); c.AssertAttribute ("match"); string matchString = c.GetAttribute ("match"); this.matchPattern = c.CompilePattern (matchString, c.Input); c.KeyCompilationMode = false; }