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 2001/11/07 20:55:35 UTC

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

dbertoni    01/11/07 11:55:35

  Modified:    c/src/XSLT ElemFallback.cpp
  Log:
  Removed unnecessary code, since ElemFallback is only executed by the parent ElemExtensionCall instance.
  
  Revision  Changes    Path
  1.10      +7 -29     xml-xalan/c/src/XSLT/ElemFallback.cpp
  
  Index: ElemFallback.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/ElemFallback.cpp,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ElemFallback.cpp	2001/09/19 21:20:46	1.9
  +++ ElemFallback.cpp	2001/11/07 19:55:35	1.10
  @@ -62,14 +62,17 @@
   
   
   
  +#include <sax/AttributeList.hpp>
  +
  +
  +
   #include <PlatformSupport/DOMStringHelper.hpp>
   
   
   
   #include "Constants.hpp"
  -#include "ElemExtensionCall.hpp"
   #include "StylesheetConstructionContext.hpp"
  -#include "StylesheetExecutionContext.hpp"
  +//#include "StylesheetExecutionContext.hpp"
   
   
   
  @@ -131,32 +134,7 @@
   void
   ElemFallback::execute(StylesheetExecutionContext&		executionContext) const
   {
  -	const ElemTemplateElement* const	parent =
  -			getParentNodeElem();
  -	assert(parent != 0);
  +	ElemTemplateElement::execute(executionContext);
   
  -	if(parent->getXSLToken() == Constants::ELEMNAME_EXTENSIONCALL)
  -	{
  -		const ElemExtensionCall* const	extensionParent =
  -#if defined(XALAN_OLD_STYLE_CASTS)
  -			(const ElemExtensionCall*)parent;
  -#else
  -			static_cast<const ElemExtensionCall*>(parent); 
  -#endif
  -
  -		if(extensionParent->elementAvailable(executionContext) == false)
  -		{
  -			ElemTemplateElement::execute(executionContext);
  -
  -			executeChildren(executionContext);
  -		}
  -	}
  -	else
  -	{
  -		// Should never happen
  -		executionContext.error(
  -			"Parent of xsl:fallback must be an extension element",
  -			executionContext.getCurrentNode(),
  -			this);
  -	}
  +	executeChildren(executionContext);
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org