Finally, it works!! Now it behaves the same in IE and Firefox.
MP3Tag_XSL.zip (29.5 KB)
If you use another browser and it works, let us know; if it doesn’t, sorry but I have no time to port it; you have the source, so feel free to change it to make it working with your browser of choice.
Thanks to BoraBora for pointing out the problems with Firefox, and to the Sarissa project for their cross-browser JavaScript implementation of XML/XSL support. You can find it at Sourceforge
What’s new
- The XML file is now loaded in a script into MP3Tag_squonk.htm file which is the new entry point.
- The XSL style sheets have been moved to the _css directory
- I was not able to create a unique XSL file for Firefox and Internet Explorer so there are two MP3Tag_squonk_xxx.xsl, the script loads the correct one based on the browser you are using
- The JavaScript code is now in _script/MP3Tag_squonk.js
- The new _script subdirectory contains also the Sarissa code.
How to use
- Export the tags from MP3Tag using this updated xml_md5_squonk export. (The only thing changed is that the xsl-stylesheet directive in the XML file has been removed) xml_md5_squonk.zip (787 Bytes)
- Place the content of the MP3Tag_XSL.zip file (MP3Tag_squonk.xml, _css, _images and _script subdir) in the same directory of the exported XML file.
- Open MP3Tag_squonk.htm in your browser.
What you have is a mini web summary of your MP3 compilation with a search function to look for song artist or album whose name contains the text you specify.
If you want to change the name used for htm and xml files:
You can change MP3Tag_squonk.htm to what you prefer; this does not affect the scripts
If you change MP3List.xml, then open your htm file and update line 30 with the new filename
xmlData.load('MP3List.xml'); must be updated to load your xml file.
Hope you like it!
xml_md5_squonk.zip (787 Bytes)
MP3Tag_XSL.zip (29.5 KB)