I am getting the error:
"Sablotron error on line 1: XML parser error 5: unclosed token in ..."
I can't get any information regarding this error. I am running the currents of FreeBSD, PHP, and Apache. Could it be the encoding attribute in my XSL file? I have tried a few variations but still get the error. Any help wuold be appreciated.
My XML file is:
<?xml version="1.0">
<news xmlns:news="news.dtd">
<newsitem>
<title>PHP 4.04 is released!</title>
<submissionDate>December 19, 2000</submissionDate>
<author>PHP development team</author>
<story>To the chagrin of bewildered rivals, PHP 4.04 was released today.
Several bug fixes and enhancements to both the core and many extensions
are included in the release.</story>
</newsitem>
<newsitem>
<title>A Programmer's Introduction to PHP 4.0 is available!</title>
<submissionDate>January 5, 2001</submissionDate>
<author>W.J. Gilmore</author>
<story>In a shameless plug for himself, W.J. Gilmore announces the
official publishing date of his PHP textbook. Get your copy while it's
hot!</story>
</newsitem>
<newsitem>
<title>PHP: A benefit to the environment?</title>
<submissionDate>January 15, 2001</submissionDate>
<author>Greenpeace</author>
<story>In what's being hailed as one of the breakthrough discoveries of
the 21st century, scientists announced today that since PHP's inception
in 1995, the ozone hole has actually shrunk by 34 percent. Could there be a
direct correlation here?</story>
</newsitem>
</news>
My XSL file is:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes" encoding="utf-8"/>
<xsl:template match="/ledger">
<html>
<head>
<title>What's new in programming?</title>
</head>
<body bgcolor="#ffffff" text="#000000" link="#808040"
vlink="#000000" alink="#606060">
<table bgcolor="white" border="0" cellpadding="2" cellspacing="2">
<xsl:call-template name="newsitems"/>
</table>
</body>
</html>
</xsl:template>
<xsl:template name="newsitems">
<xsl:for-each select="newsitem">
<tr><td>
<b><xsl:value-of select="title"/></b><br/>
Date: <xsl:value-of select="submissionDate"/><br/>
Submitted by: <xsl:value-of select="author"/><br/>
<xsl:value-of select="story"/><br/>
</td></tr>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>