| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Sun Oct 29, 2006 1:01 am Post subject: Subtract Servers from Connection Count |
|
|
Right now I have an XML file that only displays the number of active connections to the IceCast server and nothing else.
| Code: |
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" >
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match = "/icestats" >
<html>
<head>
</head>
<body>
<font color="#999900" size="3"><strong>
<xsl:value-of select="clients" />
</strong></font>
</body>
</html>
</xsl:template>
</xsl:stylesheet> |
Is there a way to add some bit of code to subtract a certain number from the connection count and display that total instead? I want to subtract the number of servers connected so my count only shows real listener connections. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Sun Oct 29, 2006 1:10 am Post subject: |
|
|
Oh man, never mind...
| Code: |
<xsl:value-of select="clients - 15" /> |
Too simple. I thought I had tried that already but I guess I did it wrong the first time.
Thanks. |
|
| Back to top |
|
 |
|