[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

doctype declaration and msxmldom

Subject: doctype declaration and msxmldom
From: "Whitney, Dan (CanWest Interactive)" <DWhitney@xxxxxxxxxxx>
Date: Thu, 12 Jun 2003 10:24:44 -0400
msxml2 doctype
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.