I wonder if this name is already taken?
Anyway, I've done some more work on the XSLT that transforms an MPL into HTML. Here's a screenshot:
You can download Version 0.2 of the XSLT (and a graphics folder) from
http://pages.sbcglobal.net/scottraymond/AlbumGroup.zip.
I've added some features:
1) Alternate highlighting of the song rows.
2) Check to see if there's Cover Art - if not, insert a defaul NoCoverArt image.
3) Internal "styles" (which I'll move to an external document next time around).
4) Use of XSLT variables for a much easier customization. Here's a description of them:
<!-- Define Album Sort Fields -->
<xsl:variable name="AlbumSort1">Artist</xsl:variable>
<xsl:variable name="AlbumSort2">Album</xsl:variable>
<xsl:variable name="AlbumSort3"></xsl:variable>
<!-- Define AlbumDetails Columns -->
<xsl:variable name="AlbumDetailsColumn1">Artist</xsl:variable>
<xsl:variable name="AlbumDetailsColumn2">Album</xsl:variable>
<xsl:variable name="AlbumDetailsColumn3">Year</xsl:variable>
<xsl:variable name="AlbumDetailsColumn4">Genre</xsl:variable>
<!-- Define SongDetails Columns -->
<xsl:variable name="SongDetailsColumn1">Track #</xsl:variable>
<xsl:variable name="SongDetailsColumn2">Name</xsl:variable>
<xsl:variable name="SongDetailsColumn3">Duration</xsl:variable>
<xsl:variable name="SongDetailsColumn4">Bitrate</xsl:variable>
<xsl:variable name="SongDetailsColumn5">Rating</xsl:variable>
<!-- Define Song Sort Fields -->
<xsl:variable name="SongSort1">Track #</xsl:variable>
<xsl:variable name="SongSort2"></xsl:variable>
<xsl:variable name="SongSort3"></xsl:variable>
The names should explain what they do. Just replace the element content and away you go. The only caveat is the sort: the "data-type" is still down in the XSLT. SongSort1 is currently a "number" and the rest text.
As a reminder, to use this XSLT, do the following:
If you want to see what it looks like for real:
1. "Export Playlist" as an MPL and save to a directory. Let's say you call it "Audio.xml".
2. Download the XSLT http://pages.sbcglobal.net/scottraymond/AlbumGroup.zip. Extract it to a directory (preferably where the "Audio.xml" is.
3. In the "Audio.xml" file, add the line "<?xml-stylesheet type="text/xsl" href="C:\Program Files\J River\Media Center\XMLDevelopment\AlbumGroup.xsl"?>" right after the first line (which is "<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>"). Make sure the path matches where you saved the "AlbumGroup.xsl" - or if they're in the same directory, you don't need the path.
Now just open "Audio.xml" with IE. The transformation will be applied automatically.
Next up:
1) Put the syles in an external document
2) Think about hiding content - maybe each song list or a lyrics field.
3) Add a variable for "data-type".
4) Figure out why you can't save the resulting HTML from within IE.
5) Anything else reasonable that someone asks for.
Scott-