Discussion:
bx_helpers_simplecache::staticHttpReadAsDom
list.fluxcms
2010-01-23 22:00:59 UTC
Permalink
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() &lt; 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
--
list.fluxcms

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Christian Stocker
2010-01-28 10:27:42 UTC
Permalink
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
Post by list.fluxcms
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()
&lt; 6]"> -->
<li>
</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
--
bitflux-cms mailing list
bitflux-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms
list.fluxcms
2010-01-28 10:36:29 UTC
Permalink
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.
Post by Christian Stocker
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
<xslt_allowed_phpfunctions>__all__</xslt_allowed_phpfunctions>
then that should be ok
greetings
chregu
Post by list.fluxcms
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()
&lt; 6]"> -->
<li>
</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
bitflux-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms
Loading...