1 package com.icl.saxon.handlers; 2 import com.icl.saxon.Context; 3 import com.icl.saxon.om.NodeInfo; 4 import javax.xml.transform.TransformerException ; 5 6 16 17 public class ElementHandlerBase extends ElementHandler { 18 19 22 23 public void start(NodeInfo node, Context context) throws TransformerException { 24 if (node.getNodeType() != NodeInfo.ELEMENT) 25 throw new TransformerException ("Element Handler called for a node that is not an element"); 26 startElement(node, context); 27 } 28 29 35 36 public void startElement( NodeInfo e, Context context ) throws TransformerException { 37 context.getController().applyTemplates( 38 context, null, context.getMode(), null); 39 } 40 41 public boolean needsStackFrame() { 42 return false; 43 } 44 45 } 46 47 | Popular Tags |