This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: loading scripting languages in xslt
- From: Mike Brown <mike at skew dot org>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Mon, 17 Jun 2002 14:15:18 -0600 (MDT)
- Subject: Re: [xsl] loading scripting languages in xslt
- Reply-to: xsl-list at lists dot mulberrytech dot com
Guilherme Capilé wrote:
> is there any simple way to use scripting languages such as php in a xslt
> stylesheet?
>
> all I'd like to do is to use it to get the POST data from a form and
> send it to a xslt stylesheet as params
You will need to pass the data in as top-level stylesheet parameters yourself,
when you invoke the XSLT processor. Presumably you have some glue between your
HTTP server and your XSLT processor that does this.
> to update a xml file (then I'd
> need this scripting language again to write the xml file).
Writing out a document while in the middle of XSLT processing is a side effect
that can be achieved with an extension element or extension function. Most
XSLT processors offer such extensions; check the docs for your processor. You
may also want to research if the processor you are using supports the EXSLT
exsl:document element described at
http://exslt.org/exsl/elements/document/index.html
- Mike
____________________________________________________________________________
mike j. brown | xml/xslt: http://skew.org/xml/
denver/boulder, colorado, usa | resume: http://skew.org/~mike/resume/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list