Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

Please help. Upload XML and transform it with XSL

Question posted by: Steerman (Newbie) on March 27th, 2008 09:37 AM
Hi

I have this upload script. It works fine. I can upload files etc, but i want to transform the files after the upload. I just don't know how to do it.

This is my transformation file:

<%
'Load XML
set xml = Server.CreateObject("Microsoft.XMLDOM")
xml.async = false
xml.load(Server.MapPath("test.xml"))

'Load XSL
set xsl = Server.CreateObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load(Server.MapPath("stylesheet.xsl"))

'Transform file
Response.Write(xml.transformNode(xsl))
%>

But i don't know how to put it together with my upload file? How can i get my xml.load(Server.MapPath("test.xml")) to take the new uploaded file?
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
Reply
Not the answer you were looking for? Post your question . . .
184,211 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top ASP Forum Contributors