Looked in the archives but to no avail.
Having a little trouble with the doctype declaration and an xslt.
I have the following in my source xml document:
<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="fpir_web_wrapper_1.xsl"?>
<!DOCTYPE PUBLICATION
[<!ENTITY % isolat SYSTEM "xml_isolat1.ent" >
<!ENTITY % isopub SYSTEM "xml_iso-pub.ent" >
<!ENTITY % isonum SYSTEM "xml_iso-num.ent" >
%isolat;
%isopub;
%isonum;]>
<PUBLICATION>
...
</PUBLICATION>
When I open the xml document in ie6 everything works fine.
However when I run the following javascript snippet:
<html>
<script language = "javascript">
function init()
{
var srcTree = new ActiveXObject("Msxml2.DOMDocument.4.0");
srcTree.async=false;
srcTree.load("3776_web.xml");
var xsltTree= new ActiveXObject("Msxml2.DOMDOCUMENT.4.0");
xsltTree.async = false;
xsltTree.load("fpir_web_wrapper_1.xsl");
resTree.innerHTML = srcTree.transformNode(xsltTree);
}
</script>
</head>
<body onload = "init()" >
<div id="resTree"></div>
</body>
</html>
I get nothing showing up in the browser. If I comment out the doctype
declaration the instance opens with no problems.
What am I missing?
Thanks in advance,
Dan
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list