Re: request parameter missed...

Christian Stocker <[email protected]> Wed, 01 Feb 2006 14:51:35 +0100
Newsgroups gmane.comp.cms.bitflux.general
Organization Bitflux GmbH
Message-ID <[email protected]>

On 1.2.2006 14:48 Uhr, qMax wrote:
> Hi.
> 
> Somehow xslt-stylesheet in my custom pipeline cannot access request
> parameters using bx_helpers_globals::GET
> 
> Within the stylesheet,
> <xsl:variable name="myparam" select="php:functionString('bx_helpers_globals::GET','foo')"/>
> returns value 'foo' instead of value of foo.

Did you define the php namespace in the xslt?

xmlns:php="http://php.net/xsl"


> In stylesheets of theme it is retrieved correctly using the same way.
> 
> Why could it be ?
> 
> Pipeline is:
> <map:when test="xmldoc">
>     <map:include label="bxcmsGenerator"/>
>     <map:transform type="xslt" src="{stylesheet}">
>       <map:parameter namevalues="{xsltparams}"/>
>       <map:parameter name="webroot" value="'constant(BX_WEBROOT)'"/>
>       <map:parameter name="webrootLang" value="{webrootLang}"/>
>       <map:parameter name="requestUri" value="{requestUri}"/>
>       <map:parameter name="collectionUri" value="{collectionUri}"/>
>       <map:parameter name="lang" value="{lang}"/>
>       <map:parameter name="filename" value="{filename}"/>
>       <map:parameter name="fileNumber" value="{fileNumber}"/>
>       <map:parameter type="options" name="registerPhpFunctions" value="true"/>
>       <map:parameter type="allowedPhpFunctions" name="one" value="config://xslt_allowed_phpfunctions"/>
>     </map:transform>
>     <map:include label="standardOutput"/>
> </map:when>
> 
> 
> P.S.
> Is it possible to implement
> <map:parameter name="use-request-parameters" value="true"/>
> to pass request parameters to transformer, just like cocoon do ?

That would be possible :)

chregu
-- 
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 44 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71
http://www.bitflux.ch | [email protected] |  GPG 0x5CE1DECB
-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms