dbertoni    2003/01/07 20:48:38

  Modified:    c/src/XSLT StylesheetExecutionContextDefault.cpp
  Log:
  Change the context node only when necessary.
  
  Revision  Changes    Path
  1.108     +10 -1     xml-xalan/c/src/XSLT/StylesheetExecutionContextDefault.cpp
  
  Index: StylesheetExecutionContextDefault.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/StylesheetExecutionContextDefault.cpp,v
  retrieving revision 1.107
  retrieving revision 1.108
  diff -u -r1.107 -r1.108
  --- StylesheetExecutionContextDefault.cpp     12 Dec 2002 22:24:56 -0000      1.107
  +++ StylesheetExecutionContextDefault.cpp     8 Jan 2003 04:48:37 -0000       1.108
  @@ -651,7 +651,16 @@
                        XalanNode*                                      contextNode,
                        const PrefixResolver&           resolver)
   {
  -     return xpath.execute(contextNode, resolver, *this);
  +     XalanNode* const        theCurrentNode = getCurrentNode();
  +                     
  +     if (theCurrentNode == contextNode)
  +     {
  +             return xpath.execute(resolver, *this);
  +     }
  +     else
  +     {
  +             return xpath.execute(contextNode, resolver, *this);
  +     }
   }
   
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to