[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

Subject: RE: Passing an XSLT param to embedding php script
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 6 Aug 2006 21:17:29 +0100
xslt param
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.