Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-1121

for-each trace events fired twice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Won't Fix
    • 2.4Dx
    • None
    • None
    • Operating System: Linux
      Platform: All
    • 11414

    Description

      Calls to
      transformer.getTraceManager().fireTraceEvent(this); and
      transformer.getTraceManager().fireTraceEndEvent(this);
      appear in both execute() and transformSelectedNodes().
      This results in duplicated events being fired at the start
      and end of "for-each". As a newcomer to Xalan source the
      correction isn't obvious - to me. The end event logic in
      transformSelectedNodes includes a call to
      transformer.setCurrentElement(null); as well as firing the
      end event. If you are interfacing a debugger to Xalan, as I
      am doing, this is a problem. "Normal" users are unlikely to
      notice this issue.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--events.log
          2 kB
          Elson Jiang
        2. ASF.LICENSE.NOT.GRANTED--foo.out
          0.1 kB
          Elson Jiang
        3. ASF.LICENSE.NOT.GRANTED--foo.xml
          1 kB
          Elson Jiang
        4. ASF.LICENSE.NOT.GRANTED--foo.xsl
          0.7 kB
          Elson Jiang

        Activity

          People

            Unassigned Unassigned
            a.m.addyman@salford.ac.uk Tony Addyman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: