首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >boss Fuse Fuse转换XML usinf XSLT

boss Fuse Fuse转换XML usinf XSLT
EN

Stack Overflow用户
提问于 2018-04-06 09:20:52
回答 1查看 89关注 0票数 0

http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">

代码语言:javascript
复制
<camelContext id="cbr-example-context" xmlns="http://camel.apache.org/schema/blueprint">

    <route id="cbr-route">
        <from id="_from1" uri="file:///d:/inxslt"/>
        <transform.xslt from="_from1" to="_to3" xsltFile="src/main/java/com/xslt/converterXsl.xsl"/>
        <to id="_to3" uri="file:///d:/outxslt"/>


    </route>
</camelContext>

我想使用我的xml格式类来转换xml,这是在file:///d:/inxslt中的路径,我在这里做了进一步的尝试,但没有工作。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-04-09 07:31:26

尝试使用以下定义的骆驼路线。

代码语言:javascript
复制
<camelContext id="_context1" xmlns="http://camel.apache.org/schema/blueprint">
    <route id="_route1">
        <from id="_from1" uri="file:src/data?noop=true"/>
        <to id="_to1" uri="xslt:file:src/xml2html.xsl"/>
        <to id="_to2" uri="file:target/output"/>
    </route>
</camelContext>

请根据您的需要调整文件路径。特别是XSLT组件的注释。

我希望这有帮助;-)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49689449

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档