001    /*
002     * Licensed to the Apache Software Foundation (ASF) under one
003     * or more contributor license agreements. See the NOTICE file
004     * distributed with this work for additional information
005     * regarding copyright ownership. The ASF licenses this file
006     * to you under the Apache License, Version 2.0 (the  "License");
007     * you may not use this file except in compliance with the License.
008     * You may obtain a copy of the License at
009     *
010     *     http://www.apache.org/licenses/LICENSE-2.0
011     *
012     * Unless required by applicable law or agreed to in writing, software
013     * distributed under the License is distributed on an "AS IS" BASIS,
014     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015     * See the License for the specific language governing permissions and
016     * limitations under the License.
017     */
018    /*
019     * $Id: EndSelectionEvent.java 468644 2006-10-28 06:56:42Z minchau $
020     */
021    package org.apache.xalan.trace;
022    
023    import org.apache.xalan.templates.ElemTemplateElement;
024    import org.apache.xalan.transformer.TransformerImpl;
025    import org.apache.xpath.XPath;
026    import org.apache.xpath.objects.XObject;
027    
028    import org.w3c.dom.Node;
029    
030    /**
031     * Event triggered by completion of a xsl:for-each selection or a 
032     * xsl:apply-templates selection.
033     * @xsl.usage advanced
034     */
035    public class EndSelectionEvent extends SelectionEvent
036    {
037    
038      /**
039       * Create an EndSelectionEvent.
040       * 
041       * @param processor The XSLT TransformerFactory.
042       * @param sourceNode The current context node.
043       * @param styleNode node in the style tree reference for the event.
044       * Should not be null.  That is not enforced.
045       * @param attributeName The attribute name from which the selection is made.
046       * @param xpath The XPath that executed the selection.
047       * @param selection The result of the selection.
048       */
049      public EndSelectionEvent(TransformerImpl processor, Node sourceNode,
050                            ElemTemplateElement styleNode, String attributeName,
051                            XPath xpath, XObject selection)
052      {
053    
054        super(processor, sourceNode, styleNode, attributeName, xpath, selection);
055      }
056    }