equal
deleted
inserted
replaced
|
1 xquery version "1.0"; |
|
2 |
|
3 declare namespace relpipe="tag:globalcode.info,2018:relpipe"; |
|
4 declare namespace atom="http://www.w3.org/2005/Atom"; |
|
5 |
|
6 <relpipe xmlns="tag:globalcode.info,2018:relpipe"> |
|
7 <relation> |
|
8 <name>atom</name> |
|
9 <attributes-metadata> |
|
10 <attribute-metadata name="published" type="string"/> |
|
11 <attribute-metadata name="title" type="string"/> |
|
12 <attribute-metadata name="url" type="string"/> |
|
13 </attributes-metadata> |
|
14 |
|
15 { |
|
16 for $e in /atom:feed/atom:entry |
|
17 order by $e/atom:published descending |
|
18 return |
|
19 <record> |
|
20 <attribute>{$e/atom:published/text()}</attribute> |
|
21 <attribute>{$e/atom:title/text()}</attribute> |
|
22 <attribute>{string($e/atom:link/@href)}</attribute> |
|
23 </record> |
|
24 } |
|
25 </relation> |
|
26 </relpipe> |