需要帮忙!刚从 xslt 开始,不知道如何在我的情况下进行转换,thanx 事先
源 XML
<?xml version="1.0" encoding="UTF-8"?>
<body xmlns:httpsca="http://www.ibm.com/xmlns/prod/websphere/http/sca/6.1.0" ...>
<tns:getRealEstateObjects>
<RequestElement>
<IdNumnet>30361100000000000034</IdNumnet>
<IdSelectFromDate></IdSelectFromDate>
</RequestElement>
</tns:getRealEstateObjects>
</body>
目标 XML
<?xml version="1.0" encoding="UTF-8"?>
<result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sa="http://www.ibm.com/xmlns/prod/websphere/j2ca/sap">
<IdNumnet>30361100000000000034</IdNumnet>
</result>
生成了我应该编辑的 xslt
<xsl:output method="xml" encoding="UTF-8" indent="yes" xalan:indent-amount="2"/>
<xsl:strip-space elements="*"/>
<!-- The rule represents a custom mapping: "IdSelectFromDate" to "IdSelectFromDate". -->
<xsl:template name="IdSelectFromDateToIdSelectFromDate">
<xsl:param name="IdSelectFromDate"/>
<!-- ADD CUSTOM CODE HERE. -->
</xsl:template>
</xsl:stylesheet>