| Subject: [xsl] doctype declaration and msxmldom From: "Whitney, Dan (CanWest Interactive)" <DWhitney@xxxxxxxxxxx> Date: Thu, 12 Jun 2003 10:24:44 -0400 | 
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
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| [xsl] accessing node not belonging , Frank Herrmann | Thread | RE: [xsl] doctype declaration and m, Lars Huttar | 
| [xsl] Inserting commented elements , Joseph Kesselman | Date | RE: [xsl] check that user input fal, Passin, Tom | 
| Month |