xspf-expanded.rb in xspf-0.4 vs xspf-expanded.rb in xspf-0.4.1
- old
+ new
@@ -67,9 +67,19 @@
xslt.serve
end
end
class XSPF
+ # Creates a RDF feed from the XSPF document. This method makes use of the XSPF to RDF XSLT transformation by Libby Miller.
+ def to_rdf
+ xslt = XML::XSLT.new
+ xslt.xml = self.to_xml
+ xslt.xsl = REXML::Document.new( File.new( './lib/xspf2rdf.xsl' ) )
+ xslt.serve
+ end
+
+ end
+class XSPF
# Creates a SoundBlox playlist from the XSPF document. This method makes use of the official XSPF to SoundBlox XSLT tranformation by Lucas Gonze.
def to_soundblox
xslt = XML::XSLT.new
xslt.xml = self.to_xml
xslt.xsl = REXML::Document.new( File.new( './lib/xspf2soundblox.xsl' ) )