【发布时间】:2011-04-08 13:32:38
【问题描述】:
<Note NoteText="TestOrder">
<test City="abc" Address="abc"
Response="abc" Devicename="abc"
DateTime="2011-02-07T07:02:53+00:00"/>
</Note>
<Note NoteText="TestOrder1">
<test City="abc" Address="abc"
Response="abc" Devicename="abc"
DateTime="2011-02-08T07:02:53+00:00"/>
</Note>
<Note NoteText="TestOrder2">
<test City="abc" Address="abc"
Response="abc" Devicename="abc"
DateTime="2011-02-09T18:02:53+00:00"/>
</Note>
<Note NoteText="TestOrder3">
<test City="abc" Address="abc"
Response="abc" Devicename="abc"
DateTime="2011-02-10T17:02:53+00:00"/>
</Note>
首先我想从 Datetime 属性中找到最新的 Datetime,并且我想使用 xslt 将这些最新的属性转移到另一个属性。
city-C1
Address-A1
Response-R1
Devicename-D1
Datetime-DT
请帮我继续
【问题讨论】:
-
好问题,+1。请参阅我的答案以获得完整、简短且简单的解决方案。
-
我不完全理解需要什么,下面的两个答案会产生不同的输出,所以我不确定其他人是否真的这样做。