[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl write file

Subject: Re: xsl write file
From: Mike Brown <mike@xxxxxxxx>
Date: Sat, 2 Dec 2000 13:00:16 -0700 (MST)
xsl write
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.