Re: [xsl] loading scripting languages in xslt

Subject: Re: [xsl] loading scripting languages in xslt
From: Mike Brown <mike@xxxxxxxx>
Date: Mon, 17 Jun 2002 14:15:18 -0600 (MDT)
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


Current Thread