You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Richard Kettelerij <ri...@gmail.com> on 2010/10/08 00:39:08 UTC

Re: XML to HTML output using XSL using camel

There's a concrete example on the Camel XSLT component page. Take a look at
http://camel.apache.org/xslt.html and scroll down to "Spring XML versions". 

The example features a route defined in Spring to read a message from a
queue and transform it using a XSL file. The resulting XML (or HTML in your
case) is then writing to another queue. It's relatively easy to replace the
input/output queue with file input/output (see the 
http://camel.apache.org/file2.html File  component). 

If you want to know how to wire it all together I suggest you take a look at
the  http://camel.apache.org/walk-through-an-example.html walk-through
examples  that show  how to setup a CamelContext. Also note this 
http://svn.apache.org/repos/asf/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/processor/XsltTest.java
test case  and this Spring 
http://svn.apache.org/repos/asf/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/XsltTest-context.xml
XML file  that also demonstrate the XSL component.




-----
Richard Kettelerij,
http://github.com/rkettelerij
-- 
View this message in context: http://camel.465427.n5.nabble.com/XML-to-HTML-output-using-XSL-using-camel-tp3201318p3203832.html
Sent from the Camel - Users mailing list archive at Nabble.com.