- One drawback is that the file dillard.xml contains the stylesheet declaration
- You need a different file for each transformation you want to apply
- This can be avoided by loading the result of applying the XSLT transformation on the XML document into an XHTML page:
<?xml version="1.0" encoding="utf-8"?>
<html>
<head>
<title>Loading Via JavaScript</title>
<script language="JavaScript1.1">
function xslt()
{ }
</script>
</head>
<body onload="xslt()">
<div id="targetDIV">
<p>Rubbish</p>
</div>
</body>
</html>