Subject: Re: xsl write file From: Mike Brown <mike@xxxxxxxx> Date: Sat, 2 Dec 2000 13:00:16 -0700 (MST) |
matt rainer wrote: > I have an XML and XSL which can output some PHP on the browser. I need this > to be writen to a file with a php extention. > > Please can you tell me if there is any way of creating this file on the > server and putting the the PHP content in it, using XSL? Most XSL processors serialize the result tree to the standard output by default, so you could capture and/or redirect stdout and put the output where you want it. Some XSL processors offer additional output options from within the XSLT code, using extension functions & elements. Check the docs for your processor. An example command line for Unix and DOS shells: saxon in.xml in.xsl > out.php This of course is entirely not how it's done with MSXML, which it sounds like is what you're using. PHP relies on the web server to feed the HTML+PHP file to the PHP interpreter, and then the server delivers whatever comes out of the interpreter. If what you are trying to do is make it so that one HTTP request results in a chain of events like: requested XML doc -> XSLT processor -> PHP processor -> output to browser, I'm not sure it's easily possible. It would be interesting to hear how you did it, if that's what you're doing. It's definitely not going to be a simple task if the XSLT processor is in the browser (as MSXML is) rather than on the server. - Mike ____________________________________________________________________ Mike J. Brown, software engineer at My XML/XSL resources: webb.net in Denver, Colorado, USA http://skew.org/xml/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
xsl write file, matt rainer | Thread | Re: xsl write file, matt rainer |
xsl write file, matt rainer | Date | Re: xsl write file, matt rainer |
Month |