ericjohnsus
Technical User
The XSL works fine when it is part of the XML file, however, I only get a partial rendering when I run it through this method. I use IE6 with MSXML3, so I am unclear as to why I have a problem. Does this subject my xsl to a more rigorous parsing process?
<html>
<script src="dscript106/xtools.js" type="text/javascript">
<!--
function publishDoc (xmlData, xslTemplate)
{
// Load XML
var xml = new ActiveXObject("Msxml2.DOMDocument"
xml.async = false
xml.load(xmlData)
// Load the XSL
var xsl = new ActiveXObject("Msxml2.DOMDocument"
xsl.async = false
xsl.load(xslTemplate)
// Transform
document.write(xml.transformNode(xsl));
}
-->
</script>
<body onLoad = "publishDoc('xmlFile.xml', 'xslTemplate.xsl');">
</body>
</html>
The XML version that works starts like this:
<!DOCTYPE xmlFile SYSTEM "xmlFile.dtd">
<?xml-stylesheet type="text/xsl" href="xslTemplate.xsl"?
And the XSL lines look like this:
<xsl:stylesheet xmlns:xsl=" version="1.0">
<xsl
utput method="html" omit-xml-declaration="no" indent="no"/>
<html>
<script src="dscript106/xtools.js" type="text/javascript">
<!--
function publishDoc (xmlData, xslTemplate)
{
// Load XML
var xml = new ActiveXObject("Msxml2.DOMDocument"
xml.async = false
xml.load(xmlData)
// Load the XSL
var xsl = new ActiveXObject("Msxml2.DOMDocument"
xsl.async = false
xsl.load(xslTemplate)
// Transform
document.write(xml.transformNode(xsl));
}
-->
</script>
<body onLoad = "publishDoc('xmlFile.xml', 'xslTemplate.xsl');">
</body>
</html>
The XML version that works starts like this:
<!DOCTYPE xmlFile SYSTEM "xmlFile.dtd">
<?xml-stylesheet type="text/xsl" href="xslTemplate.xsl"?
And the XSL lines look like this:
<xsl:stylesheet xmlns:xsl=" version="1.0">
<xsl