1
我想用xslt 1.0实现查找和替换字符串。 问题是,我不得不更换不同值的多个字符串。例如,我输入的XML是如下XSLT字符串替换,多个字符串
<process xmlns:client="http://xmlns.oracle.com/ErrorHandler" xmlns="http://xmlns.oracle.com/ErrorHandler">
<client:result>The city name is $key1$ and Country name is $key2$ </client:result>
</process>
结果应该是从
<process xmlns:client="http://xmlns.oracle.com/ErrorHandler" xmlns="http://xmlns.oracle.com/ErrorHandler">
<client:result>The city name is London and Country name is England </client:result>
</process>
$ key1的$ $和$ KEY2输入的字符串应该被伦敦和英格兰取代。 我发现了很多例子来查找和替换单个字符串,但我不知道如何替换具有不同值的多个字符串。 任何建议吗?
在此先感谢
在这里看到一个可能的方法:http://stackoverflow.com/questions/33527077/change-html-dynamically-thru-xsl/33529970#33529970 –