korisuanini
11-17-2009, 04:20 PM
Hi, I'm trying to modify an XSL file that was created by someone else, but know too little about XML/XSL etc. to be able to figure it out by myself...
The purpose of the XSL file is to create a website from an XML file and a corresponding audio file. The XML file is the (slightly modified) output of a program for annotation of audio and video files, ELAN. An example of what the result looks like is this: http://www.beaver.uni-koeln.de/stories/AFbannock.xml
The XSL file organizes the layout of the resulting site, and extracts the time codes of the annotations to create the embedded little audio snippets, using a QuickTime PlugIn. Originally, this was developed for off-line use, e.g. to be put on a CD together with the sound-files, but it does work online as it is, given that the sound-file is there together with the xml in one place (or even somewhere else, I suppose, as long as it is on a download server).
Now, I would like to use this to create a similar website with my own recordings and annotations, but I want my audio to be on a streaming server. I'm not even sure if that is possible at all? I have some audio files as mp3 and mp4 on a streaming server, and the links all start with rstp:, but I can't figure out how to change the <embed> tag in a way that it can use them. I can't even see how it is determined that the QuickTime PlugIn is what is to be used, instead of, e.g., RealPlayer. All I found on the web was information on how to embed media files in html, with <embed> or <object> tags, but nothing I tried worked.
I'm adding the code of the XSL file (apart from some minor changes I did regarding the annotations that are shown in the website and which worked fine it is identical to the original), the DTD file that goes with it and an example XML file as attachments.
I'm still hoping that the solution is really rather easy... If anyone could help me with this I'd be really grateful! Or if I'm trying something stupid, too complicated or impossible here, I'd be grateful if you could let me know...
The purpose of the XSL file is to create a website from an XML file and a corresponding audio file. The XML file is the (slightly modified) output of a program for annotation of audio and video files, ELAN. An example of what the result looks like is this: http://www.beaver.uni-koeln.de/stories/AFbannock.xml
The XSL file organizes the layout of the resulting site, and extracts the time codes of the annotations to create the embedded little audio snippets, using a QuickTime PlugIn. Originally, this was developed for off-line use, e.g. to be put on a CD together with the sound-files, but it does work online as it is, given that the sound-file is there together with the xml in one place (or even somewhere else, I suppose, as long as it is on a download server).
Now, I would like to use this to create a similar website with my own recordings and annotations, but I want my audio to be on a streaming server. I'm not even sure if that is possible at all? I have some audio files as mp3 and mp4 on a streaming server, and the links all start with rstp:, but I can't figure out how to change the <embed> tag in a way that it can use them. I can't even see how it is determined that the QuickTime PlugIn is what is to be used, instead of, e.g., RealPlayer. All I found on the web was information on how to embed media files in html, with <embed> or <object> tags, but nothing I tried worked.
I'm adding the code of the XSL file (apart from some minor changes I did regarding the annotations that are shown in the website and which worked fine it is identical to the original), the DTD file that goes with it and an example XML file as attachments.
I'm still hoping that the solution is really rather easy... If anyone could help me with this I'd be really grateful! Or if I'm trying something stupid, too complicated or impossible here, I'd be grateful if you could let me know...