1 17 package org.apache.excalibur.xml.xslt; 18 19 import javax.xml.transform.Result ; 20 import javax.xml.transform.sax.TransformerHandler ; 21 22 import org.apache.avalon.framework.component.Component; 23 import org.apache.avalon.framework.parameters.Parameters; 24 import org.apache.excalibur.source.Source; 25 import org.apache.excalibur.source.SourceValidity; 26 import org.xml.sax.XMLFilter ; 27 28 36 public interface XSLTProcessor 37 extends Component 38 { 39 42 String ROLE = XSLTProcessor.class.getName(); 43 44 public static class TransformerHandlerAndValidity 45 { 46 private final TransformerHandler transformerHandler; 47 private final SourceValidity transformerValidity; 48 49 protected TransformerHandlerAndValidity( final TransformerHandler transformerHandler, 50 final SourceValidity transformerValidity ) 51 { 52 this.transformerHandler = transformerHandler; 53 this.transformerValidity = transformerValidity; 54 } 55 56 public TransformerHandler getTransfomerHandler() 57 { 58 return transformerHandler; 59 } 60 61 public SourceValidity getTransfomerValidity() 62 { 63 return transformerValidity; 64 } 65 } 66 67 77 void setTransformerFactory( String classname ); 78 79 99 TransformerHandler getTransformerHandler( Source stylesheet, XMLFilter filter ) 100 throws XSLTProcessorException; 101 102 123 TransformerHandlerAndValidity getTransformerHandlerAndValidity( Source stylesheet, XMLFilter filter ) 124 throws XSLTProcessorException; 125 126 134 TransformerHandler getTransformerHandler( Source stylesheet ) 135 throws XSLTProcessorException; 136 137 145 TransformerHandlerAndValidity getTransformerHandlerAndValidity( Source stylesheet ) 146 throws XSLTProcessorException; 147 148 162 void transform( Source source, Source stylesheet, Parameters params, Result result ) 163 throws XSLTProcessorException; 164 } 165 | Popular Tags |