[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Passing an XSLT param to embedding php script
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|