[xsl] Server-side transform with .asp file instead of .xml

Subject: [xsl] Server-side transform with .asp file instead of .xml
From: "Noelle" <ng302@xxxxxxxxxxx>
Date: Tue, 16 Sep 2003 00:00:24 +0100

This may be a little out of scope for this list, but I thought it didn't
hurt to ask.  Please point me elsewhere if it is.

I've been using ASP to write my XML files for use on the web (using XSLT to
transform them to xhtml) and I need to be able to perform a server-side
transform in some cases. It worked just fine when I tested it with a static
XML document (i.e. with the .xml extension), but I need to transform the XML
that the ASP file is producing.

This is what I've been using as a base for the transform code:

set xml = Server.CreateObject("Microsoft.XMLDOM")
xml.async = false

set xsl = Server.CreateObject("Microsoft.XMLDOM")
xsl.async = false


However, I need it to be able to access "main.asp" and transform the XML
created there instead of using a static "main.xml" file. Can anyone suggest
how I can get it to recognise the XML code in an ASP page?  I had intended
to use the above code in the "main.asp" file that was creating the XML.

If any further snippets of code or clarification of what I'm asking (or
doing) is needed, please just say so.

Thanks, I appreciate the help.

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

Current Thread