--- /dev/null
+%# $Id: raw.html,v 1.1 2006-09-19 11:11:33 mike Exp $
+<%args>
+$id
+</%args>
+<%once>
+use ZOOM;
+</%once>
+<%perl>
+my $conn = new ZOOM::Connection("localhost:1313/IR-Explain---1");
+$conn->option(elementSetName => "zeerex");
+my $query = qq[rec.id="$id"];
+my $rs = $conn->search(new ZOOM::Query::CQL($query));
+my $n = $rs->size();
+if ($n == 0) {
+ $m->comp("/chrome/layout.mc", component => "/details/error.mc",
+ title => "Error", message => "No such ID '$id'");
+} else {
+ my $rec = $rs->record(0);
+ my $xml = $rec->render();
+ $r->content_type("text/xml");
+ print $xml;
+}
+</%perl>