Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*) adding xsl stylesheet that can be used by browsers to format the r…
…ss search result in a user friendly format git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@237 6c8d7289-2bf4-0310-a012-ef5d649a1542
- Loading branch information
theli
committed
Jun 9, 2005
1 parent
e302c50
commit 6bde379
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<?xml-stylesheet type='text/xsl' href='/rss.xsl' version='1.0'?> | ||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/" version="1.0"> | ||
<xsl:template match='/rss'> | ||
<html> | ||
<head> | ||
<title><xsl:value-of select='channel/title' /></title> | ||
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | ||
<link rel="shortcut icon" href="favicon.ico" /> | ||
<style type="text/css"> | ||
@import "/env/style.css"; | ||
</style> | ||
</head> | ||
<body> | ||
<div align="center"> | ||
<img src="/env/grafics/kaskelix.png"/><br/> | ||
<h1><xsl:value-of select='channel/title' /></h1> | ||
</div> | ||
<p> | ||
<xsl:apply-templates select='channel/item' /> | ||
</p> | ||
</body> | ||
</html> | ||
</xsl:template> | ||
|
||
<xsl:template match='item'> | ||
<p> | ||
<b><xsl:value-of select='title'/></b><br/> | ||
<a href="{link}" ><xsl:value-of select='link' /></a><br/> | ||
<xsl:value-of select='pubDate' /><br/> | ||
</p> | ||
</xsl:template> | ||
|
||
</xsl:stylesheet> |