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

RE: What is the probelem with this standard code??????

Subject: RE: What is the probelem with this standard code????????????
From: "Marrow" <marrow@xxxxxxxxxxxxxx>
Date: Wed, 11 Sep 2002 19:37:05 +0100
msxml2.freethreadeddomdocument
Hi,

Try using the specific MSXML 3.0 or 4.0 (whichever is appropriate to
your requirement), e.g.

Replace...
  var oXmlStylesheet1 = new
ActiveXObject("MSXML2.FreeThreadedDOMDocument");

with...
  var oXmlStylesheet1 = new
ActiveXObject("MSXML2.FreeThreadedDOMDocument.3.0");

etc.

Cheers
Marrow

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
Sachidanandam E K
Sent: 11 September 2002 19:15
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  What is the probelem with this standard code????????????

Below code is really not working.Though it is a basic code.And I amdam
sure
I am doing this every day in various applications.But suddenly this
pieace
of code is not working.But no error is returned.
When I used Xselerator and transfom i am geting the result clearly.
No hints yet.Any clues!!?


try
     	{
     		var oXmlStylesheet1 = new
ActiveXObject("MSXML2.FreeThreadedDOMDocument");
     		var oXmlSource1 = new
ActiveXObject("MSXML2.FreeThreadedDOMDocument");
     		var oXmlOutput1 = new
ActiveXObject("MSXML2.FreeThreadedDOMDocument");
     		var oXslTemplate1 = new
ActiveXObject("MSXML2.XSLTemplate");
     		oXmlStylesheet1.async = false;
     		oXmlOutput1.async = false;
     		oXmlSource1.async = false;
     		//alert(strHierarchyXML);
			if (! oXmlSource1.loadXML(strHierarchyXML))
			if (!
oXmlStylesheet1.load("templates/ToolagentTree.xsl"))
				alert("RMSTreeControlError: Error
occured accessing URL:
templates\\ToolagentTree.xsl, Description:" +  oXmlSource.parseError);
			//alert(oXmlSource1.xml);
	
//alert(oXmlStylesheet1.load("templates/ToolagentTree.xsl"));
			//alert(oXmlStylesheet1.xml);
			//alert(oXmlStylesheet1.url);
			oXslTemplate1.stylesheet = oXmlStylesheet1;
			var oXslProcessor1 =
oXslTemplate1.createProcessor();
			oXslProcessor1.input = oXmlSource1;
			oXslProcessor1.output = oXmlOutput1;
			oXslProcessor1.addParameter("InstrumentType",
"ES20>/Stepper02/")

			oXslProcessor1.transform()
			alert(oXmlOutput1.xml);
		}
		catch(e)
		{
			alert(e.description);
		}






Sachidanandam.E.K
Member Techinical Staff

HCLT KT-ODC
sachidanandam.kumaraswamy@xxxxxxxxxxxxxx
<mailto:sachidanandam.kumaraswamy@xxxxxxxxxxxxxx>



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.