diff options
author | Andreas Gohr <andi@splitbrain.org> | 2005-10-15 13:45:45 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2005-10-15 13:45:45 +0200 |
commit | b73cc7dccaa01778de20ade004e0c3bde2e2e36a (patch) | |
tree | a082fedea2f4a7e99b5cc6352c35e9b192b145ec /_test/rss2html.xsl | |
parent | 5e35ae2a19fba9e79a1b71d951d7f322b864c001 (diff) | |
download | rpg-b73cc7dccaa01778de20ade004e0c3bde2e2e36a.tar.gz rpg-b73cc7dccaa01778de20ade004e0c3bde2e2e36a.tar.bz2 |
renamed test directory
darcs-hash:20051015114545-7ad00-561552ce7e519d81146b5cb2d28203aee7c6d2ad.gz
Diffstat (limited to '_test/rss2html.xsl')
-rw-r--r-- | _test/rss2html.xsl | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/_test/rss2html.xsl b/_test/rss2html.xsl new file mode 100644 index 000000000..ae56d2c20 --- /dev/null +++ b/_test/rss2html.xsl @@ -0,0 +1,110 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- + @(#) $Id: rss2html.xsl,v 1.1 2004/06/11 22:00:57 harryf Exp $ + --> +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rss="http://purl.org/rss/1.0/" xmlns="http://www.w3.org/1999/xhtml"> + +<xsl:output method="html"/> + +<xsl:template match="/"> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> +<style type="text/css"> +div.channel-title { font-family: sans-serif, arial, helvetica } +</style> +<style type="text/css"> +div.image { font-family: sans-serif, arial, helvetica } +</style> +<style type="text/css"> +div.image-description { font-family: sans-serif, arial, helvetica } +</style> +<style type="text/css"> +div.item-title { font-family: sans-serif, arial, helvetica } +</style> +<style type="text/css"> +div.item-description { font-family: sans-serif, arial, helvetica } +</style> +<style type="text/css"> +div.textinput-title { font-family: sans-serif, arial, helvetica } +</style> +<style type="text/css"> +div.textinput-form { font-family: sans-serif, arial, helvetica } +</style> +<title> +<xsl:for-each select="rdf:RDF/rss:channel"> +<xsl:value-of select="rss:description"/> +</xsl:for-each> +</title> +</head> +<body> + +<xsl:for-each select="rdf:RDF/rss:image"> +<center><div class="image"> +<xsl:element name="a"> + <xsl:attribute name="href"><xsl:value-of select="rss:link"/></xsl:attribute> + <xsl:element name="img"> + <xsl:attribute name="src"><xsl:value-of select="rss:url"/></xsl:attribute> + <xsl:attribute name="alt"><xsl:value-of select="rss:title"/></xsl:attribute> + <xsl:attribute name="border">0</xsl:attribute> + </xsl:element> +</xsl:element> +</div></center> +<center><div class="image-description"> +<xsl:value-of select="rss:description"/> +</div></center> +</xsl:for-each> + +<xsl:for-each select="rdf:RDF/rss:channel"> +<center><div class="channel-title"> +<xsl:element name="a"> + <xsl:attribute name="href"><xsl:value-of select="rss:link"/></xsl:attribute> + <xsl:value-of select="rss:title"/> + <xsl:text> (</xsl:text> + <xsl:value-of select="dc:date"/> + <xsl:text>)</xsl:text> +</xsl:element> +</div></center> +</xsl:for-each> + +<ul> +<hr /> +<xsl:for-each select="rdf:RDF/rss:item"> +<div class="item-title"><li> +<xsl:element name="a"> + <xsl:attribute name="href"><xsl:value-of select="rss:link"/></xsl:attribute> + <xsl:value-of select="rss:title"/> +</xsl:element> +<xsl:text> (</xsl:text> +<xsl:value-of select="dc:date"/> +<xsl:text>)</xsl:text> +</li></div> +<div class="item-description"><xsl:value-of select="rss:description"/></div> +<hr /> +</xsl:for-each> +</ul> + +<xsl:for-each select="rdf:RDF/rss:textinput"> +<center><b><div class="textinput-title"><xsl:value-of select="rss:description"/></div></b></center> +<xsl:element name="form"> + <xsl:attribute name="action"><xsl:value-of select="rss:link"/></xsl:attribute> + <xsl:attribute name="method">POST</xsl:attribute> + <center><div class="textinput-form"> + <xsl:element name="input"> + <xsl:attribute name="name"><xsl:value-of select="rss:name"/></xsl:attribute> + <xsl:attribute name="type">text</xsl:attribute> + </xsl:element> + <xsl:text> </xsl:text> + <xsl:element name="input"> + <xsl:attribute name="value"><xsl:value-of select="rss:title"/></xsl:attribute> + <xsl:attribute name="type">submit</xsl:attribute> + </xsl:element> +</div></center> +</xsl:element> +</xsl:for-each> + +</body> +</html> +</xsl:template> + +</xsl:stylesheet>
\ No newline at end of file |