Subject: RE: Passing an XSLT param to embedding php script
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 6 Aug 2006 21:17:29 +0100
|
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@xxxxxxxxxxxx]
> Sent: 05 August 2006 17:54
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: 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
|