Subject: HTML Code! From: Samir.Jasani@xxxxxxxxxxxxxxxxxxx Date: Thu, 4 Nov 1999 10:18:17 +0530 |
Hi all, I am the beginner in the XML field and just started writing some code. I have some sample html code from a book ,which has used Microsoft.XMLDOM to convert xml into html using XSL and its code looks like this :- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <html> <head><script LANGUAGE="JavaScript" FOR="window" EVENT="onload"> var source = new ActiveXObject("Microsoft.xmldom"); source.load("demo.xml"); var style = new ActiveXObject("Microsoft.xmldom"); style.load("demo.xsl"); document.all.item("xslContainer").innerHTML = source.transformNode(style.documentElement); </script> <title>Code Listing 8-6</title> </head> <body> <div ID="xslContainer"></div> </body> </html> And this code is working fine if the html is stored in my C:\ but when i deploy this HTML into a webserver it stops functioning. Now, how do i pass the XML and XSL to the client so that they are accessible in the client side script ??? Thanks in advance. Regards, Samir XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: any ideas?, Ben Robb | Thread | RE: HTML Code!, Mark Birbeck |
Re: Variable Scoping, James Clark | Date | Recruiter Who Needs Help, Katie O'Neill |
Month |