write php code inside xslt file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • suratna
    New Member
    • Nov 2008
    • 2

    #1

    write php code inside xslt file

    i have an xslt file. i have no problem writing html code inside it but when i write a mysql select query inside it, it gives error. Is there any way to write php code inside xslt file?

    ratna
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    that depends whether you want the php code executed in the xslt file or in the result file.

    for the former save your file with the .php extension since it is no longer a xslt file. for the latter use <xsl:processi ng-instruction>.

    regards

    Comment

    Working...