Package org.apache.cocoon.pipeline.component.sax

Examples of org.apache.cocoon.pipeline.component.sax.XSLTTransformer


     * A pipeline that performs a simple transformation: generator -> transformer -> serializer
     */
    public void testPipelineWithTransformer() throws Exception {
        Pipeline pipeline = new NonCachingPipeline();
        pipeline.addComponent(new StringGenerator("<x></x>"));
        pipeline.addComponent(new XSLTTransformer(this.getClass().getResource("/test.xslt")));
        pipeline.addComponent(new XMLSerializer());

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        pipeline.setup(baos);
        pipeline.execute();
View Full Code Here


            OutputStream outputStream, URL... xsltUrls) throws Exception {
        Pipeline pipeline = new NonCachingPipeline();

        pipeline.addComponent(new StringGenerator(xmlString));
        for (URL xsltUrl : xsltUrls) {
            pipeline.addComponent(new XSLTTransformer(xsltUrl, xsltParameters));
        }
        pipeline.addComponent(new XMLSerializer(outputProperties));

        pipeline.setup(outputStream, null);
        pipeline.execute();
View Full Code Here

TOP

Related Classes of org.apache.cocoon.pipeline.component.sax.XSLTTransformer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.