<?xml version="1.0" encoding="UTF-8"?>
<MyXMLTree xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Node1>X</Node1>
<Node1Ext>Y</Node1Ext>
</MyXMLTree>
我想要一个 XSLT 将 XML 转换成这个
<?xml version="1.0" encoding="UTF-8"?>
<MyXMLTree xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Node1>X</Node1>
<Node1Ext>1</Node1Ext>
</MyXMLTree>
If Node1 == 'X' and Node1Ext != 'X' then
Node1Ext = '1'
else if Node1 != 'X' and Node1Ext == 'X' then
Node1Ext = '2'
else if Node1 == 'X'and Node1Ext =='X' then
Node1Ext = '3'
EndIf
先感谢您 :)