Subject: RE: Hiding XSL From: "Iyer, Srinivasan (MLIP - PCC)" <ISrinivasan@xxxxxxxxxxxxx> Date: Fri, 18 Aug 2000 16:26:08 -0400 |
I am not sure of how to encode the xml data island within the script tag ??? but something like this might help ................................. ================================= screnc.exe xmlenc.html xmlenc1.html ================================= xmlenc.html ================================= <html> <h4> xml demo</h4> <body> <div id="demo" ></div> <script> var xmlData , xmlStyle xmlData=new ActiveXObject('Microsoft.XMLDOM'); xmlData.async =false; xmlData.load("xml_Data.asp"); xmlStyle=new ActiveXObject('Microsoft.XMLDOM'); xmlStyle.async = false; xmlStyle.load("xml_Style.xsl"); demo.innerHTML=xmlData.transformNode(xmlStyle) </script> </body> </html> ================================= Srini Date: Fri, 18 Aug 2000 11:51:19 +0100 From: "Chris Bayes" <Chris@xxxxxxxxxxx> Subject: RE: Hiding the XSL ? Ciaran, A data island is xml within your html it can take 2 forms <XML id="somexml"> <xxx /> </XML> and <XML id="somexml" src="somexml.xml"></XML> The second form will kindof hide your xml/xsl but it is easy to get it if you want. There is another form which is now depracated which overloads the script tag <SCRIPT language="XML" src="somexml.xml"></SCRIPT> There is a tool from microsoft called the Script Encoder which will encode vbscript and javascript and is used in html like this. <SCRIPT language="JScript.Encode" src="somexml.js"></SCRIPT> But I doubt if that will work for XML. You could possibly do this <XML id="somexml"> <encoded> 8087098709870897087587654675454354235342543254323345478656598768758765764564 63543 </encoded> </XML> <SCRIPT language="JavaScript> var xsl = deobfuscate(somexml.documentElement); var xsldom.loadXML(xsl); </SCRIPT> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Hiding XSL, Chris Bayes | Thread | RE: Hiding XSL, Chris Bayes |
RE: Hiding XSL, Chris Bayes | Date | RE: Hiding XSL, Chris Bayes |
Month |