You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2003/01/08 05:48:38 UTC

cvs commit: xml-xalan/c/src/XSLT StylesheetExecutionContextDefault.cpp

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: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org