yolanda/branches/old-perl/trunk/xsl/xhtml/xhtml-head.xsl
erlehmann f2b388baca branching ...
git-svn-id: http://yolanda.mister-muffin.de/svn@360 7eef14d0-6ed0-489d-bf55-20463b2d70db
2008-07-31 19:10:25 +00:00

121 lines
4.1 KiB
XML

<?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">
<head>
<meta
http-equiv="Content-Type"
content="application/xhtml+xml;charset=utf-8"
/>
<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>
<link rel="pingback">
<xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='path_root']" />pingback.pl
</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">
<link
rel="alternate"
type="application/rss+xml"
>
<xsl:attribute name="title">
<xsl:value-of select="$lang_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" />
&amp;pagesize=<xsl:value-of select="//results/@pagesize" />
&amp;page=<xsl:value-of select="//results/@page" />
&#38;xslt=rss
</xsl:attribute>
</link>
<link
rel="alternate"
type="application/rss+xml"
>
<xsl:attribute name="title">
<xsl:value-of select="$lang_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" />
&amp;pagesize=99999
&amp;page=1
&#38;xslt=rss
</xsl:attribute>
</link>
<title>
<xsl:value-of select="$site_strings[@id='site_name']" />
-
<xsl:value-of select="$lang_strings[@id='results_for_query']" />
"<xsl:value-of select="//page/results/@query" />"
</title>
</xsl:when>
</xsl:choose>
</head>
</xsl:template>
</xsl:stylesheet>