这里是我的服务
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="Getxslt"
transports="https http"
startOnLoad="true"
trace="disable">
<description/>
<target>
<inSequence onError="fault">
<xslt key="emptransform">
</xslt>
<payloadFactory>
<format>
<select xmlns=""/>
</format>
</payloadFactory>
<send>
<endpoint>
<address uri="http://localhost:9764/services/emp_DataService/" format="soap11"/>
</endpoint>
</send>
</inSequence>
<outSequence onError="fault">
<log level="full"/>
<send/>
</outSequence>
</target>
<parameter name="serviceType">proxy</parameter>
</proxy>
XSLT 是
<?xml version="1.0" encoding="UTF-8"?>
<localEntry xmlns="http://ws.apache.org/ns/synapse" key="emptransform">
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ns1="http://ws.wso2.org/dataservice"
version="1.0">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:template match="ns1:Body">
<ns1:select/>
</xsl:template>
</xsl:stylesheet>
<description/>
</localEntry>
DSS 服务:- DSS:-
<data name="emp_DataService" serviceNamespace="http://ws.wso2.org/dataservice">
<config id="default">
<property name="carbon_datasource_name">Signingtest</property>
</config>
<query id="select_all_emp_query" useConfig="default">
<sql>SELECT eno, username, password FROM public.emp</sql>
<result element="empCollection" rowName="emp">
<element column="eno" name="eno" xsdType="xs:integer"/>
<element column="username" name="username" xsdType="xs:string"/>
<element column="password" name="password" xsdType="xs:string"/>
</result>
</query>>
<operation name="select">
<call-query href="select_all_emp_query"/>
</operation>
</data>
我收到以下错误:-
wso2 esb 中的 XSLT 给出错误
{"ResponseJSON":{"Body":{"Data":{"Exception":"Unable to perform XSLT transformation using : Value {name ='null', keyValue ='emptransform'} against source XPath : s11:Body\/child::*[position()=1] | s12:Body\/child::*[position()=1]"}},"Status":"0"}}
我正在使用 wso2 esb 4.6.0 和 DSS 3.0.1,我编写了使用 xslt 调解器的代理服务,当我执行代理时,它给出了以下错误。能否请您纠正我,我在哪里错了..