Top Level Namespace

Defined Under Namespace

Classes: PlaylistCreator

Constant Summary collapse

XSLT_DX =
<<XSLT
<?xml version='1.0' encoding='UTF-8'?>
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0' xmlns='http://xspf.org/ns/0/'>
  <xsl:output method='xml' indent='yes' omit-xml-declaration='no'  encoding='utf-8'/>
  <xsl:template match='tracklist'>
  <playlist version="1">
    <trackList>
      <xsl:apply-templates select='summary'/>
      <xsl:apply-templates select='records/track'/>
    </trackList>
  </playlist>
  </xsl:template>
  <xsl:template match='tracklist/summary'/>
  <xsl:template match='records/track'>
    <track>
      <title>
        <xsl:value-of select='title'/>
      </title>
      <album>
        <xsl:value-of select='album'/>
      </album>
      <location>
        <xsl:value-of select='location'/>
      </location>
    </track>
  </xsl:template>
</xsl:stylesheet>
XSLT