這裏的datetime屬性值是我的源XML:需要一個XSL來更新XML
<Chat>
<Chat StartTime="2017-05-28T02:05:52">
<message userId="02A0592964A8F75F" timeShift="4">
<msgText> Hi </msgText>
</message>
<message userId="123458566666666B" timeShift="30">
<msgText> Hello.. How can I Help You. ? </msgText>
</message>
</Chat>
我需要一個XSL來trnsform來源爲:
<Chats>
<message time="2017-05-28T02:05:56" userId="02A0592964A8F75F">Hi</message>
<message time="2017-05-28T02:06:32" userId="02A0592964A8F75F">Hello.. How can I Help You. ?</message>
</Chats>
在輸出XML文件,應使用基於TimeShift(秒)的StartTime更新消息時間。
你可以使用XSLT 2.0嗎? –