Files
Mozilla/mozilla/minimo/chrome/content/rssview/rss_template_html.xml
dougt%meer.net f4fad1f28c Landing new files which exist on trunk on 1.8 branch for minimo
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@188588 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-31 19:03:37 +00:00

70 lines
1.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE stylesheet [
<!ATTLIST xsl:sort id ID #IMPLIED>
<!ATTLIST xsl:variable id ID #IMPLIED>
]>
<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/"
>
<xsl:output method="html" indent="yes"/>
<xsl:template match="/">
<div>
<!-- so far we don't really probe this, we try to transform, and fail -->
<!-- 0.91, 1.0 -->
<xsl:for-each select="/rdf:RDF/rss:channel">
<div id='pagetitle' style='display:none'><xsl:value-of select="rss:title"/></div>
</xsl:for-each>
<xsl:for-each select="/rdf:RDF/rss:channel">
<div style='padding:.3em;'><xsl:value-of select="rss:description"/></div>
</xsl:for-each>
<xsl:for-each select="/rdf:RDF/rss:item">
<div class='item'>
<a>
<xsl:attribute name="href">
<xsl:value-of select="rss:link"/>
</xsl:attribute>
<xsl:value-of select="rss:title"/>
</a>
</div>
</xsl:for-each>
<!-- 2.0 -->
<xsl:for-each select="/rss/channel/title">
<div id='pagetitle' style='display:none'><xsl:value-of select="."/></div>
</xsl:for-each>
<xsl:for-each select="/rss/channel/description">
<div style='padding:.3em;'><xsl:value-of select="."/></div>
</xsl:for-each>
<xsl:for-each select="/rss/channel/item">
<div class='item'>
<a>
<xsl:attribute name="href">
<xsl:value-of select="link"/>
</xsl:attribute>
<xsl:value-of select="title"/>
</a>
</div>
</xsl:for-each>
</div>
</xsl:template>
</xsl:stylesheet>