xsl-list
[Top] [All Lists]

RE: [xsl] Passing an XSLT param to embedding php script

2006-08-06 13:17:51
Forget the fact that it's a PHP script. It's just part of the result
document of the transformation. You delcare a parameter to the stylesheet
using

<xsl:param name="p"/>

as a child of the xsl:stylesheet element. You supply a value from the
command line using p=value; and you copy the value to your result document
using <xsl:value-of select="p"/>.

Michael Kay
http://www.saxonica.com/

 

-----Original Message-----
From: Jim Sylva [mailto:jasylva(_at_)northrim(_dot_)net] 
Sent: 05 August 2006 17:54
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Passing an XSLT param to embedding php script

Hi, Folks,

I am passing a param to my XSL style sheet via the command 
line. The style sheet contains a php script. I would like to 
pass the XSLT param to a variable within the embedded php script.
I am using Saxon 6.5.3.
Any help would be greatly appreciated.

Thanks,
Jim


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>