0
我在源XML這樣的數據:複製的選擇名稱
<Firma ID_FIRMY="15" ROLE_FIRMY="O " KOD_FIRMY="Tomášov">
這是我的XSL:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="utf-8" indent="no"/>
<xsl:template match="root/Firma">
<MoneyData>
<xsl:copy-of select="@ID_FIRMY"/>
<xsl:copy-of select="@KOD_FIRMY"/>
</MoneyData>
</xsl:template>
</xsl:stylesheet>
這是我的XML輸出:
<?xml version="1.0" encoding="utf-8"?>
<MoneyData ID_FIRMY="15" KOD_FIRMY="Tomášov"/>
但我需要此輸出:(更改名稱..)
<?xml version="1.0" encoding="utf-8"?>
<MoneyData KodAgendy="15" HospRokOd="Tomášov"/>
我該怎麼做?