[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: variables from the url

Subject: RE: variables from the url
From: "Todd Baker" <lists@xxxxxxxxxxxxxxxxx>
Date: Wed, 19 Nov 2003 19:50:49 +1100
xsl param url
> Thanks for the direction, I am using PHP on unix.

How about this then.. Its from PHP on linux... Courtesy of a mate....

This line --> $params = array('query' => strtolower($query), 'page' =>
$page, 'start' => $start, 'num' => $num );

Populates the parameters, you must also declare the parameters In your xsl

    <xsl:param name="query"></xsl:param>
    <xsl:param name="num"></xsl:param>	
    <xsl:param name="start"></xsl:param>		

<?

  $xh = xslt_create();

  $args = array();
  $params = array('query' => strtolower($query), 'page' => $page, 'start' =>
$start, 'num' => $num );

  $myResult = xslt_process(
                         $xh,
                         'XMLFILE.xml',
                         'STYLESHEET.xsl',
                         null,
                         $args,
                         $params
                        );

  xslt_free($xh);

  echo $myResult;

?>






 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.