You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@apache.org on 2002/03/24 14:48:05 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/templates ElemForEach.java
sboag 02/03/24 05:48:05
Modified: java/src/org/apache/xalan/templates ElemForEach.java
Log:
Make sure the current element is nulled out if debug mode so that
TransformerImpl#getElementCallstack works correctly.
Revision Changes Path
1.27 +8 -1 xml-xalan/java/src/org/apache/xalan/templates/ElemForEach.java
Index: ElemForEach.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/templates/ElemForEach.java,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- ElemForEach.java 24 Mar 2002 00:57:52 -0000 1.26
+++ ElemForEach.java 24 Mar 2002 13:48:05 -0000 1.27
@@ -429,7 +429,9 @@
// Fire a trace event for the template.
if (TransformerImpl.S_DEBUG)
- transformer.getTraceManager().fireTraceEvent(this);
+ {
+ transformer.getTraceManager().fireTraceEvent(this);
+ }
// And execute the child templates.
// Loop through the children of the template, calling execute on
@@ -443,7 +445,12 @@
}
if (TransformerImpl.S_DEBUG)
+ {
+ // We need to make sure an old current element is not
+ // on the stack. See TransformerImpl#getElementCallstack.
+ transformer.setCurrentElement(null);
transformer.getTraceManager().fireTraceEndEvent(this);
+ }
// KLUGE: Implement <?xalan:doc_cache_off?>
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org