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/06/22 19:15:59 UTC
cvs commit: xml-xalan/c/src/XSLT ElemTemplateElement.cpp
dbertoni 01/06/22 10:15:58
Modified: c/src/XSLT ElemTemplateElement.cpp
Log:
Fixed bug with optimizing out element frames.
Revision Changes Path
1.59 +5 -2 xml-xalan/c/src/XSLT/ElemTemplateElement.cpp
Index: ElemTemplateElement.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/ElemTemplateElement.cpp,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -r1.58 -r1.59
--- ElemTemplateElement.cpp 2001/06/14 19:29:54 1.58
+++ ElemTemplateElement.cpp 2001/06/22 17:15:55 1.59
@@ -1183,14 +1183,17 @@
{
node->postConstruction(constructionContext, m_namespacesHandler);
+ const int theToken = node->getXSLToken();
+
if (hasVariables() == false &&
- node->getXSLToken() == Constants::ELEMNAME_VARIABLE)
+ (theToken == Constants::ELEMNAME_VARIABLE ||
+ theToken == Constants::ELEMNAME_PARAMVARIABLE))
{
m_optimizationFlags |= eHasVariables;
}
if (hasParams() == false &&
- node->getXSLToken() == Constants::ELEMNAME_WITHPARAM)
+ theToken == Constants::ELEMNAME_WITHPARAM)
{
m_optimizationFlags |= eHasParams;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org