Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Minor change to web/status2.xsl

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
bruce



Joined: 11 Nov 2008
Posts: 1

PostPosted: Tue Nov 11, 2008 3:04 pm    Post subject: Minor change to web/status2.xsl Reply with quote

Hi,

We've made a minor change to web/status2.xsl, which makes it behave the way I think it is supposed to Smile


The distributed version of status2.xsl appears to be missing a newline - so it prints out the 6 comma-separated column headings, but then joins all of the data lines together.

So if you have 3 streams running through your server, the final part of the output would be a single line of 18 fields, rather than 3 lines of 6

The simple fix is to add a
Code:
<xsl:text>&#xa;</xsl:text>
to status2.csl, so
Code:

<xsl:value-of select="@mount" />,,<xsl:value-of select="name"/>,<xsl:value-of select="listeners" />,<xsl:value-of select="description" />,<xsl:value-of select="artist" /> - <xsl:value-of select="title" />,<xsl:value-of select="url" />
becomes
Code:

<xsl:value-of select="@mount" />,,<xsl:value-of select="name"/>,<xsl:value-of select="listeners" />,<xsl:value-of select="description" />,<xsl:value-of select="artist" /> - <xsl:value-of select="title" />,<xsl:value-of select="url" /><xsl:text>&#xa;</xsl:text>
[/code]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber