XSTL component:
from("file://rider/inbox")
.to("xslt://camelinaction/transform.xsl")
.to("activemq:queue:transformed")
文件的消费者将文件路由到XSLT component,并使用Style sheet样式来转换负载的信息。转换之后,信息被路由到jms producer队列。
XSTL component加载style sheet样式支持的前缀:
<none>: camel从classpath中加载资源文件
classpath: camel从classpath地址中加载资源文件
file: camel从文件系统中加载资源文件
http: camel从URL中加载资源文件