[Icecast] Custom .xsl files?

Myke Place mp
Thu Jul 22 10:28:06 UTC 2004


Just a followup, hopefully my experiences will help somebody else.
Comments inline...

* Michael Smith (msmith at xiph.org) [040721 19:24] spake thusly:
> 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).

I was interested to find that inside the /admin directory, it doesn't
appear that even properly formatted XSL will work _unless_ one of the
exisiting files is replaced by a file of the same name. For instance,
copying listmounts.xsl to test.xsl and then trying to access test.xsl
will not work. It seems that one must use a file with one of the names
already existing. If there is a way around this, I would love to hear
about it.

> > 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/>.

Indeed, this is the case. Silly me. Thanks for catching that.

> The rest looks ok.
>
> Mike
>
> _______________________________________________
> Icecast mailing list
> Icecast at xiph.org
> http://lists.xiph.org/mailman/listinfo/icecast
>


More information about the Icecast mailing list