Skip to content

An XSLT script to convert an iTunes XML playlist to the more universal M3U format.

Notifications You must be signed in to change notification settings

Sitwon/itunes2m3u

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

itunes2m3u

How to use

This is just a simple XSLT stylesheet. It's written in XSLT 1.0 so it should work on any XSLT processor you want to throw it at. My preference is Saxon9 which is what I use for development and testing.

Windows:

Method 1:

  1. Open the XML playlist in a text editor.
  2. Add the following line as the 2nd line in the file (after <?xml ... ?>):
    <?xml-stylesheet type="text/xsl" href="itunes2m3u.xsl"?>
  3. Save and close the file.
  4. Copy the itunes2m3u.xsl stylesheet into the same directory where you saved your playlist.
  5. Drag and drop the playlist into IE. IE will run the transformation and render the XML file as an M3U. You can then copy and paste into a new file or right-click and "view source" which will open the M3U in notepad allowing you to re-save it.

Method 2:

  1. Download the msxsl.exe utility from Microsoft.
  2. Copy msxsl.exe into your Windows/System32 folder (or any other directory in your %PATH%).
  3. Copy the itunes2m3u.xsl stylesheet into the same directory as your playlist.
  4. Open a CMD window and navigate to the folder containing the playlist and stylesheet. Then run this command:
    > msxsl playlist.xml itunes2m3u.xsl -o playlist.m3u

Other Operating Systems:

todo: Add instructions for using Saxon.

About

An XSLT script to convert an iTunes XML playlist to the more universal M3U format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published