public class Xsl extends AbstractStylesheetFactory
import java.io.*;
import javax.xml.transform.*;
import javax.xml.transform.stream.*;
import org.xml.sax.*;
import com.caucho.xsl.*;
...
TransformerFactory factory = new Xsl();
StreamSource xslSource = new StreamSource("mystyle.xsl");
Transformer transformer = factory.newTransformer(xslSource);
StreamSource xmlSource = new StreamSource("test.xml");
StreamResult htmlResult = new StreamResult("test.html");
transformer.transform(xmlSource, htmlResult);
Constructor and Description |
---|
Xsl() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
protected org.w3c.dom.Document |
parseXSL(ReadStream rs)
Parses the XSL into a DOM document.
|
getAssociatedStylesheet, getAttribute, getClassLoader, getClassName, getErrorListener, getFeature, getLoadPrecompiledStylesheet, getSearchPath, getStylePath, getSystemId, getURIResolver, getWorkPath, isAutoCompile, loadStylesheet, newStylesheet, newStylesheet, newStylesheet, newStylesheet, newStylesheet, newTemplates, newTemplates, newTemplates, newTemplatesHandler, newTransformer, newTransformer, newTransformer, newTransformerHandler, newTransformerHandler, newTransformerHandler, newXMLFilter, newXMLFilter, parseStylesheet, setAttribute, setAutoCompile, setClassLoader, setClassName, setErrorListener, setFeature, setLoadPrecompiledStylesheet, setSearchPath, setStylePath, setSystemId, setURIResolver, setWorkPath, transform, transform
protected org.w3c.dom.Document parseXSL(ReadStream rs) throws javax.xml.transform.TransformerConfigurationException
parseXSL
in class AbstractStylesheetFactory
rs
- the input stream.javax.xml.transform.TransformerConfigurationException
public static void main(java.lang.String[] args)