1 $httpheader{Content-Type,application/xml}<?xml version="1.0" encoding="UTF-8"?>
2 $setmap{prefix,,$split{ S B F},title,S,author,A,topic,B}
3 <rss version="2.0" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">
5 <title>Xapian search results</title>
6 <link>$html{$env{SCRIPT_NAME}?DB=$url{$dbname}&P=$url{$query}}</link>
7 <description>Search results for "$html{$query}" at xapian.org</description>
8 <language>en</language>
9 <copyright>(C)2005, Xapian.org</copyright>
10 <openSearch:totalResults>$msize</openSearch:totalResults>
11 <openSearch:startIndex>$add{topdoc,1}</openSearch:startIndex>
12 <openSearch:itemsPerPage>$hitsperpage</openSearch:itemsPerPage>
15 <title>$html{$or{$field{title},$field{caption}}}</title>
16 <link>$html{$field{url}}</link>
17 <description>$html{$highlight{$field{sample},$terms,<strong>,</strong>}$if{$field{sample},...}}</description>