2008-03-07 18:43:25 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<xsl:stylesheet version="1.0"
|
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
|
|
xmlns:cc="http://web.resource.org/cc/"
|
|
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
|
|
>
|
|
|
|
|
|
|
|
<xsl:template name="xhtml-head">
|
|
|
|
|
2008-04-06 23:56:34 +00:00
|
|
|
<head>
|
|
|
|
<meta
|
|
|
|
http-equiv="Content-Type"
|
|
|
|
content="application/xhtml+xml;charset=utf-8"
|
|
|
|
/>
|
2008-03-07 18:43:25 +00:00
|
|
|
|
2008-04-06 23:56:34 +00:00
|
|
|
<link
|
|
|
|
rel="shortcut icon"
|
|
|
|
type="image/x-icon"
|
|
|
|
href="/images/favicon.ico"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<link
|
|
|
|
rel="stylesheet"
|
|
|
|
type="text/css"
|
|
|
|
media="screen"
|
|
|
|
href="/style/default.css"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<link
|
|
|
|
rel="search"
|
|
|
|
type="application/opensearchdescription+xml"
|
|
|
|
>
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:value-of select="$site_strings[@id='path_root']" />?xslt=opensearch
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:attribute name="title">
|
|
|
|
<xsl:value-of select="$site_strings[@id='site_name']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
</link>
|
|
|
|
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="//frontpage">
|
|
|
|
|
|
|
|
<title>
|
|
|
|
<xsl:value-of select="$site_strings[@id='site_name']" />
|
|
|
|
-
|
|
|
|
<xsl:value-of select="$site_strings[@id='site_motto']" />
|
|
|
|
</title>
|
|
|
|
|
|
|
|
</xsl:when>
|
|
|
|
|
|
|
|
<xsl:when test="//page/video">
|
|
|
|
|
|
|
|
<title>
|
|
|
|
<xsl:value-of select="$site_strings[@id='site_name']" />
|
|
|
|
-
|
|
|
|
<xsl:value-of select="//page/video/rdf:RDF/cc:Work/dc:title" />
|
|
|
|
</title>
|
|
|
|
|
|
|
|
</xsl:when>
|
|
|
|
|
|
|
|
<xsl:when test="//page//results">
|
2008-03-19 20:02:42 +00:00
|
|
|
|
|
|
|
<link
|
2008-04-06 23:56:34 +00:00
|
|
|
rel="alternate"
|
|
|
|
type="application/rss+xml"
|
|
|
|
>
|
|
|
|
<xsl:attribute name="title">
|
|
|
|
<xsl:value-of select="$locale_strings[@id='rss_title_results_this_page']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:value-of select="$site_strings[@id='path_root']" />
|
|
|
|
<xsl:value-of select="$site_strings[@id='path_results']" />
|
|
|
|
<xsl:value-of select="//results/@query" />
|
|
|
|
&pagesize=<xsl:value-of select="//results/@pagesize" />
|
|
|
|
&page=<xsl:value-of select="//results/@page" />
|
|
|
|
&xslt=rss
|
|
|
|
</xsl:attribute>
|
|
|
|
</link>
|
|
|
|
|
2008-03-19 20:02:42 +00:00
|
|
|
<link
|
2008-04-06 23:56:34 +00:00
|
|
|
rel="alternate"
|
|
|
|
type="application/rss+xml"
|
|
|
|
>
|
|
|
|
<xsl:attribute name="title">
|
|
|
|
<xsl:value-of select="$locale_strings[@id='rss_title_results_all_pages']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:value-of select="$site_strings[@id='path_root']" />
|
|
|
|
<xsl:value-of select="$site_strings[@id='path_results']" />
|
|
|
|
<xsl:value-of select="//results/@query" />
|
|
|
|
&pagesize=99999
|
|
|
|
&page=1
|
|
|
|
&xslt=rss
|
|
|
|
</xsl:attribute>
|
|
|
|
</link>
|
2008-03-07 18:43:25 +00:00
|
|
|
|
2008-04-06 23:56:34 +00:00
|
|
|
<title>
|
2008-03-07 18:43:25 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='site_name']" />
|
|
|
|
-
|
|
|
|
<xsl:value-of select="$locale_strings[@id='results_for_query']" />
|
2008-04-06 23:56:34 +00:00
|
|
|
"<xsl:value-of select="//page/results/@query" />"
|
|
|
|
</title>
|
|
|
|
|
|
|
|
</xsl:when>
|
|
|
|
|
|
|
|
</xsl:choose>
|
|
|
|
|
|
|
|
</head>
|
2008-03-07 18:43:25 +00:00
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|