Re: bx_helpers_simplecache::staticHttpReadAsDom
"list.fluxcms" <[email protected]> Thu, 28 Jan 2010 11:36:29 +0100
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Christian,
the top of my xsl file is
###### my.xsl ######
<xsl:stylesheet version="1.0"
xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
xmlns:php="http://php.net/xsl"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xhtml
php i18n">
<xsl:import href="master.xsl"/>
...
###### my.xsl ######
and my conf/config.xml is default and contains
###### conf/config.xml ######
<xslt_allowed_phpfunctions>__all__</xslt_allowed_phpfunctions>
###### conf/config.xml ######
(and - it is not commented ;-) )
But it is not working :-(
I hope you could tell me how to debug or find out, why it is not working :-/
Thomas.
Zitat von Christian Stocker <[email protected]>:
> Hi
>
> Looks like it's not allowed to call the php:function.
>
> Did you define the xmlns:php="http://php.net/xsl" on top of that xsl file?
>
> and what's in your
> <xslt_allowed_phpfunctions>
> section in conf/config.xml
>
> If it's:
> <xslt_allowed_phpfunctions>__all__</xslt_allowed_phpfunctions>
> then that should be ok
>
> greetings
>
> chregu
>
> On 23.01.10 23:00, list.fluxcms wrote:
>> Hi all,
>>
>> how can 'bx_helpers_simplecache::staticHttpReadAsDom' been included in
>> the xsl-files?
>>
>> If I use
>>
>> <ul>
>> <xsl:for-each
>> select="php:function('bx_helpers_simplecache::staticHttpReadAsDom','http://twitter.com/statuses/user_timeline/14918598.atom',600)/atom:feed/atom:entry[position()
>> < 6]"> -->
>> <li>
>> <a href="{atom:link[@type='text/html']/@href}"><xsl:value-of
>> select="substring(atom:content[@type='html'],7)"/></a>
>> </li>
>> </xsl:for-each>
>> </ul>
>>
>> the XSL for-each is not executed, and the html rendering is stopped so
>> that the rest of page is not produced. I set
>>
>> #E_STRICT | E_ALL
>> php_value error_reporting 16383
>>
>> in .htaccess but no error is shown.
>>
>> How could this debugged? Maybe am I missing some files?
>>
>> I use 1.6-dev/9.9.27.
>>
>> Thanks for your hints and reply in advance.
>>
>> By the way - there a spam entries in the liip wiki.
>>
>> Grretings
>>
>> - thomas
>>
>>
>
> --
> Liip AG // Feldstrasse 133 // CH-8004 Zurich
> Tel +41 43 500 39 81 // Mobile +41 76 561 88 60
> www.liip.ch // blog.liip.ch // GnuPG 0x0748D5FE
>
>
>
--
list.fluxcms
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
--
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms