annotate src/de/mpiwg/dwinter/fulltextSearchServer/xsl/ticketResultToHTML.xsl @ 0:db87c1b7eb6d

initial
author dwinter
date Wed, 03 Nov 2010 12:18:46 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
db87c1b7eb6d initial
dwinter
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://dublincore.org/documents/dcmi-namespace/">
db87c1b7eb6d initial
dwinter
parents:
diff changeset
3 <xsl:output method="html"></xsl:output>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
4 <xsl:template match="/">
db87c1b7eb6d initial
dwinter
parents:
diff changeset
5 <xsl:apply-templates select="//results"/>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
6 </xsl:template>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
7
db87c1b7eb6d initial
dwinter
parents:
diff changeset
8 <xsl:template match="results">
db87c1b7eb6d initial
dwinter
parents:
diff changeset
9 <div class="resultLang"><xsl:value-of select="//resultSet/@lang"/></div>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
10 <table class="languageSearchResults">
db87c1b7eb6d initial
dwinter
parents:
diff changeset
11 <xsl:apply-templates select="result"/>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
12 </table>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
13 </xsl:template>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
14
db87c1b7eb6d initial
dwinter
parents:
diff changeset
15 <xsl:template match="result">
db87c1b7eb6d initial
dwinter
parents:
diff changeset
16
db87c1b7eb6d initial
dwinter
parents:
diff changeset
17 <tr class="resultDocument">
db87c1b7eb6d initial
dwinter
parents:
diff changeset
18 <xsl:attribute name="id"><xsl:value-of select="//resultSet/@lang"/>_<xsl:value-of select="textIdCleaned"/></xsl:attribute>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
19 <xsl:attribute name="class">documentHit</xsl:attribute>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
20 <td class="resultLink">
db87c1b7eb6d initial
dwinter
parents:
diff changeset
21 <a class="resultHitsTicket">
db87c1b7eb6d initial
dwinter
parents:
diff changeset
22 <xsl:attribute name="href"><xsl:value-of select="//resultSet/@lang"/>/<xsl:value-of select="textId"/></xsl:attribute>ticket
db87c1b7eb6d initial
dwinter
parents:
diff changeset
23 </a>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
24 <a class="resultHits" target="found">
db87c1b7eb6d initial
dwinter
parents:
diff changeset
25 <xsl:attribute name="href">/linesInDocument/<xsl:value-of select="textId"/>/<xsl:value-of select="//resultSet/@lang"/>/<xsl:value-of select="//resultSet/@queryString"/></xsl:attribute>search
db87c1b7eb6d initial
dwinter
parents:
diff changeset
26 </a>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
27 </td >
db87c1b7eb6d initial
dwinter
parents:
diff changeset
28 <td class="resultTextId">
db87c1b7eb6d initial
dwinter
parents:
diff changeset
29 <xsl:value-of select="textId"/>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
30 </td>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
31 <xsl:apply-templates select=".//md"/>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
32 </tr>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
33
db87c1b7eb6d initial
dwinter
parents:
diff changeset
34 </xsl:template>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
35 <xsl:template match="md">
db87c1b7eb6d initial
dwinter
parents:
diff changeset
36 <td class="resultMD resultMDdate">
db87c1b7eb6d initial
dwinter
parents:
diff changeset
37 <xsl:value-of select=".//dc:date"/>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
38 </td>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
39 <td class="resultMD resultMDtitle">
db87c1b7eb6d initial
dwinter
parents:
diff changeset
40 <xsl:value-of select=".//dc:title"/>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
41 </td>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
42 <td class="resultMD resultMDcreator">
db87c1b7eb6d initial
dwinter
parents:
diff changeset
43 <xsl:value-of select=".//dc:creator"/>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
44 </td>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
45 </xsl:template>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
46 </xsl:stylesheet>
db87c1b7eb6d initial
dwinter
parents:
diff changeset
47
db87c1b7eb6d initial
dwinter
parents:
diff changeset
48