[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: transformation question
Hi Vel., > Hi all, I have a problem with a transformation. I have an xml file and an xsl file. > It works when i try it using 'msxsl.exe' utility. But it is not working if i do server side transformation, using asp. First, are you doing those transformations on one single machine? I ask because you are using a non-version spcific object declaration: Set xml = Server.CreateObject("MSXML2.DomDocument") Set xsl = Server.CreateObject("MSXML2.DOMDocument") Set output = Server.CreateObject("MSXML2.DOMDocument") So if you do this on different machines the result may differ. Another doubt I would have if your xml and xslt file are in the virtual root folder, and if they are the same as the ones you use in the command execution line. I could pass you some code I used when doing transformations on MSXML 3.0/4.0, using classic ASP, but mainly what makes the instantiation version-specific is this kind of declaration: Set srcDoc = Server.CreateObject("MSXML2.ServerXMLHTTP.4.0") Let us know if that would help you in any way. Cheers, Pieter <prs/> http://www.pietsieg.com http://www.pietsieg.com/dotnetnuke Contributor on www.ASPToday.com Co-author on "Professional ASP.NET XML with C#", July 2002 by Wrox Press
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|