|
Disclaimer:
These pages about different languages / apis / best practices were mostly jotted down quckily and rarely corrected afterwards. The languages / apis / best practices may have changed over time (e.g. the facebook api being a prime example), so what was documented as a good way to do something at the time might be outdated when you read it (some pages here are over 15 years old). Just as a reminder. Create html from iTunes xml using XSLTTransforming xml to html Since the beginning of time people have had the urge to show other people their record collections. Nobody knows why. This usually involved a lot of dragging people home and boring them to death while excitedly playing Mike Oldfield "Tubular Bells".
I have created to two .xsl files. They are the same, just sorting the result differently.
You can use those to process your iTunes xml file yourself, or if you are lazy: 1) Make a copy of your iTunes xml file
<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="https://www.edlin.org/xslt/itunes-to-html.xsl"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Major Version</key><integer>1</integer> <key>Minor Version</key><integer>1</integer> <key>Application Version</key><string>4.8</string> .....Leave everything else as it were in the xml file, just add that single line. Open the modified xml file in your browser. As you see, the xml file will pull the xsl file and format it nicely. Simply upload the xml file to your website, and people can easily see what kind of music you like (or at least, what kind of music you have). Examples: sample_sorted_by_artist.xml
sample_sorted_by_play_count.xml
Feedback is of course as always welcome. More programming related pages |
|