private QilNode MatchPattern(QilIterator it, TemplateMatch match) { QilNode?cond = match.Condition; if (cond == null) { return(_f.True()); } else { // We have to clone, because the same pattern may be used // in many different xsl:apply-templates/imports functions cond = cond.DeepClone(_f.BaseFactory); return(_refReplacer.Replace(cond, match.Iterator, it)); } }
public Pattern(TemplateMatch match, int priority) { this.Match = match; this.Priority = priority; }