Originally posted by goldbug
Shows up as plain text. Consider using the correct MIME type if you want it to really be XML. (text/xml, not text/plain like you are sending)
hmmmm hey i swear i posted a reply to this the other day 😕 o well. Im not sure what you mean by corret MIME type. I used www.w3schools.com to learn XML and XSL. my XML, XSL are below, maybe you could spot my problem 🙂 I think you want me to add a content header also?
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- Copyright 2004-2010 by Parawizard Web Design -->
<?xml-stylesheet type="text/xsl" href="news.xsl"?>
<articles>
<article>
<title>Big Stupid Bike Race 2003</title>
<date>Jan 19, 03</date>
<content> hey, this is the first and most prior news article for Parawizard Forums NEWS module!content>
<author>Parawizard</author>
</article>
<article>
<title>MTB Site Online!</title>
<date>Jan 19, 03</date>
<content> heyheyhey, this new site just rawks ( you can delete these test in the xml file :) )</content>
<author>Parawizard</author>
</article>
</articles>
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- Copyright 2004-2010 by Parawizard Web Design -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<link rel="stylesheet" type="text/css" href="CSS\news.css"/>
</head>
<body>
<table id="newsmodule">
<tr>
<td id="header" align="left"><img src="news.bmp"></img></td>
</tr>
</table>
<xsl:for-each select="/articles/article">
<table id="main">
<tr>
<td id="articletitle"><xsl:value-of select="title"/></td>
<td id="articledate"><xsl:value-of select="date"/></td>
</tr>
</table>
<table id="articlecontent">
<tr>
<td id="articlecontent">
<p id="articlecontent"><xsl:value-of select="content"/><BR/><BR/><I id="author">-<xsl:value-of select="author"/></I></p>
</td>
</tr>
</table>
</xsl:for-each>
<BR/>
<BR/>
<table id="copyright">
<tr>
<td id="copyright">
<CENTER>
<p id="copyright">Copyright 2004-2010 by Parawizard Web Design</p>
</CENTER>
</td>
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>