Dear Sir
I'm trying to load the xml file with xsl in the php page e.g type index.php in the browser using Apache server. But it coudn't load the page but give "parse error".
Below is the code:
1.index.xml:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="index.xsl"?>
<DATA>
<MESSAGE>
HI!
</MESSAGE>
</DATA>
2.index.xsl:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<body>
<xsl:value-of select="DATA/TITLE"/>
<xsl:apply-templates />
</body>
</xsl:template>
</xsl:stylesheet>
3.index.php:
<body>
<table>
<tr>
<td width="100%" align="center" valign="middle">
<a href="index.php?page=index.xml">
XML FILE</a>
</td>
</tr>
</table>
</body>