|
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- indicates what our output type is going to be -->
<xsl:output method="xml" encoding="utf-8" indent="yes" omit-xml-declaration="yes" />
<xsl:template match="rss/channel">
<asx version="3.0">
<title>
<xsl:value-of select="title"/>
</title>
<abstract>
<xsl:value-of select="description" />
</abstract>
<xsl:apply-templates select="item" />
</asx>
</xsl:template>
<xsl:template match="item">
<xsl:variable name="item_enclosure" select="enclosure/@url"/>
<xsl:if test="string-length(enclosure/@url) > 10">
<entry>
<title>
<xsl:value-of select="title" />
</title>
<author>
<xsl:value-of select="author" />
</author>
<abstract>
<xsl:value-of select="description" />
</abstract>
<!--TODO: enable htmlview in querystring-->
<!--<param name="HTMLView" value="{link}" />-->
<ref href="{$item_enclosure}"/>
</entry>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.