[Icecast] Custom .xsl files?
Michael Smith
msmith
Wed Jul 21 18:24:11 UTC 2004
On Thursday 22 July 2004 04:56, Myke Place wrote:
> I'm curious if it is possible to create custom .xsl files in the /admin
> directory, using the same xsl params that appear in in the web
> interfaces that ship with Icecast2.
Yes. Though I don't know if using an arbitrary one works from the admin
directory. Certainly you can put them in icecast's webroot directory (or some
subdirectory of that).
> Here's an example that (currently) isn't working for me. Any help or
> comments on the way Icecast2 handles the processing of these files would
> be super:
>
> <xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform"
> version = "1.0" >
> <xsl:output method="html" indent="yes" />
> <xsl:template match = "/icestats" >
> <HTML>
> <HEAD>
> <title>Simple Icecast stats</title>
> </HEAD>
> <BODY>
> <xsl:for-each select="source">
> <xsl:value-of select="@mount" />
> <br>
Your XSLT must be valid.This isn't well-formed XML, you need:
<br/>.
The rest looks ok.
Mike
More information about the Icecast
mailing list