mmidy       00/10/06 15:07:43

  Modified:    java/src/org/apache/xalan/templates TemplateList.java
  Log:
  Make sure that the priority of the best matched pattern is set.
  
  Revision  Changes    Path
  1.8       +3 -0      
xml-xalan/java/src/org/apache/xalan/templates/TemplateList.java
  
  Index: TemplateList.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/templates/TemplateList.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TemplateList.java 2000/09/29 16:24:21     1.7
  +++ TemplateList.java 2000/10/06 22:07:42     1.8
  @@ -291,6 +291,9 @@
               {
                 bestMatchedRule = rule;
                 bestMatchedPattern = matchPat;
  +              bestMatchedPattern.m_priority
  +                = (XPath.MATCH_SCORE_NONE != rule.getPriority())
  +                  ? rule.getPriority() : 
matchPat.getExpression().getMatchScore(support, targetNode);
               }            
               prevMatchPat = matchPat; // make sure this is done after above 
check.
               // TODO, need to add to the conflicts list, I think...
  
  
  

Reply via email to