I am trying to load my parse my XML document but the HTML page remains null, is there something that I'm doing wrong.
index.html
<script type="text/javascript" src="assets/js/script.js"></script>
<body onLoad="outputXML('content', 'assets/xml/sample.xml', 'assets/xml/sample.xsl');"></body>
script.js
sample.xml
<?xml version="1.0" encoding="utf-8"?>
<hitrecords>
<record genre="Ska">
<artist category="group" gender="male">Madness</artist>
<title>Baggy Trousers</title>
<length>
<minutes>3</minutes>
<seconds>30</seconds>
</length>
</record>
</hitrecords>
sample.xsl
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<xsl:for-each select="hitrecords/record">
<p>
<xsl:value-of select="."/>
<xsl:value-of select="@genre"/>
<xsl:value-of select="artist"/>
</p>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>