KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xalan > processor > ProcessorTemplate


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 /*
17  * $Id: ProcessorTemplate.java,v 1.10 2004/02/11 18:15:50 minchau Exp $
18  */

19 package org.apache.xalan.processor;
20
21 import org.apache.xalan.templates.ElemTemplate;
22 import org.apache.xalan.templates.ElemTemplateElement;
23
24 /**
25  * TransformerFactory for xsl:template markup.
26  */

27 class ProcessorTemplate extends ProcessorTemplateElem
28 {
29   
30   /**
31    * Append the current template element to the current
32    * template element, and then push it onto the current template
33    * element stack.
34    *
35    * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
36    * @param elem Must be a non-null reference to a {@link org.apache.xalan.templates.ElemTemplate} object.
37    *
38    * @throws org.xml.sax.SAXException Any SAX exception, possibly
39    * wrapping another exception.
40    */

41   protected void appendAndPush(
42           StylesheetHandler handler, ElemTemplateElement elem)
43             throws org.xml.sax.SAXException JavaDoc
44   {
45
46     super.appendAndPush(handler, elem);
47     elem.setDOMBackPointer(handler.getOriginatingNode());
48     handler.getStylesheet().setTemplate((ElemTemplate) elem);
49   }
50 }
51
Popular Tags