blob: 43bbd05a2e67a3b8f4955343965b0cbb468247b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
<?xml version="1.0" encoding="iso-8859-15"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:html="http://www.w3.org/1999/xhtml">
<xsl:output method="xml" version="1.0" encoding="iso-8859-15" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" indent="yes"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>
<body>
<h1>Source Search Engine</h1>
<xsl:copy-of select="//html:div[@class="formbox"]"/>
<xsl:if test="number(id("results_total")) = 0">
<div>Your search yielded no results.</div>
</xsl:if>
<xsl:if test="number(id("results_total")) > 0">
<div class="n_hits">ca. <xsl:value-of select="id("results_total")"/> hits.</div>
<xsl:for-each select="id("result_list")/html:li">
<div class="hit">
<div class="hit_package">Project: <span class="name"><xsl:value-of select="html:span[@class="package_name"]"/></span></div>
<div class="hit_file">File: <a class="file">
<xsl:attribute name="href"><xsl:value-of select="html:a[@class="file_link"]/@href"/></xsl:attribute> <xsl:value-of select="html:a[@class="file_link"]"/></a></div>
<div class="hit_statistics"><xsl:value-of select="html:span[@class="hits"]"/> hits in <xsl:value-of select="html:span[@class="words"]"/> different words.</div>
</div>
</xsl:for-each>
</xsl:if>
<div class="linkbox">
<xsl:for-each select="//html:ul[@class="links"]">
<xsl:copy-of select="."/>
</xsl:for-each>
</div>
<div class="statistics">
<xsl:value-of select="id("n_word") "/> words,
<xsl:value-of select="id("n_file") "/> files,
<xsl:value-of select="id("n_package") "/> packages in database.
</div>
<div class="authors"><xsl:text>Brought to you by Lennart Poettering, Stephan Pöhlsen and Sebastien Estienne, 2005</xsl:text></div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
|