1 16 package org.apache.cocoon.components.xslt; 17 18 import org.apache.avalon.framework.component.Component; 19 import org.apache.avalon.framework.parameters.Parameters; 20 import org.apache.cocoon.ProcessingException; 21 import org.apache.cocoon.environment.Source; 22 import org.apache.cocoon.environment.SourceResolver; 23 import org.xml.sax.XMLFilter ; 24 25 import javax.xml.transform.Result ; 26 import javax.xml.transform.sax.TransformerHandler ; 27 28 36 public interface XSLTProcessor extends Component 37 { 38 41 String ROLE = XSLTProcessor.class.getName(); 42 43 47 String DEFAULT_FACTORY = "default"; 48 49 57 void setSourceResolver(SourceResolver resolver); 58 59 69 void setTransformerFactory(String classname); 70 71 90 TransformerHandler getTransformerHandler(Source stylesheet, 91 XMLFilter filter) 92 throws ProcessingException; 93 94 104 TransformerHandler getTransformerHandler(Source stylesheet) 105 throws ProcessingException; 106 107 121 void transform(Source source, Source stylesheet, Parameters params, 122 Result result) 123 throws ProcessingException; 124 } 125 | Popular Tags |