Hope someone can help, I'm kinda stumped.
The XML and XSL code I'm using at the moment are from the tutorial here:
I've got the XML file working so when I look at it on my webserver it's correctly formatted and sorted by the XLS.
The fun comes when I try and include () this in a PHP document... The xml data is displayed without using the xls file - it's just a big block of text;
Heres the html output;
<head>
<link id="blackdawn_stylesheet" rel="stylesheet" type="text/css" media="screen" href="style/blackdawn.css"></link>
</head>
<body>
<img src="images/skulls3.jpg" />
<div id="sidenavbar">
<div class="sidenavarea">
<ul class="sidenav">
<li><a href="Home.php" title="Home"> Home</a></li>
<li><a href="About Us.php" title="About Us"> About Us</a></li>
<li><a href="Forums.php" title="Forums"> Forums</a></li>
<li><a href="Gallery.php" title="Gallery"> Gallery</a></li>
<li><a href="Links.php" title="Links"> Links</a></li>
<li><a href="Join Us.php" title="Join Us"> Join Us</a></li>
</ul>
</div>
</div>
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="cdcatalog.xsl"?>
<catalog>
<cd>
<title>Empire Burlesque</title>
<artist>Bob Dylan</artist>
<country>USA</country>
<company>Columbia</company>
<price>10.90</price>
<year>1985</year>
</cd>
<cd>
<title>Hide your heart</title>
<artist>Bonnie Tyler</artist>
<country>UK</country>
<company>CBS Records</company>
<price>9.90</price>
<year>1988</year>
</cd>
etc etc
Any idea what the problem is? I'm totally new to xml to please try not to laugh at whats probably a glaring error!
The XML and XSL code I'm using at the moment are from the tutorial here:
I've got the XML file working so when I look at it on my webserver it's correctly formatted and sorted by the XLS.
The fun comes when I try and include () this in a PHP document... The xml data is displayed without using the xls file - it's just a big block of text;
Heres the html output;
<head>
<link id="blackdawn_stylesheet" rel="stylesheet" type="text/css" media="screen" href="style/blackdawn.css"></link>
</head>
<body>
<img src="images/skulls3.jpg" />
<div id="sidenavbar">
<div class="sidenavarea">
<ul class="sidenav">
<li><a href="Home.php" title="Home"> Home</a></li>
<li><a href="About Us.php" title="About Us"> About Us</a></li>
<li><a href="Forums.php" title="Forums"> Forums</a></li>
<li><a href="Gallery.php" title="Gallery"> Gallery</a></li>
<li><a href="Links.php" title="Links"> Links</a></li>
<li><a href="Join Us.php" title="Join Us"> Join Us</a></li>
</ul>
</div>
</div>
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="cdcatalog.xsl"?>
<catalog>
<cd>
<title>Empire Burlesque</title>
<artist>Bob Dylan</artist>
<country>USA</country>
<company>Columbia</company>
<price>10.90</price>
<year>1985</year>
</cd>
<cd>
<title>Hide your heart</title>
<artist>Bonnie Tyler</artist>
<country>UK</country>
<company>CBS Records</company>
<price>9.90</price>
<year>1988</year>
</cd>
etc etc
Any idea what the problem is? I'm totally new to xml to please try not to laugh at whats probably a glaring error!