From: Oscar C. <oc...@iu...> - 2005-03-30 09:41:50
|
Hi, MARTIN JC <jcm...@en...> wrote: > Hi found the way to have both php and xq files in my exist repertory. > That was only a few things to add in WEB-INF/web.xml (things like > <servlet> and <servlet-mapping>....) > > but now I need to find something else : > I currently do that, inside a php file : > $result=shell_exec("xsltproc xsl/accueil.xsl > xml/{$doc}.xml"); > That simply transform an xml file with its xsl stylesheet thanks to xsltproc > Around this line I can have php code, and have functions that I have > developped with php but not with XML/XSL > My aim is to mix php and parts of xml files after their transformation... You can use the Sablotron module [1] (an XSLT processor) and then pass some parameters (probably, $variables from you PHP world) to the stylesheet. This way, you can "merge" or mix both parts, as you mentioned. Hope this helps a bit! Cheers, Oscar. [1] http://www.gingerall.com/charlie/ga/xml/x_sabphp.xml?s=org |