Re: [xmljs-users] loading xsl
Brought to you by:
djoham,
witchhunter
From: David J. <dj...@ya...> - 2006-04-12 14:48:30
|
Sorry, XML for <SCRIPT> doesn't have an XSL processor... David --- Srikanth Katepalli <kat...@gm...> wrote: > Hi, > I am new to Xml for <script>, trying to implement following code.I want to > load xsl and parse with xmlobject using <script> like following code.... > ss = new ActiveXObject('MSXML2.FreeThreadedDOMDocument.3.0'); > ss.async = false; > ss.load('bodycontent.xsl'); > cache = new ActiveXObject("Msxml2.XSLTemplate.3.0"); > cache.stylesheet = ss; > > var src = new ActiveXObject('MSXML2.DOMDocument.3.0'); > src.async = false; > src.load(xmlobject); > var proc = cache.createProcessor(); > proc.addParameter("myWidth",myWidth) > proc.input = src; > proc.transform(); > > Regards > Srikanth > |