Saxon xslt导入问题

时间:2018-04-16 21:41:20

标签: xml xslt apache-camel saxon

我们有一个导入多个xslts的xslt。

xllt在驼峰路线中被调用如下

<to uri="xslt:Saveaccount/Main.xslt.xslt?saxon=true"/>

Main.xslt在saveaccount中导入Building.xslt和Policy.xslt。

Building.xslt导入Saveaccount / peril / wind / building.xslt,Saveaccount / peril / flood / building.xslt和 Saveaccount /危险/ Thunderstrom / building.xslt

Policy.xslt导入Saveaccount / peril / wind / Policy.xslt,Saveaccount / peril / flood / Policy.xslt和 Saveaccount /危险/ Thunderstrom / Policy.xslt

Folder structure is as below

Saveaccount
Main.xslt
Building.xslt
Policy.xslt

Saveaccount/peril/wind
building.xslt
Policy.xslt

Saveaccount/peril/flood
building.xslt
Policy.xslt

Saveaccount/peril/Thunderstrom
building.xslt
Policy.xslt

使用saxon时出现编译错误。

Caused by: javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 12 errors detected.
    at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:249) [Saxon-HE-9.5.1-5.jar:]
    at net.sf.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:142) [Saxon-HE-9.5.1-5.jar:]
    at org.apache.camel.builder.xml.XsltBuilder.setTransformerSource(XsltBuilder.java:353) [camel-core-2.17.0.redhat-630310.jar:2.17.0.redhat-630310]
    at org.apache.camel.component.xslt.XsltEndpoint.loadResource(XsltEndpoint.java:367) [camel-core-2.17.0.redhat-630310.jar:2.17.0.redhat-630310]
    at org.apache.camel.component.xslt.XsltEndpoint.doStart(XsltEndpoint.java:432) [camel-core-2.17.0.redhat-630310.jar:2.17.0.redhat-630310]
    at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) [camel-core-2.17.0.redhat-630310.jar:2.17.0.redhat-630310]
    at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:3251) [camel-core-2.17.0.redhat-630310.jar:2.17.0.redhat-630310]
    at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1219) [camel-core-2.17.0.redhat-630310.jar:2.17.0.redhat-630310]
    at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1180) [camel-core-2.17.0.redhat-630310.jar:2.17.0.redhat-630310]
    at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1176) [camel-core-2.17.0.redhat-630310.jar:2.17.0.redhat-630310]
    at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:585) [camel-core-2.17.0.redhat-630310.jar:2.17.0.redhat-630310]
    ... 46 more

由于错误详细信息在日志中不可用,任何帮助表示赞赏。

0 个答案:

没有答案