Re: about #12645 - xsl:include

From: Date: Wed, 08 Aug 2001 15:59:23 +0000
Subject: Re: about #12645 - xsl:include
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-62577@lists.php.net to get a copy of this message
Marius Andreiana <marius@wdg.ro>, ons 2001-08-08; > I've solved it by using > <xsl:include href="file://relative/path/to/xsl"/> > FWIW, this is how I solve this (php 4.0.6, Sablotron 0.60.1): In my xslt, i have this statement: <xsl:include href="common.xsl"/> I use xslt_transform() as it lets me use named buffers and pass parameters to the xslt parser, thusly: $sablot_buffers = array("/common.xsl" => "file://absolute/path/to/common_xslt", "/xml_data" => $an_xml_string); $sablot_args = array("arg1" => 2, "arg2" => "three"); xslt_transform("file://$absolute_path_to_main_xslt", "arg:/xml_data", "arg:/_result", $sablot_args, $sablot_buffers, $result); print $result; Note that using this syntax, the named result buffer "arg:/_result" must be present. HTH, -- Håvard Dahle 'We apologize for the inconvenience.'

« previous php.dev (#62577) next »