From: <plu...@us...> - 2003-11-04 21:47:10
|
Update of /cvsroot/portlet-opensrc/portlet-opensrc/jsr168/webcontent/newsfeed/WEB-INF In directory sc8-pr-cvs1:/tmp/cvs-serv28242/jsr168/webcontent/newsfeed/WEB-INF Added Files: Rss20.xsl html.xsl portlet.xml web.xml Log Message: new samples for google search and rss --- NEW FILE: Rss20.xsl --- <?xml version="1.0" ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/> <xsl:template match="/rss/channel"> <p> <a><xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute> <xsl:value-of select="title"/></a> </p> <p> <xsl:value-of select="lastBuildDate"/> </p> <dl> <xsl:for-each select="item"> <dt> <a><xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute> <xsl:value-of select="title"/></a> </dt> <dd> <xsl:value-of select="description"/> (<xsl:value-of select="pubDate"/>) </dd> </xsl:for-each> </dl> <p> <xsl:value-of select="copyright"/> </p> </xsl:template> </xsl:stylesheet> --- NEW FILE: html.xsl --- <?xml version="1.0"?> <xsl:stylesheet 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:dcterms="http://purl.org/dc/terms/" xmlns:rss="http://purl.org/rss/1.0/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:annotate="http://purl.org/rss/1.0/modules/annotate/" xmlns:admin="http://webns.net/mvcb/" xmlns:image="http://purl.org/rss/1.0/modules/image/" xmlns:cc="http://web.resource.org/cc/" xmlns:reqv="http://purl.org/rss/1.0/modules/richequiv/" exclude-result-prefixes="rdf dc dcterms rss im content rss-simple im annotate admin image cc reqv" version="1.0"> <xsl:output method="html"/> <!-- Setup --> <xsl:template match="/"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="2" CELLSPACING="0"> <xsl:apply-templates/> </TABLE> </xsl:template> <!-- Items --> <xsl:template match="item"> <TR><TD> - <A TARGET="_popup" STYLE="text-decoration: none;"> <xsl:attribute name="HREF"> <xsl:value-of select="link"/> </xsl:attribute> <xsl:value-of select="title"/> </A> </TD></TR> <xsl:apply-templates/> </xsl:template> <xsl:template match="text()"/> </xsl:stylesheet> --- NEW FILE: portlet.xml --- <?xml version="1.0" encoding="UTF-8"?> <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"> <portlet> <portlet-name>RssPortlet</portlet-name> <portlet-class>com.plumtree.portlet.portlets.RssPortlet</portlet-class> <expiration-cache>30</expiration-cache> <supports> <mime-type>text/html</mime-type> <portlet-mode>config</portlet-mode> <portlet-mode>edit</portlet-mode> <portlet-mode>help</portlet-mode> </supports> <supported-locale>en-US</supported-locale> <init-param> <name>url</name> <value>http://www.theserverside.com/rss/theserverside-0.9.rdf</value> </init-param> <portlet-info> <title>RSS Portlet</title> <short-title>RSS</short-title> <keywords>RSS</keywords> </portlet-info> <portlet-preferences> <preference> <description xml:lang="EN">Default rss choices</description> <name>RssXml</name> <value>http://www.theserverside.com/rss/theserverside-0.9.rdf</value> <value>http://rss.com.com/2547-12-0-20.xml</value> <value>http://headlines.internet.com/internetnews/top-news/news.rss</value> <value>http://headlines.internet.com/internetnews/fina-news/news.rss</value> <value>http://www.sciencedaily.com/newsfeed.xml</value> <modifiable>1</modifiable> </preference> <validator>com.plumtree.portlet.impl.PreferencesValidatorImpl</validator> </portlet-preferences> </portlet> </portlet-app> --- NEW FILE: web.xml --- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <display-name>GooglePortletSample</display-name> </web-app> |