rsrsss/xquery/opml/meteoalarm.xqy

18 lines
509 B
Plaintext

import module namespace rsrsss = "https://envs.net/~lucidiot/rsrsss/rsrsss-functions" at "../functions.xqy";
rsrsss:make-opml(
"MeteoAlarm feeds",
doc('https://feeds.meteoalarm.org/')//h2
! <outline text="{text()}">
{
./following-sibling::ul[1]/li/a/@href
! <outline
type="rss"
xmlUrl="{.}"
text="{if (contains(., 'atom')) then 'Atom + CAP' else 'RSS'}"
version="{if (contains(., 'atom')) then 'ATOM' else 'RSS'}"
/>
}
</outline>
)