[Home] [By Thread] [By Date] [Recent Entries]
Guilherme Capilé wrote:
is there any simple way to use scripting languages such as php in a xslt stylesheet?
These interfaces allow the scripting language to host a tranformation, as well as allow extensions to be defined in the stylesheet to call back into the scripting language. Some allow script code to be embedded in the stylesheet, but I don't think that's a good idea (see below). 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 to update a xml file
Note that a stylesheet may not even know that a scripting language is involved in its invocation. > (then I'd need this scripting language again to write the xml file). Use EXSLT instead. In XSLT1.1 I've found a reference to xsl:script, which seems to be what I am looking for, but I don't know any stable implementation of this element.
My (much) preferred approach is to completely separate the scripting from the stylesheet, via the XSLT extension mechanism. This hides the implementation from the stylesheet, which is important is software engineering. It allows the extensions to replaced by some other implementation, without affecting the stylesheet 'code'. I don't want to, either, process the xslt with this scripting language. I'd rather the other way around. Good thinking. Cheers, Steve Ball -- Steve Ball | XSLT Standard Library | Training & Seminars Zveno Pty Ltd | Web Tcl Complete | XML XSL Schemas http://www.zveno.com/ | TclXML TclDOM | Tcl, Web Development Steve.Ball@xxxxxxxxx +---------------------------+--------------------- Ph. +61 2 6242 4099 | Mobile (0413) 594 462 | Fax +61 2 6242 4099 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



