需要基于逻辑更改xml中的一个元素

时间:2019-04-30 09:33:04

标签: xml xslt

我要求根据逻辑更改一个元素中的值 我想将0.07的百分比更改为上述值0.045

我使用模板匹配来获取它,但是它没有通过模板

 <peci:Benefits_Earnings_and_Deductions>
            <peci:External_Payroll_Code_Name>Pension Aegon
                (Uk)</peci:External_Payroll_Code_Name>
            <peci:External_Payroll_Code>REGPEN</peci:External_Payroll_Code>
            <peci:Earning_or_Deduction>D</peci:Earning_or_Deduction>
            <peci:Amount>0</peci:Amount>
            <peci:Percentage>0.045</peci:Percentage>
            <peci:Frequency>Monthly</peci:Frequency>
            <peci:Currency>GBP</peci:Currency>

        </peci:Benefits_Earnings_and_Deductions>

        <peci:Benefits_Earnings_and_Deductions>
            <peci:External_Payroll_Code_Name>Pension Aegon ER
                (Uk)</peci:External_Payroll_Code_Name>
            <peci:External_Payroll_Code>REGPENER</peci:External_Payroll_Code>
            <peci:Earning_or_Deduction>D</peci:Earning_or_Deduction>
            <peci:Amount>0</peci:Amount>
            <peci:Percentage>0.07</peci:Percentage>
            <peci:Frequency>Monthly</peci:Frequency>
            <peci:Currency>GBP</peci:Currency>
        </peci:Benefits_Earnings_and_Deductions>

0 个答案:

没有答案