Examples of XSLPipeline


Examples of com.lyncode.xoai.util.XSLPipeline

    @Test
    public void pipelineTest () throws Exception {
        InputStream input = PipelineTest.class.getClassLoader().getResourceAsStream("item.xml");
        InputStream xslt = PipelineTest.class.getClassLoader().getResourceAsStream("oai_dc.xsl");
        String output = FileUtils.readAllText(new XSLPipeline(input, true)
                .apply(factory.newTransformer(new StreamSource(xslt)))
                .getTransformed());

        assertThat(output, xPath("/oai_dc:dc/dc:title", equalTo("Teste")));
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.