i'm having problems displaying XML. When i remove 3rd line i got error(that on line 5 is an extra bit, that is wrong...), and when i keep 3rd line i cant see anything when displaying it on website.. :( i'm not a XML pro so help would be appreciated
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="style1.css"?>
<?xml-stylesheet type="text/xsl" href="style2.xsl"?>
<title>Mathematics for computing</title>
<author>This module should help us understand:</author>
<contents>
<chapter>Understand concept of Mathematics</chapter>
<chapter>Be able to use Mathematics in programming</chapter>
<chapter>Improve our logical thinking that will also help us when solving programming problem</chapter>
</contents>
<title>Web technology</title>
<author>This module should help us understand and be able to do</author>
<contents>
<chapter>Write basic java scripts</chapter>
<chapter>Understand the way internet (internet programming works)</chapter>
<chapter>Teach us doing basic web sites (HTML, XML)</chapter>
</contents>
<title>Communication and Learning Skills</title>
<author>This module should help us in the following:</author>
<contents>
<chapter>Improve our writing skills</chapter>
<chapter>Improve our thinking skills</chapter>
<chapter>Improve our oral skills</chapter>
</contents>
<title>Information and Data Modelling </title>
<author>This module should help us to understand and be able to do:</author>
<contents>
<chapter>We should be able to create Data modells by applying formal data model descriptions using data modeling techniques</chapter>
<chapter>We should understand the concept of objec oriented programming/design</chapter>
<chapter>Be able to produce Diagrams such as: Use case diagram, sequence diagram etc:</chapter>
</contents>
<title>Programming Methodology (Java)</title>
<author>This module should help us to understand and be able to do:</author>
<contents>
<chapter>Understand the way programming works</chapter>
<chapter>Understand what is mean by sequence which is the most important bit in programming</chapter>
<chapter>Be able to do simple programs</chapter>
<chapter>Learn basic commands in Java</chapter>
</contents>
<title>Computer Systems Fundamentals</title>
<author>This module should help us to understand and be able to do</author>
<contents>
<chapter>Understand how computers works</chapter>
<chapter>Understand how internet works</chapter>
<chapter>Be able to do simple calculation regarding computing</chapter>
<chapter>Learn PEP programming language(Machine code)</chapter>
</contents>
<title>Software Development Principles (Java)</title>
<author>This module is continuation of "programming methodology" at more advanced level</author>
<contents>
<chapter>In this module we are improving our knowledge that we gained in "programming methodology module"</chapter>
<chapter>We take all concepts of programming even further</chapter>
<chapter>Programming it self is getting more advanced</chapter>
</contents>
<title>Software Engineering Principles</title>
<author>Ths module should help us to understand following</author>
<contents>
<chapter>How software is developped</chapter>
<chapter>Give us an idea of what possibilities are there to make such a system</chapter>
<chapter>in fact i dont know what this module is for ...</chapter>
</contents>
<moduleList>
<module>
<moduleName>Web technology</moduleName>
<moduledescription>Understanding and learning everything regarding internet/internet programming</moduledescription>
<moduleCode>ECSC407.2</moduleCode>
<moduleLeader>Wendy Purdy</moduleLeader>
<timetableSlot>Wednesday 14pm-16pm</timetableSlot>
</module>
<module>
<moduleName>Mathematics for computing</moduleName>
<moduledescription>Understand concept of Mathematics</moduledescription>
<moduleCode>ECSC408.Y</moduleCode>
<moduleLeader>Daphne Economou </moduleLeader>
<timetableSlot>Tuesday 12pm-13pm</timetableSlot>
</module>
<module>
<moduleName>Communication and Learning Skills</moduleName>
<moduledescription>Improve our communication skills</moduledescription>
<moduleCode>EBSY400.Y</moduleCode>
<moduleLeader>Maria Chondrogianni</moduleLeader>
<timetableSlot>Monday 14pm-16pm</timetableSlot>
</module>
<module>
<moduleName>Information and Data Modelling</moduleName>
<moduledescription>Module should teach us all basics about data and information modelling</moduledescription>
<moduleCode>EBSY401.1</moduleCode>
<moduleLeader>Anush Begoyan </moduleLeader>
<timetableSlot>Monday 11am-13pm</timetableSlot>
</module>
<module>
<moduleName>Programming Methodology (Java)</moduleName>
<moduledescription>Module should teach us basic programming in java</moduledescription>
<moduleCode>ECSC401.1</moduleCode>
<moduleLeader>David Hearnshaw</moduleLeader>
<timetableSlot>Wednesday 09am-11am</timetableSlot>
</module>
<module>
<moduleName>Computer Systems Fundamentals</moduleName>
<moduledescription>Module should help us to understand how computers and internet works</moduledescription>
<moduleCode>ECSC404.1</moduleCode>
<moduleLeader>Cheng Lee </moduleLeader>
<timetableSlot>Monday 09am-11pm</timetableSlot>
</module>
<module>
<moduleName>Software Development Principles (Java)</moduleName>
<moduledescription>Continuation of Programming methodology</moduledescription>
<moduleCode>ECSC405.2</moduleCode>
<moduleLeader>David Hearnshaw</moduleLeader>
<timetableSlot>Thursday 11am-13pm</timetableSlot>
</module>
<module>
<moduleName>Software Engineering Principles</moduleName>
<moduledescription>Module should help us to understand principles of software engineering</moduledescription>
<moduleCode>ECSC409.2</moduleCode>
<moduleLeader>Epaminondas Kapetanios</moduleLeader>
<timetableSlot>Thursday 14pm-16pm</timetableSlot>
</module>
</moduleList>
CSS style sheet
@charset "utf-8";
/* CSS Document */
title {font-size:18pt; color:red; font-weight:bold; display:block; font-family: Arial, Helvetica, sans-serif; margin-top:20pt; margin-left: 20pt;}
author{font-style:italic; display:block; color:black; margin-left: 25pt; margin-top:10pt; font-family: Times New Roman, Times, Serif; font-size:16pt;}
chapter{list-style-type:disc; margin-left: 25pt; display:list-item; color:black; font-family: Times New Roman, Times, Serif; font-size:14pt;}
XSL
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY reg "®">
<!ENTITY trade "™">
<!ENTITY mdash "—">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY pound "£">
<!ENTITY yen "¥">
<!ENTITY euro "€">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Untitled Document</title>
</head>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<body>
<h2>Module list </h2>
<table border="1">
<tr bgcolor="#FF0000">
<th align="left">Module Name</th>
<th align="left">Description</th>
<th align="left">Module Code</th>
<th align="left">Module Leader</th>
<th align="left">Timetable Slot</th>
</tr>
<xsl:for-each select="touristAttraction/attraction">
<tr>
<td><xsl:value-of select="moduleName"/></td>
<td> <xsl:value-of select="moduledescription"> </xsl:value-of> </td>
<td><xsl:value-of select="moduleCode"> </xsl:value-of></td>
<td><xsl:value-of select="moduleLeader"> </xsl:value-of></td>
<td><xsl:value-of select="timetableSlot"> </xsl:value-of></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>