RE: [xsl] variables from the url

Subject: RE: [xsl] variables from the url
From: "Todd Baker" <lists@xxxxxxxxxxxxxxxxx>
Date: Wed, 19 Nov 2003 19:50:49 +1100
> 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