Support » Themes and Templates », inlineRSS and xslt parsing

  • Hi,

    My free webhosting doesn’t support fsockopen. I’m trying to get information from my profile and all the plugins (except those that only retrieve the recent tracks rss) like scrobbler and ez-scrobbler doesn’t work.

    Finally I’m able to get information from my services (like weekly album and weekly artist charts) via inlineRSS and fetching the xml files from my profile. The styling is done via xslt files.

    Now I’m able to get the weekly album chart correctly with this xslt file:

    <?xml version="1.0" encoding="UTF-8" ?>
    <xsl:stylesheet xmlns:xsl="" version="1.0"
      <xsl:output omit-xml-declaration="yes" indent="no"/>
      <xsl:strip-space elements="*"/>
      <xsl:param name="limit" select="10" />
      <xsl:param name="class" />
      <xsl:template match="/">
      <xsl:template match="album">
        <xsl:if test="position()<=$limit">
          <xsl:element name="li">
    	<xsl:if test="$class!=''">
    	<xsl:attribute name="class"><xsl:value-of select="$class" /></xsl:attribute>
    	<a href="{url}"><img src="{image}" alt="{artist} - {name}" title="{artist} - {name}" /></a>

    The images are not retrieved because the weekly album chart doesn’t have image in the xml.

    My problem is with the weekly artis chart, because I don’t know what xslt parsing does it need to format it correctly, like the album chart. I’ve tried to change <xsl:template match=”album”> to <xsl:template match=”artist”> but it doesn’t work.

    Can someone help me with the xslt for the artist weekly chart?

    Thanks in advance.

  • The topic ‘, inlineRSS and xslt parsing’ is closed to new replies.