[thelist] XML/XSLT & ASP question

Jason Lustig lustig at buffalo.edu
Tue Nov 12 14:41:00 CST 2002


<I'm not sure exactly what you're looking for here. Are you wanting the
user
to create a file via a browser form textarea and submit it to a
server-side
script for processing? Or have someone create a file and put it on the
server for processing?>

I want to have them on the server for processing... What I want to do is
have files on the server be named something like myFile.asp (not
myFile.xml). In that file would be xml, and at the bottom it would
server-side include another ASP file, transform.asp, which would take
the xml within that file, and transform it with an external xsl
stylesheet.

I know how to get the xml out of an external file, but I want to pull
the xml from the asp file itself, out of the response buffer, because I
want to make it so that regular people (not programming people) can edit
the files. It would be very hard for them to do something like this:

<%
xmlStr = xmlStr & "<content>"&vbcrlf
xmlStr = xmlStr & "my content goes here"&vbcrlf
xmlStr = xmlStr & "</content>"&vbcrlf
%>
<!--#include file="transform.asp"-->


... than for them to do something like this:

<content>
my content goes here
</content>
<!--#include file="transform.asp"-->



I'd like it to be so that people can do stuff like that... and that
within transform.asp it'll pull the data out of the response buffer into
a string, do myXMLObject.loadXML (with the msxml com object), clear the
response buffer, and then output the transformed xml. I've figured out
how to clear out the buffer, but I can't figure out a way to pull the
data from it without sending it immediately to the client-side...

--jason




More information about the thelist mailing list