Exemple #1
0
        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));
            }
        }
Exemple #2
0
 public Pattern(TemplateMatch match, int priority)
 {
     this.Match    = match;
     this.Priority = priority;
 }