Click here to Skip to main content
11,645,499 members (71,666 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Downloads
Add your own
alternative version

Podcast (RSS) to Playlist

, 1 Oct 2009 CPOL 22.8K 205 18
Convert podcast feeds into a variety of playlist formats on the fly by applying XSLT on RSS XML
<?xml version="1.0" encoding="utf-8"?>

    <!-- 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">
                <xsl:value-of select="title"/>
                <xsl:value-of select="description" />
            <xsl:apply-templates select="item" />

    <xsl:template match="item">
		<xsl:variable name="item_enclosure" select="enclosure/@url"/>		   
			<xsl:if test="string-length(enclosure/@url) > 10">
		                <xsl:value-of select="title" />
		                <xsl:value-of select="author" />
		                <xsl:value-of select="description" />
		            <!--TODO: enable htmlview in querystring-->
		            <!--<param name="HTMLView" value="{link}" />-->					
					<ref href="{$item_enclosure}"/>		

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 article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

William Grubbs
Team Leader Kendle
United States United States
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150731.1 | Last Updated 1 Oct 2009
Article Copyright 2009 by William Grubbs
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid