| View previous topic :: View next topic |
| Author |
Message |
peepo
Joined: 15 Dec 2007 Posts: 88
|
Posted: Sun Jun 08, 2008 1:54 pm Post subject: Stats stylesheet |
|
|
Im trying to get a stylesheet to work with my stats page, but I cant get it to work.
This is my code, can someone tell me whats missing?
<logdir>./logs</logdir>
<webroot>/status.xsl</webroot>
<adminroot>../admin</adminroot>
<alias source="/" dest="/status.xsl"/>
Thanks |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Jun 08, 2008 3:07 pm Post subject: |
|
|
why does your webroot refer to a file? it should be a directory which contains those xsl files
karl. |
|
| Back to top |
|
 |
peepo
Joined: 15 Dec 2007 Posts: 88
|
Posted: Tue Jun 10, 2008 7:06 pm Post subject: |
|
|
I dont know, I thought thats what I had to do.
Ive replaced it with
<logdir>./logs</logdir>
<webroot>C:\Program Files\Icecast2 Win32\web</webroot>
<adminroot>../admin</adminroot>
<alias source="/" dest="/status.xsl"/>
And its not working. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Jun 10, 2008 8:09 pm Post subject: |
|
|
you are still only providing part of the information, if you check the error log then you should see a request being made and any failure relating to that.
karl. |
|
| Back to top |
|
 |
peepo
Joined: 15 Dec 2007 Posts: 88
|
Posted: Tue Jun 10, 2008 9:02 pm Post subject: |
|
|
Ive followed these instructions 'Check your icecast configuration file for an element called <webroot>. This directory contains web stuff. In it, place a file called status.xsl that transforms an XML file containing stream data into a web page'
My code looks like this
<logdir>./logs</logdir>
<webroot>C:\Program Files\Icecast2 Win32\web\status.xsl</webroot>
<adminroot>../admin</adminroot>
<alias source="/" dest="/status.xsl"/>
And its still not working |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Jun 10, 2008 10:54 pm Post subject: |
|
|
webroot like adminroot specify directories where a number of files can be contained. An example of one is status.xsl. I think you should be ok with the C:\... reference (minus the status.xsl you've added for some reason). Bit as I've already said, if you want to see why something is failing then check the error log. It should be fairly self-evident from that why it fails.
karl. |
|
| Back to top |
|
 |
peepo
Joined: 15 Dec 2007 Posts: 88
|
Posted: Fri Jun 13, 2008 8:11 pm Post subject: |
|
|
Hmmm, I have amended the config file & now when I try to access admin I get this 'Could not parse XSLT file'
Any ideas? Thanks |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Jun 13, 2008 8:41 pm Post subject: |
|
|
Again the error log tells you what is occurring. There is a problem in the win32 install in that the default xml has an incorrect setting in webroot and adminroot (they have a ../ instead of a ./ which is easily changed. I'll upload the new install when I've verified it).
karl. |
|
| Back to top |
|
 |
|