<t:switch prioritized="true">

<DIV id="Result" class="result">
  <div class="result_gefunden">Gefunden:<t:s>search-result-count := extract(., "[0-9 ]+$")</t:s></div>
  <TABLE class="resulttab" t:test="$search-result-count > 0">
    <TR><TH/></TR>
    <TR>
      <TD/>
      <TD>
        <A>{let $x := . return $book := {
          "author": substring-before($x, ":"),
          "title":  replace($x, "^[^:]+:| - [1-3][0-9]{3}.*", "", "s"),
          "year": extract($x, "([1-3][0-9]{3})( *[.]| *$)", 1),
          "_detailsBackScroll": let $url := base-uri() return if (contains($url, "scrollAction")) then $url else $url || "?scrollAction=1",
          "_details": resolve-uri(@href) }}</A>
      </TD>
    </TR>+
  </TABLE>
  <div class="result_nav">
    <u/> <a>{search-next-page-available := true(), next-page := @href}</a>
  </div>?
</DIV>

<div class="suchfeldfehler">{vl:raise(.)}</div>
<div class="resultzeile">{vl:raise(.)}</div>

</t:switch>