将所有变量与中介映射到一个

Mapping all variables with mediator in one

我在 XSLT 文件中映射变量,但我有很多变量要映射。 WSO2有调解员吗?

<xsl:template match="@*|node()">
    <xsl:copy>
        <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
</xsl:template>

应该可以。请尝试一下。

WSO2 有自己的 XSLT 调解器,你为什么不试试那个。

语法

    <xslt key="string" [source="xpath"]>
         <property name="string" (value="literal" | expression="xpath")/>*
         <feature name="string" value="true| false" />*
         <resource location="string" key="string"/>*
    </xslt>

https://docs.wso2.com/display/ESB500/XSLT+Mediator