1 16 19 package org.apache.xalan.processor; 20 21 import javax.xml.transform.TransformerException ; 22 23 import org.apache.xalan.templates.ElemAttributeSet; 24 import org.apache.xalan.templates.ElemTemplateElement; 25 26 import org.xml.sax.Attributes ; 27 28 33 class ProcessorAttributeSet extends XSLTElementProcessor 34 { 35 36 57 public void startElement( 58 StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes) 59 throws org.xml.sax.SAXException 60 { 61 62 ElemAttributeSet eat = new ElemAttributeSet(); 63 64 eat.setLocaterInfo(handler.getLocator()); 65 try 66 { 67 eat.setPrefixes(handler.getNamespaceSupport()); 68 } 69 catch(TransformerException te) 70 { 71 throw new org.xml.sax.SAXException (te); 72 } 73 74 eat.setDOMBackPointer(handler.getOriginatingNode()); 75 setPropertiesFromAttributes(handler, rawName, attributes, eat); 76 handler.getStylesheet().setAttributeSet(eat); 77 78 ElemTemplateElement parent = handler.getElemTemplateElement(); 80 81 parent.appendChild(eat); 82 handler.pushElemTemplateElement(eat); 83 } 84 85 96 public void endElement( 97 StylesheetHandler handler, String uri, String localName, String rawName) 98 throws org.xml.sax.SAXException 99 { 100 handler.popElemTemplateElement(); 101 } 102 } 103 | Popular Tags |