There are 52 posts and 12 comments on this blog, if you cannot find what you intially looked for, use the search above and press 'go'!


30
Jan

Itunes to HTML Converter using XSLT and XML

Category: Free Time, Programming, Studies |

Introduction

At the University we have been introduced into transforming XML to (X)HTML using XSLT. As i found this quite interesting i started to write a small Itunes to HTML converter, which is finished now. Of course there are still some bugs left, but it works quite well for me.
The output may look like this: Converter Example

Usage

Simply download the Zip-File which you find at the bottom and unzip it into a folder of your choice. Then start up a console, whether it is a windows or Linux console should not matter though i have only tested using windows.
Locate the directory you unzipped into and change into it. Now you have to type the right syntax, which is:

java -jar ItunesXMLConverter.jar pathToITunesXml outputFolder name

This means for instance:

java -jar ItunesXMLConverter.jar itunes.xml c:\itunesexport Andi

In this example “itunes.xml” is the Itunes Database, “c:\itunesexport” the Export Path and “Andi” the name of die Library Owner.

It is a good idea to copy the Itunes Database in a separate Folder and remove the whitespaces. You find the Itunes Database in your “Own Music/Itunes” Folder.
If you run into any problems please drop me a message.

Technical Background and adaption

The program uses some external libraries:

As XSLT is used to transform to (X)HTML it is very easy to adapt the output to your own needs. All you need to do is edit two files, xslt.xsl and style.css. Of course you also need a tool to test the transformation. For testing it, i uploaded a small Example XML, which should be quite helpful:
songlib.xml If you need more info on XSTL you use your friend google :)

Download

itunesconverter.zip



Leave a comment or two

This entry was posted on Monday, January 30th, 2006 at 20:52 and is filed under Free Time, Programming, Studies. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


2 Comments so far



  1. Lars on November 11, 2008 00:05

    hello,
    is your app opensoure?

    so long
    lars

  2. Andreas Franz on December 19, 2008 23:30

    Yes, it is. In case you need anything just drop me a mail.

Name (required)

Email (required)

Website

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Feel free to leave a comment