View Single Post
Old 12-21-2012, 11:47 AM   PM User | #9
guytrance
New to the CF scene

 
Join Date: Aug 2012
Posts: 9
Thanks: 12
Thanked 0 Times in 0 Posts
guytrance is an unknown quantity at this point
Hey AndrewGSW

Your talking about escaping characters from the XML itself on the remote file?

Cause now it seems i'm getting
Code:
"error on line 2 at column 25: xmlParseEntityRef: no name"
When loading that php on browser.

These are the first relative lines on the file that generates the xspf:

Code:
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" >
<xsl:output omit-xml-declaration="no" media-type="application/xspf+xml"
        method="xml" indent="yes" encoding="UTF-8" />
<xsl:template match = "/icestats" >
<playlist version="1" xmlns="http://xspf.org/ns/0/">
	<title><xsl:value-of select="server" /></title>
	<creator><xsl:value-of select="server" /></creator>
	<trackList >
<!-- end of "header" -->

<xsl:for-each select="source">

<track>
    <location><xsl:value-of select="listenurl" /></location>


<xsl:if test="artist"><creator><xsl:value-of select="artist" /></creator></xsl:if>
<xsl:if test="listeners"><listeners><xsl:value-of select="listeners" /></listeners></xsl:if>
<title><xsl:value-of select="title" /></title>
guytrance is offline   Reply With Quote