| View previous topic :: View next topic |
| Author |
Message |
MHz
Joined: 29 Jun 2008 Posts: 16
|
Posted: Sat Aug 23, 2008 11:11 pm Post subject: http get |
|
|
Hi all,
I want to get the value of 'server_name' by using the http get method, but I cant get it to work. So how do I get the value of server_name using http get?
Thanks! |
|
| Back to top |
|
 |
MHz
Joined: 29 Jun 2008 Posts: 16
|
Posted: Mon Aug 25, 2008 9:52 am Post subject: |
|
|
| Nobody? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Aug 25, 2008 1:15 pm Post subject: |
|
|
those stats are available to the xsl pages. You just need create and xsl page to report just that stat. As to why it's not working for you I can't say as we have nothing to go on.
karl. |
|
| Back to top |
|
 |
MHz
Joined: 29 Jun 2008 Posts: 16
|
Posted: Wed Aug 27, 2008 12:37 am Post subject: |
|
|
| Karl, could you please show me a example of a white page displaying only the current artist and current song? I dont know much about XML yet. Thanks! |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Aug 27, 2008 1:28 am Post subject: |
|
|
it's xsl you'd need to check, something like the following
| Code: |
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" >
<xsl:output method="text" media-type="text/plain" encoding="UTF-8"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" />
<xsl:template match = "/icestats">
<xsl:for-each select="source">
mount: <xsl:value-of select="@mount" />
artist: <xsl:if test="artist"><xsl:value-of select="artist" /></xsl:if>
title: <xsl:if test="title"><xsl:value-of select="title" /></xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
|
karl. |
|
| Back to top |
|
 |
|