我正在使用 BizTalk Map 构建一条消息并将外部 XSLT 应用到它。我希望转换后的 XML 具有 '<' 和 '>' 而不是 "<" 和 ">" 例如:
我的输入 XML 是:
<DEALER>
<DEALER_DETAILS>
<ID>DL00005</ID>
<DEALER_NAME>Dealer Name</DEALER_NAME>
<INN_NUMBER>7736530296</INN_NUMBER>
<KPP_NUMBER>773601001</KPP_NUMBER>
<OKPO_NUMBER>69076838</OKPO_NUMBER>
<SAP_CODE>SAP101</SAP_CODE>
<UPDATE_DATE>2010-08-02</UPDATE_DATE>
</DEALER_DETAILS>
</DEALER>
我申请的 XSLT 是:
<xsl:template match="/">
<xsl:apply-templates select="/DEALER" />
</xsl:template>
<xsl:template match="/DEALER">
<Result>
<Dealer>
<xsl:copy-of select="/*" />
</Dealer>
</Result>
</xsl:template>
输出是:
<Result>
<DEALER xmlns="http://tempuri.org/RSINT9_Output.xsd">
<DEALER_DETAILS>
<ID>DL00005</ID>
<DEALER_NAME>Dealer Name Again</DEALER_NAME>
<INN_NUMBER>7736530296</INN_NUMBER>
<KPP_NUMBER>773601001</KPP_NUMBER>
<OKPO_NUMBER>69076838</OKPO_NUMBER>
<SAP_CODE>SAP101</SAP_CODE>
<UPDATE_DATE>2010-08-02</UPDATE_DATE>
</DEALER_DETAILS>
</DEALER>
</Result>
但我希望输出如下:
<Result>
<DEALER xmlns="http://tempuri.org/RSINT9_Output.xsd">
<DEALER_DETAILS>
<ID>DL00005</ID>
<DEALER_NAME>Dealer Name Again</DEALER_NAME>
<INN_NUMBER>7736530296</INN_NUMBER>
<KPP_NUMBER>773601001</KPP_NUMBER>
<OKPO_NUMBER>69076838</OKPO_NUMBER>
<SAP_CODE>SAP101</SAP_CODE>
<UPDATE_DATE>2010-08-02</UPDATE_DATE>
</DEALER_DETAILS>
</DEALER>
</Result>
请指导我。
谢谢,Mayur Jadhav