1 16 19 package org.apache.xalan.processor; 20 21 import org.apache.xalan.templates.ElemTemplateElement; 22 import org.apache.xalan.templates.ElemText; 23 24 29 public class ProcessorText extends ProcessorTemplateElem 30 { 31 32 43 protected void appendAndPush( 44 StylesheetHandler handler, ElemTemplateElement elem) 45 throws org.xml.sax.SAXException 46 { 47 48 ProcessorCharacters charProcessor = 50 (ProcessorCharacters) handler.getProcessorFor(null, "text()", "text"); 51 52 charProcessor.setXslTextElement((ElemText) elem); 53 54 ElemTemplateElement parent = handler.getElemTemplateElement(); 55 56 parent.appendChild(elem); 57 elem.setDOMBackPointer(handler.getOriginatingNode()); 58 } 59 60 71 public void endElement( 72 StylesheetHandler handler, String uri, String localName, String rawName) 73 throws org.xml.sax.SAXException 74 { 75 76 ProcessorCharacters charProcessor 77 = (ProcessorCharacters) handler.getProcessorFor(null, "text()", "text"); 78 79 charProcessor.setXslTextElement(null); 80 81 } 82 } 83 | Popular Tags |