70 lines
1.8 KiB
XML
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>
|